setup.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/usr/bin/env python
  2. #
  3. # Copyright (C) 2014-2015 UAVCAN Development Team <uavcan.org>
  4. #
  5. # This software is distributed under the terms of the MIT License.
  6. #
  7. # Author: Ben Dyer <ben_dyer@mac.com>
  8. # Pavel Kirienko <pavel.kirienko@zubax.com>
  9. #
  10. import os
  11. import sys
  12. from setuptools import setup
  13. __version__ = None
  14. VERSION_FILE = os.path.join(os.path.dirname(__file__), 'uavcan', 'version.py')
  15. exec(open(VERSION_FILE).read()) # Adds __version__ to globals
  16. args = dict(
  17. name='uavcan',
  18. version=__version__,
  19. description='Python implementation of the UAVCAN protocol stack',
  20. packages=[
  21. 'uavcan',
  22. 'uavcan.dsdl',
  23. 'uavcan.driver',
  24. 'uavcan.app',
  25. ],
  26. package_data={
  27. 'uavcan': [os.path.join(root[len('uavcan/'):], fname)
  28. for root, dirs, files in os.walk('uavcan/dsdl_files')
  29. for fname in files if fname.endswith('.uavcan')]
  30. },
  31. author='Pavel Kirienko, Ben Dyer',
  32. author_email='uavcan@googlegroups.com',
  33. url='http://uavcan.org/Implementations/Pyuavcan',
  34. license='MIT',
  35. classifiers=[
  36. 'Development Status :: 3 - Alpha',
  37. 'Intended Audience :: Developers',
  38. 'Topic :: Software Development :: Libraries',
  39. 'License :: OSI Approved :: MIT License',
  40. 'Programming Language :: Python',
  41. ],
  42. keywords=''
  43. )
  44. if sys.version_info[0] < 3:
  45. args['install_requires'] = ['monotonic']
  46. setup(**args)