-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
50 lines (42 loc) · 1.46 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python3
import os
import sys
from setuptools import setup, find_packages
assert(sys.version_info > (3, 4))
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
__version__ = None
with open(os.path.join(os.path.dirname(__file__), 'rdserial', '__init__.py')) as f:
for line in f:
if not line.startswith('__version__ = '):
continue
__version__ = eval(line.rsplit(None, 1)[-1])
break
setup(
name='rdserialtool',
description='RDTech UM/DPS series device interface tool',
long_description=read('README'),
version=__version__,
license='MPL-2.0',
platforms=['Unix'],
author='Ryan Finnie',
author_email='[email protected]',
url='https://github.com/rfinnie/rdserialtool',
download_url='https://github.com/rfinnie/rdserialtool',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
],
entry_points={
'console_scripts': [
'rdserialtool = rdserial.tool:main',
],
},
test_suite='tests',
)