pyuavcan/setup.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 #
3 # Copyright (C) 2014-2020 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 
11 import os
12 import sys
13 from setuptools import setup
14 
15 __version__ = None
16 VERSION_FILE = os.path.join(os.path.dirname(__file__), 'pyuavcan_v0', 'version.py')
17 exec(open(VERSION_FILE).read()) # Adds __version__ to globals
18 
19 with open('README.md', 'r') as fh:
20  long_description = fh.read()
21 
22 args = dict(
23  name='pyuavcan_v0',
24  version=__version__,
25  description='UAVCAN/CAN v0 (legacy) implementation in Python. Checkout pyuavcan for v1 implementation.',
26  long_description=long_description,
27  long_description_content_type='text/markdown',
28  packages=[
29  'pyuavcan_v0',
30  'pyuavcan_v0.dsdl',
31  'pyuavcan_v0.driver',
32  'pyuavcan_v0.app',
33  ],
34  package_data={
35  'pyuavcan_v0': [os.path.join(root[len('pyuavcan_v0/'):], fname)
36  for root, dirs, files in os.walk('pyuavcan_v0/dsdl_files')
37  for fname in files if fname.endswith('.uavcan')]
38  },
39  author='Pavel Kirienko, Ben Dyer',
40  author_email='maintainers@uavcan.org',
41  url='http://uavcan.org',
42  license='MIT',
43  classifiers=[
44  'Development Status :: 3 - Alpha',
45  'Intended Audience :: Developers',
46  'Topic :: Software Development :: Libraries',
47  'License :: OSI Approved :: MIT License',
48  'Programming Language :: Python',
49  ],
50  keywords=''
51 )
52 
53 if sys.version_info[0] < 3:
54  args['install_requires'] = ['monotonic']
55 
56 setup(**args)
setup


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:03