10
10
here = os .path .abspath (os .path .dirname (__file__ ))
11
11
12
12
req = [
13
- 'numpy>=1.18.0' ,
14
- 'spatialmath-python>=0.11' ,
15
- 'spatialgeometry>=0.2.0' ,
16
- 'pgraph-python' ,
17
- 'scipy' ,
18
- 'matplotlib' ,
19
- 'ansitable' ,
20
- 'swift-sim>=0.10.0' ,
21
- 'qpsolvers' ,
22
- 'rtb-data'
13
+ "numpy>=1.18.0" ,
14
+ "spatialmath-python>=0.11" ,
15
+ "spatialgeometry>=0.2.0" ,
16
+ "pgraph-python" ,
17
+ "scipy" ,
18
+ "matplotlib" ,
19
+ "ansitable" ,
20
+ "swift-sim>=0.10.0" ,
21
+ "qpsolvers" ,
22
+ "rtb-data" ,
23
+ "progress" ,
23
24
]
24
25
25
- collision_req = [
26
- 'pybullet'
27
- ]
26
+ collision_req = ["pybullet" ]
28
27
29
- vp_req = [
30
- 'vpython' ,
31
- 'numpy-stl' ,
32
- 'imageio' ,
33
- 'imageio-ffmpeg'
34
- ]
28
+ vp_req = ["vpython" , "numpy-stl" , "imageio" , "imageio-ffmpeg" ]
35
29
36
- dev_req = [
37
- 'pytest' ,
38
- 'pytest-cov' ,
39
- 'flake8' ,
40
- 'pyyaml' ,
41
- 'sympy'
42
- ]
30
+ dev_req = ["pytest" , "pytest-cov" , "flake8" , "pyyaml" , "sympy" ]
43
31
44
32
docs_req = [
45
- ' sphinx' ,
46
- ' sphinx_rtd_theme' ,
47
- ' sphinx-autorun' ,
33
+ " sphinx" ,
34
+ " sphinx_rtd_theme" ,
35
+ " sphinx-autorun" ,
48
36
]
49
37
50
38
# Get the long description from the README file
51
- with open (os .path .join (here , ' README.md' ), encoding = ' utf-8' ) as f :
39
+ with open (os .path .join (here , " README.md" ), encoding = " utf-8" ) as f :
52
40
long_description = f .read ()
53
41
54
42
# list all data folders here, to ensure they get packaged
57
45
# 'roboticstoolbox/models/URDF/xacro',
58
46
# 'roboticstoolbox/models/DH/meshes',
59
47
# 'roboticstoolbox/data',
60
- ' roboticstoolbox/core' ,
48
+ " roboticstoolbox/core" ,
61
49
]
62
50
63
51
64
52
def package_files (directory ):
65
53
paths = []
66
54
for (pathhere , _ , filenames ) in os .walk (directory ):
67
55
for filename in filenames :
68
- paths .append (os .path .join ('..' , pathhere , filename ))
56
+ paths .append (os .path .join (".." , pathhere , filename ))
69
57
return paths
70
58
71
59
@@ -74,87 +62,65 @@ def package_files(directory):
74
62
extra_files += package_files (extra_folder )
75
63
76
64
frne = Extension (
77
- ' frne' ,
65
+ " frne" ,
78
66
sources = [
79
- ' ./roboticstoolbox/core/vmath.c' ,
80
- ' ./roboticstoolbox/core/ne.c' ,
81
- ' ./roboticstoolbox/core/frne.c' ] ,
82
- include_dirs = [
83
- ' ./roboticstoolbox/core/'
84
- ] )
67
+ " ./roboticstoolbox/core/vmath.c" ,
68
+ " ./roboticstoolbox/core/ne.c" ,
69
+ " ./roboticstoolbox/core/frne.c" ,
70
+ ],
71
+ include_dirs = [ " ./roboticstoolbox/core/" ],
72
+ )
85
73
86
74
fknm = Extension (
87
- 'fknm' ,
88
- sources = [
89
- './roboticstoolbox/core/fknm.c' ],
90
- include_dirs = [
91
- './roboticstoolbox/core/' ,
92
- numpy .get_include ()
93
- ])
75
+ "fknm" ,
76
+ sources = ["./roboticstoolbox/core/fknm.c" ],
77
+ include_dirs = ["./roboticstoolbox/core/" , numpy .get_include ()],
78
+ )
94
79
95
80
setup (
96
- name = 'roboticstoolbox-python' ,
97
-
98
- version = '0.11.0' ,
99
-
100
- description = 'A Python library for robotic education and research' ,
101
-
81
+ name = "roboticstoolbox-python" ,
82
+ version = "0.11.0" ,
83
+ description = "A Python library for robotic education and research" ,
102
84
long_description = long_description ,
103
-
104
- long_description_content_type = 'text/markdown' ,
105
-
106
- url = 'https://github.com/petercorke/robotics-toolbox-python' ,
107
-
108
- author = 'Jesse Haviland and Peter Corke' ,
109
-
110
- license = 'MIT' ,
111
-
85
+ long_description_content_type = "text/markdown" ,
86
+ url = "https://github.com/petercorke/robotics-toolbox-python" ,
87
+ author = "Jesse Haviland and Peter Corke" ,
88
+ license = "MIT" ,
112
89
classifiers = [
113
90
# 3 - Alpha
114
91
# 4 - Beta
115
92
# 5 - Production/Stable
116
- 'Development Status :: 4 - Beta' ,
117
-
93
+ "Development Status :: 4 - Beta" ,
118
94
# Indicate who your project is intended for
119
- ' Intended Audience :: Developers' ,
95
+ " Intended Audience :: Developers" ,
120
96
# Pick your license as you wish (should match "license" above)
121
- 'License :: OSI Approved :: MIT License' ,
122
-
97
+ "License :: OSI Approved :: MIT License" ,
123
98
# Specify the Python versions you support here. In particular, ensure
124
99
# that you indicate whether you support Python 2, Python 3 or both.
125
- ' Programming Language :: Python :: 3.6' ,
126
- ' Programming Language :: Python :: 3.7' ,
127
- ' Programming Language :: Python :: 3.8' ,
128
- ' Programming Language :: Python :: 3.9' ,
100
+ " Programming Language :: Python :: 3.6" ,
101
+ " Programming Language :: Python :: 3.7" ,
102
+ " Programming Language :: Python :: 3.8" ,
103
+ " Programming Language :: Python :: 3.9" ,
129
104
],
130
-
131
- python_requires = '>=3.6' ,
132
-
105
+ python_requires = ">=3.6" ,
133
106
project_urls = {
134
- ' Documentation' : ' https://petercorke.github.io/roboticstoolbox-python' ,
135
- ' Source' : ' https://github.com/petercorke/roboticstoolbox-python' ,
136
- ' Tracker' : ' https://github.com/petercorke/roboticstoolbox-python/issues' ,
137
- ' Coverage' : ' https://codecov.io/gh/petercorke/roboticstoolbox-python'
107
+ " Documentation" : " https://petercorke.github.io/roboticstoolbox-python" ,
108
+ " Source" : " https://github.com/petercorke/roboticstoolbox-python" ,
109
+ " Tracker" : " https://github.com/petercorke/roboticstoolbox-python/issues" ,
110
+ " Coverage" : " https://codecov.io/gh/petercorke/roboticstoolbox-python" ,
138
111
},
139
-
140
112
ext_modules = [frne , fknm ],
141
-
142
- keywords = 'python robotics robotics-toolbox kinematics dynamics' \
143
- ' motion-planning trajectory-generation jacobian hessian' \
144
- ' control simulation robot-manipulator mobile-robot' ,
145
-
113
+ keywords = "python robotics robotics-toolbox kinematics dynamics"
114
+ " motion-planning trajectory-generation jacobian hessian"
115
+ " control simulation robot-manipulator mobile-robot" ,
146
116
packages = find_packages (exclude = ["tests" , "notebooks" ]),
147
-
148
- package_data = {'roboticstoolbox' : extra_files },
149
-
150
- scripts = ['roboticstoolbox/bin/rtbtool' ],
151
-
117
+ package_data = {"roboticstoolbox" : extra_files },
118
+ scripts = ["roboticstoolbox/bin/rtbtool" ],
152
119
install_requires = req ,
153
-
154
120
extras_require = {
155
- ' collision' : collision_req ,
156
- ' dev' : dev_req ,
157
- ' docs' : docs_req ,
158
- ' vpython' : vp_req
159
- }
121
+ " collision" : collision_req ,
122
+ " dev" : dev_req ,
123
+ " docs" : docs_req ,
124
+ " vpython" : vp_req ,
125
+ },
160
126
)
0 commit comments