forked from Phylliade/ikpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (45 loc) · 1.48 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
from os import path
import sys
def get_version():
version = {}
with open(os.path.join(os.path.dirname(__file__), "src/ikpy/_version.py")) as fp:
exec(fp.read(), version)
return version["__version__"]
# read the contents of your README file
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md')) as f:
long_description = f.read()
if sys.version_info < (3, 0):
# Python2 requires numpy < 1.17
install_requires = ["numpy<1.17"]
setup_requires = ["numpy<1.17"]
else:
install_requires = ["numpy"]
setup_requires = ["numpy"]
install_requires += ['scipy', 'sympy']
setup(
name='ikpy',
version=get_version(),
author="Pierre Manceron",
description="An inverse kinematics library aiming performance and modularity",
url="https://github.com/Phylliade/ikpy",
license="GNU GENERAL PUBLIC LICENSE Version 3",
packages=find_packages("src", exclude=("tests", "docs")),
package_dir={'': 'src'},
setup_requires=setup_requires,
install_requires=install_requires,
extras_require={
'plot': ["matplotlib", "graphviz"],
},
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
],
# Used in the Pypi page
long_description=long_description,
long_description_content_type='text/markdown'
)