forked from poppy-project/pypot
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
76 lines (57 loc) · 2.11 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
#!/usr/bin/env python
from io import open
import re
import sys
from setuptools import setup, find_packages
def version():
with open('pypot/_version.py') as f:
return re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read()).group(1)
extra = {}
if sys.version_info >= (3,):
extra['use_2to3'] = True
install_requires = ['numpy',
'pyserial>2.6',
'tornado',
'scipy',
'ikpy',
'bottle',
'poppy-creature>=2' # Kept to avoid breaking old imports
]
if sys.version_info < (2, 7):
print("python version < 2.7 is not supported")
sys.exit(1)
if sys.version_info < (3, 4):
install_requires.append('enum34')
setup(name='pypot',
version=version(),
packages=find_packages(),
install_requires=install_requires,
extras_require={
'doc': ['sphinx', 'sphinxjp.themes.basicstrap', 'sphinx-bootstrap-theme'],
'zmq-server': ['zmq'],
'remote-robot': ['zerorpc'],
'camera': ['hampy', 'zmq'], # Extras require: opencv (not a PyPi packet)
'tests': ['requests', 'websocket-client', 'poppy-ergo-jr'],
},
entry_points={
'console_scripts': [
'dxl-config = pypot.tools.dxlconfig:main',
'poppy-services=pypot.creatures.services_launcher:main',
'poppy-configure=pypot.creatures.configure_utility:main',
],
},
include_package_data=True,
exclude_package_data={'': ['.gitignore']},
zip_safe=False,
author='See https://github.com/poppy-project/pypot/graphs/contributors',
author_email='[email protected]',
description='Python Library for Robot Control',
long_description=open('README.md', encoding='utf-8').read(),
url='https://github.com/poppy-project/pypot',
license='GNU GENERAL PUBLIC LICENSE Version 3',
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering", ],
**extra
)