123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- #!/usr/bin/env python
-
- # Copyright (C) 2018 Carlos Reding <rc_reding@teknik.io>
- #
- # Permission is hereby granted, free of charge, to any person obtaining
- # a copy of this software and associated documentation files (the
- # "Software"), to deal in the Software without restriction, including
- # without limitation the rights to use, copy, modify, merge, publish,
- # distribute, sublicense, and/or sell copies of the Software, and to
- # permit persons to whom the Software is furnished to do so, subject to
- # the following conditions:
- #
- # The above copyright notice and this permission notice shall be
- # included in all copies or substantial portions of the Software.
- #
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- # NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY
- # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- #
- # Except as contained in this notice, the name(s) of the above copyright
- # holders shall not be used in advertising or otherwise to promote the sale,
- # use or other dealings in this Software without prior written authorization.
-
- """Library to control a light modulator (LiMO) instrument."""
-
- import os
- import sys
- from setuptools import setup, find_packages
-
- if sys.version_info[0] == 2:
- raise ValueError('This package requires Python 3.4 or above')
- elif sys.version_info[0] == 3:
- if not sys.version_info >= (3, 4):
- raise ValueError('This package requires Python 3.4 or above')
- else:
- raise ValueError('Unrecognized major version of Python')
-
- HERE = os.path.abspath(os.path.dirname(__file__))
-
- # Workaround <http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html>
- try:
- import multiprocessing
- except ImportError:
- pass
-
- __project__ = 'limoControl'
- __version__ = '1.0rc1'
- __author__ = 'Carlos Reding'
- __author_email__ = 'rc_reding@teknik.io'
- __url__ = 'https://git.teknik.io/rc_reding/limo-dev'
- __platform__ = 'Linux'
- __description__ = ''
-
- __classifiers__ = [
- "Development Status :: 5 - Production/Stable",
- "Environment :: Console",
- "Intended Audience :: Education",
- "Intended Audience :: Science/Research",
- "License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)",
- "Programming Language :: Python :: 3",
- 'Topic :: Adaptive Technologies',
- ]
-
- __keywords__ = [
- # 'raspberrypi',
- # 'camera',
- ]
-
- __requires__ = [
- 'netifaces',
- 'numpy',
- 'scipy',
- 'pigpio',
- 'w1thermsensor',
- 'picamera',
- # 'opencv-python>=3.1', # FIXME: Issues in RPi as opencv is self-compiled.
- ]
-
- __extra_requires__ = {
- }
-
- __entry_points__ = {
- 'console_scripts': [ 'srv_controller=limoControl._controller:main'],
- }
-
-
- def main():
- import io
- with io.open(os.path.join(HERE, 'README.md'), 'r') as readme:
- setup(
- name = __project__,
- version = __version__,
- description = __doc__,
- long_description = readme.read(),
- long_description_content_type = 'text/Markdown',
- classifiers = __classifiers__,
- author = __author__,
- author_email = __author_email__,
- url = __url__,
- platforms = __platform__,
- license = [
- c.rsplit('::', 1)[1].strip()
- for c in __classifiers__
- if c.startswith('License ::')
- ][0],
- keywords = __keywords__,
- packages = find_packages(),
- install_requires = __requires__,
- extras_require = __extra_requires__,
- entry_points = __entry_points__,
- )
-
-
- if __name__ == '__main__':
- main()
|