Skip to content

Commit bebc47b

Browse files
committed
fix: move to pyproject.toml
1 parent 830839f commit bebc47b

File tree

2 files changed

+31
-30
lines changed

2 files changed

+31
-30
lines changed

pyproject.toml

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,45 @@
1-
# [build-system]
2-
# requires = ["setuptools", "wheel"]
3-
# build-backend = "setuptools.build_meta:__legacy__"
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "ctrlutils"
7+
version = "1.4.2"
8+
authors = [
9+
{name = "Toki Migimatsu", email = "[email protected]"}
10+
]
11+
description = "Python robot control utils"
12+
license = {file = "LICENSE"}
13+
readme = "README.md"
14+
requires-python = ">=3.7"
15+
classifiers = [
16+
"Programming Language :: Python :: 3",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent"
19+
]
20+
dependencies = ["numpy", "redis"]
21+
22+
[project.urls]
23+
Homepage = "https://github.com/tmigimatsu/ctrl-utils.git"
424

525
[tool.semantic_release]
626
branch = "main"
727
build_command = false
828
upload_to_repository = false
929
upload_to_release = false
10-
version_variable = [
11-
"setup.py:__version__",
12-
"ctrlutils/__init__.py:__version__",
13-
]
14-
version_pattern = [
15-
"CMakeLists.txt:VERSION {version}$",
16-
]
30+
version_variable = ["setup.py:__version__", "ctrlutils/__init__.py:__version__"]
31+
version_pattern = ["CMakeLists.txt:VERSION {version}$"]
32+
version_toml = ["pyproject.toml:project.version"]
1733

1834
[tool.cibuildwheel]
19-
skip = [
20-
"pp*",
21-
"*-musllinux*",
22-
]
35+
skip = ["cp36-*", "pp*", "*-musllinux*"]
2336

2437
[tool.cibuildwheel.linux]
2538
archs = ["auto64"]
2639

2740
[tool.cibuildwheel.macos]
2841
archs = ["universal2"]
29-
environment = { CMAKE_OSX_ARCHITECTURES="arm64;x86_64", MACOSX_DEPLOYMENT_TARGET="10.14" }
42+
43+
[tool.cibuildwheel.macos.environment]
44+
CMAKE_OSX_ARCHITECTURES = "arm64;x86_64"
45+
MACOSX_DEPLOYMENT_TARGET = "10.14"

setup.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,24 +95,9 @@ def build_extension(self, extension: setuptools.Extension):
9595

9696

9797
setuptools.setup(
98-
name="ctrlutils",
99-
version=__version__,
100-
author="Toki Migimatsu",
101-
author_email="[email protected]",
102-
description="Python ctrl-utils library",
103-
url="https://github.com/tmigimatsu/ctrl-utils",
104-
license="MIT",
10598
packages=["ctrlutils", "ctrlutils.eigen"],
106-
classifiers=[
107-
"Programming Language :: Python :: 3",
108-
"License :: OSI Approved :: MIT License",
109-
"Operating System :: OS Independent",
110-
],
111-
python_requires=">=3.6",
112-
setup_requires=["packaging"],
11399
ext_modules=[CMakeExtension("ctrlutils")],
114100
cmdclass={
115101
"build_ext": CMakeBuild,
116102
},
117-
install_requires=["numpy", "redis"]
118103
)

0 commit comments

Comments
 (0)