Skip to content

Commit 1f4e6a1

Browse files
committed
change to modern build system and pyproject.toml file
1 parent 71bab70 commit 1f4e6a1

7 files changed

Lines changed: 93 additions & 92 deletions

File tree

‎MANIFEST.in‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ help:
77
@echo "$(BLUE) make test - run all unit tests"
88
@echo " make coverage - run unit tests and coverage report"
99
@echo " make docs - build Sphinx documentation"
10-
@echo " make docupdate - upload Sphinx documentation to GitHub pages"
1110
@echo " make dist - build dist files"
1211
@echo " make upload - upload to PyPI"
1312
@echo " make clean - remove dist and docs build files"
@@ -26,12 +25,13 @@ docs: .FORCE
2625
dist: .FORCE
2726
#$(MAKE) test
2827
python -m build
28+
ls -lh dist
2929

3030
upload: .FORCE
3131
twine upload dist/*
3232

3333
clean: .FORCE
3434
(cd docs; make clean)
3535
-rm -r *.egg-info
36-
-rm -r dist
36+
-rm -r dist build
3737

‎RELEASE‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎pyproject.toml‎

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
[project]
2+
name = "spatialmath-python"
3+
version = "1.0.5"
4+
authors = [
5+
{ name="Peter Corke", email="rvc@petercorke.com" },
6+
]
7+
description = "Provides spatial maths capability for Python"
8+
readme = "README.md"
9+
requires-python = ">=3.7"
10+
classifiers = [
11+
"Development Status :: 5 - Production/Stable",
12+
# Indicate who your project is intended for
13+
"Intended Audience :: Developers",
14+
# Specify the Python versions you support here.
15+
"Programming Language :: Python :: 3.7",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
21+
"License :: OSI Approved :: MIT License",
22+
"Operating System :: OS Independent",
23+
]
24+
keywords = [
25+
"spatial-math", "spatial math",
26+
"SO2", "SE2", "SO3", "SE3",
27+
"SO(2)", "SE(2)", "SO(3)", "SE(3)",
28+
"twist", "product of exponential", "translation", "orientation",
29+
"angle-axis", "Lie group", "skew symmetric matrix",
30+
"pose", "translation", "rotation matrix",
31+
"rigid body transform", "homogeneous transformation",
32+
"Euler angles", "roll-pitch-yaw angles",
33+
"quaternion", "unit-quaternion",
34+
"robotics", "robot vision", "computer vision",
35+
]
36+
37+
dependencies = [
38+
"numpy>=1.17.4",
39+
"scipy",
40+
"matplotlib",
41+
"colored",
42+
"ansitable",
43+
]
44+
45+
[project.urls]
46+
"Homepage" = "https://github.com/petercorke/spatialmath-python"
47+
"Bug Tracker" = "https://github.com/petercorke/spatialmath-python/issues"
48+
"Documentation" = "https://petercorke.github.io/petercorke/spatialmath-python"
49+
"Source" = "https://github.com/petercorke/petercorke/spatialmath-python"
50+
51+
[project.optional-dependencies]
52+
53+
dev = [
54+
"sympy",
55+
"pytest",
56+
"pytest-cov",
57+
"coverage",
58+
"codecov",
59+
"recommonmark",
60+
"flake8"
61+
]
62+
63+
docs = [
64+
"sphinx",
65+
"sphinx_rtd_theme",
66+
"sphinx-autorun",
67+
"sphinxcontrib-jsmath",
68+
"sphinx_markdown_tables",
69+
"sphinx-favicon",
70+
]
71+
72+
[build-system]
73+
74+
requires = ["setuptools", "oldest-supported-numpy"]
75+
build-backend = "setuptools.build_meta"
76+
77+
[tool.setuptools]
78+
79+
packages = [
80+
"spatialmath",
81+
"spatialmath.base",
82+
]
83+
84+
[tool.black]
85+
line-length = 88
86+
target-version = ['py37']
87+
exclude = "camera_derivatives.py"
88+
89+
[tool.coverage.run]
90+
omit = [
91+
]

‎requirements.txt‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎runtime.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎setup.py‎

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)