-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·63 lines (54 loc) · 1.71 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
#!/usr/bin/env python
import sys
import gouda
SCRIPTS = ['decode_barcodes']
URL = 'https://github.com/NaturalHistoryMuseum/gouda/'
setup_data = {
'name': 'gouda',
'version': gouda.__version__,
'author': 'Lawrence Hudson',
'author_email': '[email protected]',
'url': URL,
'license': 'MIT',
'description': gouda.__doc__,
'long_description': 'Visit {0} for more details.'.format(URL),
'packages': [
'gouda', 'gouda.engines', 'gouda.java', 'gouda.strategies',
'gouda.strategies.roi', 'gouda.tests',
],
'include_package_data': True,
'test_suite': 'gouda.tests',
'scripts': ['gouda/scripts/{0}.py'.format(script) for script in SCRIPTS],
'entry_points': {
'console_scripts': [
'{0}=gouda.scripts.{0}:main'.format(script) for script in SCRIPTS
],
},
'install_requires': [
# TODO How to specify OpenCV? 'cv2>=2.4.8'
'Pillow>=3.2.0',
'pylibdmtx>=0.1.6',
'pyzbar>=0.1.3',
'numpy>=1.8.2',
],
'extras_require': {
':python_version=="2.7"': ['pathlib>=1.0.1'],
},
'classifiers': [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Topic :: Utilities',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
}
def setuptools_setup():
from setuptools import setup
setup(**setup_data)
if (2, 7) == sys.version_info[:2] or (3, 4) <= sys.version_info:
setuptools_setup()
else:
sys.exit('Python versions 2.7 and >= 3.4 are supported')