-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
53 lines (46 loc) · 1.66 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
#!/usr/bin/env python
from io import open
import re
import os
import sys
from setuptools import setup, find_packages
def version():
with open('herborist/_version.py') as f:
return re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read()).group(1)
install_requires = ['numpy', 'pyqt5', 'pypot']
if sys.version_info < (3, 5):
print("python version < 3.5 is not supported")
sys.exit(1)
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
full_path = os.path.join(path, filename)
paths.append((path, [full_path]))
return paths
setup(name='herborist',
version=version(),
packages=find_packages(),
install_requires=install_requires,
extras_require={
'doc': ['sphinx', 'sphinxjp.themes.basicstrap', 'sphinx-bootstrap-theme']
},
entry_points={
'console_scripts': [
'herborist = herborist.herborist:main',
]
},
package_data={"herborist": ["herborist.ui"]},
include_package_data=True,
exclude_package_data={'': ['.gitignore']},
zip_safe=False,
author='See https://github.com/poppy-project/herborist/graphs/contributors',
author_email='dev@poppy-station.org',
description='Graphical tool to detect and configure Dynamixel motors',
long_description=open('README.md', encoding='utf-8').read(),
url='https://github.com/poppy-project/herborist',
license='GNU GENERAL PUBLIC LICENSE Version 3',
classifiers=[
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering", ],
)