forked from LabPy/lantz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
86 lines (76 loc) · 2.73 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
import codecs
def read(filename):
return codecs.open(filename, encoding='utf-8').read()
long_description = '\n\n'.join([read('README'),
read('AUTHORS'),
read('CHANGES')])
__doc__ = long_description
folder = os.path.dirname(os.path.abspath(__file__))
folder = os.path.join(folder, 'lantz', 'drivers')
paths = os.listdir(folder)
requirements = []
if sys.version_info < (3, 4):
requirements.append('enum34')
companies = [path for path in paths
if os.path.isdir(os.path.join(folder, path))
and os.path.exists(os.path.join(folder, path, '__init__.py'))]
setup(name='Lantz',
version='0.3.dev1',
license='BSD',
description='Instrumentation framework',
long_description=long_description,
keywords='measurement control instrumentation science',
author='Hernan E. Grecco',
author_email='[email protected]',
url='http://lantz.glugcen.dc.uba.ar/',
packages=['lantz',
'lantz.ui',
'lantz.simulators',
'lantz.utils',
'lantz.drivers'] +
['lantz.drivers.' + company for company in companies],
test_suite='lantz.testsuite.testsuite',
install_requires=['pint>=0.3.1',
'stringparser',
] + requirements,
zip_safe=False,
platforms='any',
extra_require={'colorama': ['colorama'],
'numpy': ['numpy'],
'ui': ['sip', 'pyqt4']
},
entry_points={
'zest.releaser.releaser.after_checkout': [
'pyroma = lantz:run_pyroma',
],
'console_scripts': [
'lantz-shell = lantz.ui.shell:main',
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries'
],
scripts=['scripts/lantz-monitor',
'scripts/lantz-scan',
'scripts/lantz-sim'],
)