|
4 | 4 | here = path.abspath(path.dirname(__file__)) |
5 | 5 |
|
6 | 6 | # Get the long description from the README file |
7 | | -with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
| 7 | +with open(path.join(here, "README.md"), encoding="utf-8") as f: |
8 | 8 | long_description = f.read() |
9 | 9 |
|
10 | 10 | # Get the release/version string |
11 | | -with open(path.join(here, 'RELEASE'), encoding='utf-8') as f: |
| 11 | +with open(path.join(here, "RELEASE"), encoding="utf-8") as f: |
12 | 12 | release = f.read() |
13 | 13 |
|
| 14 | +docs_req = ["sphinx", "sphinx_rtd_theme", "sphinx-autorun", "sphinxcontrib-jsmath"] |
14 | 15 |
|
15 | 16 | setup( |
16 | | - name='spatialmath-python', |
17 | | - |
| 17 | + name="spatialmath-python", |
18 | 18 | version=release, |
19 | | - |
20 | 19 | # This is a one-line description or tagline of what your project does. This |
21 | 20 | # corresponds to the "Summary" metadata field: |
22 | | - description='Provides spatial maths capability for Python.', # TODO |
23 | | - |
| 21 | + description="Provides spatial maths capability for Python.", # TODO |
24 | 22 | long_description=long_description, |
25 | | - long_description_content_type='text/markdown', |
26 | | - |
| 23 | + long_description_content_type="text/markdown", |
27 | 24 | classifiers=[ |
28 | 25 | # 3 - Alpha |
29 | 26 | # 4 - Beta |
30 | 27 | # 5 - Production/Stable |
31 | | - 'Development Status :: 4 - Beta', |
32 | | - |
| 28 | + "Development Status :: 4 - Beta", |
33 | 29 | # Indicate who your project is intended for |
34 | | - 'Intended Audience :: Developers', |
| 30 | + "Intended Audience :: Developers", |
35 | 31 | # Pick your license as you wish (should match "license" above) |
36 | | - 'License :: OSI Approved :: MIT License', |
37 | | - |
| 32 | + "License :: OSI Approved :: MIT License", |
38 | 33 | # Specify the Python versions you support here. In particular, ensure |
39 | 34 | # that you indicate whether you support Python 2, Python 3 or both. |
40 | | - 'Programming Language :: Python :: 3.6', |
41 | | - 'Programming Language :: Python :: 3.7', |
42 | | - 'Programming Language :: Python :: 3.8', |
43 | | - 'Programming Language :: Python :: 3.9', |
44 | | - ], |
45 | | - |
46 | | - python_requires='>=3.6', |
47 | | - |
| 35 | + "Programming Language :: Python :: 3.6", |
| 36 | + "Programming Language :: Python :: 3.7", |
| 37 | + "Programming Language :: Python :: 3.8", |
| 38 | + "Programming Language :: Python :: 3.9", |
| 39 | + ], |
| 40 | + python_requires=">=3.6", |
48 | 41 | project_urls={ |
49 | | - 'Documentation': 'https://petercorke.github.io/spatialmath-python', |
50 | | - 'Source': 'https://github.com/petercorke/spatialmath-python', |
51 | | - 'Tracker': 'https://github.com/petercorke/spatialmath-python/issues', |
52 | | - 'Coverage': 'https://codecov.io/gh/petercorke/spatialmath-python' |
| 42 | + "Documentation": "https://petercorke.github.io/spatialmath-python", |
| 43 | + "Source": "https://github.com/petercorke/spatialmath-python", |
| 44 | + "Tracker": "https://github.com/petercorke/spatialmath-python/issues", |
| 45 | + "Coverage": "https://codecov.io/gh/petercorke/spatialmath-python", |
53 | 46 | }, |
54 | | - |
55 | | - url='https://github.com/petercorke/spatialmath-python', |
56 | | - |
57 | | - author='Peter Corke', |
58 | | - |
59 | | - author_email='rvc@petercorke.com', # TODO |
60 | | - |
61 | | - keywords='python SO2 SE2 SO3 SE3 twist translation orientation rotation euler-angles roll-pitch-yaw roll-pitch-yaw-angles quaternion unit-quaternion rotation-matrix transforms robotics robot vision pose', |
62 | | - |
63 | | - license='MIT', # TODO |
64 | | - |
| 47 | + url="https://github.com/petercorke/spatialmath-python", |
| 48 | + author="Peter Corke", |
| 49 | + author_email="rvc@petercorke.com", # TODO |
| 50 | + keywords="python SO2 SE2 SO3 SE3 twist translation orientation rotation euler-angles roll-pitch-yaw roll-pitch-yaw-angles quaternion unit-quaternion rotation-matrix transforms robotics robot vision pose", |
| 51 | + license="MIT", # TODO |
65 | 52 | packages=find_packages(exclude=["test_*", "TODO*"]), |
66 | | - |
67 | | - install_requires=['numpy', 'scipy', 'matplotlib', 'colored', 'ansitable', 'sphinxcontrib-jsmath'] |
68 | | - |
| 53 | + install_requires=["numpy", "scipy", "matplotlib", "colored", "ansitable"], |
| 54 | + extras_require={ |
| 55 | + "docs": docs_req, |
| 56 | + }, |
69 | 57 | ) |
0 commit comments