Skip to content

Commit 029cd94

Browse files
committed
migrate to pyproject.toml
1 parent a766dd9 commit 029cd94

File tree

9 files changed

+54
-64
lines changed

9 files changed

+54
-64
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ tag = False
44
current_version = 1.6.0
55
message = release: {new_version}
66

7-
[bumpversion:file:setup.cfg]
7+
[bumpversion:file:pyproject.toml]
88

99
[bumpversion:file:setuptools_rust/version.py]

examples/hello-world-script/noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ def test(session: nox.Session):
1414

1515
@nox.session()
1616
def setuptools_install(session: nox.Session):
17-
session.install("setuptools")
18-
with session.chdir(SETUPTOOLS_RUST):
19-
session.run("python", "setup.py", "install")
17+
session.install(SETUPTOOLS_RUST)
2018
session.run("python", "setup.py", "install")
2119
session.run("hello-world-script", *session.posargs)

examples/hello-world/noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ def test(session: nox.Session):
1414

1515
@nox.session()
1616
def setuptools_install(session: nox.Session):
17-
session.install("setuptools")
18-
with session.chdir(SETUPTOOLS_RUST):
19-
session.run("python", "setup.py", "install")
17+
session.install(SETUPTOOLS_RUST)
2018
session.run("python", "setup.py", "install")
2119
session.run("hello-world", *session.posargs)

examples/html-py-ever/noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ def test(session: nox.Session):
1414

1515
@nox.session()
1616
def setuptools_install(session: nox.Session):
17-
session.install("setuptools", "pytest", "pytest-benchmark", "beautifulsoup4")
18-
with session.chdir(SETUPTOOLS_RUST):
19-
session.run("python", "setup.py", "install")
17+
session.install(SETUPTOOLS_RUST, "pytest", "pytest-benchmark", "beautifulsoup4")
2018
session.run("python", "setup.py", "install")
2119
session.run("pytest", *session.posargs)

examples/namespace_package/noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ def test(session: nox.Session):
1414

1515
@nox.session()
1616
def setuptools_install(session: nox.Session):
17-
session.install("setuptools", "pytest")
18-
with session.chdir(SETUPTOOLS_RUST):
19-
session.run("python", "setup.py", "install")
17+
session.install(SETUPTOOLS_RUST, "pytest")
2018
session.run("python", "setup.py", "install")
2119
session.run("pytest", *session.posargs)

examples/rust_with_cffi/noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ def test(session: nox.Session):
1414

1515
@nox.session()
1616
def setuptools_install(session: nox.Session):
17-
session.install("setuptools", "pytest", "cffi")
18-
with session.chdir(SETUPTOOLS_RUST):
19-
session.run("python", "setup.py", "install")
17+
session.install(SETUPTOOLS_RUST, "pytest", "cffi")
2018
session.run("python", "setup.py", "install")
2119
session.run("pytest", *session.posargs)

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
[project]
2+
name = "setuptools-rust"
3+
version = "1.6.0"
4+
description = "Setuptools Rust extension plugin"
5+
readme = "README.md"
6+
requires-python = ">=3.7"
7+
keywords = ["distutils", "setuptools", "rust"]
8+
authors = [
9+
{name = "Nikolay Kim", email = "[email protected]"},
10+
]
11+
classifiers = [
12+
"Topic :: Software Development :: Version Control",
13+
"License :: OSI Approved :: MIT License",
14+
"Intended Audience :: Developers",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3.7",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Development Status :: 5 - Production/Stable",
22+
"Operating System :: POSIX",
23+
"Operating System :: MacOS :: MacOS X",
24+
"Operating System :: Microsoft :: Windows",
25+
]
26+
27+
dependencies = [
28+
"setuptools>=62.4",
29+
"semantic_version>=2.8.2,<3",
30+
"typing_extensions>=3.7.4.3",
31+
]
32+
33+
[project.entry-points."distutils.commands"]
34+
clean_rust = "setuptools_rust:clean_rust"
35+
build_rust = "setuptools_rust:build_rust"
36+
37+
[project.entry-points."distutils.setup_keywords"]
38+
rust_extensions = "setuptools_rust.setuptools_ext:rust_extensions"
39+
40+
[project.urls]
41+
repository = "https://github.com/PyO3/setuptools-rust"
42+
documentation = "https://setuptools-rust.readthedocs.io"
43+
changelog = "https://github.com/PyO3/setuptools-rust/blob/main/CHANGELOG.md"
44+
145
[build-system]
246
requires = ["setuptools>=62.4"]
347
build-backend = "setuptools.build_meta"
@@ -8,3 +52,7 @@ profile = "black"
852
[tool.pytest.ini_options]
953
minversion = "6.0"
1054
addopts = "--doctest-modules"
55+
56+
[tool.setuptools]
57+
packages = ["setuptools_rust"]
58+
zip-safe = true

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)