Skip to content

Commit cb2eb67

Browse files
authored
Merge pull request #337 from davidhewitt/pyproject
migrate to pyproject.toml
2 parents a766dd9 + 64a839c commit cb2eb67

File tree

16 files changed

+70
-74
lines changed

16 files changed

+70
-74
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]

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ jobs:
232232
233233
docker run --rm -v "$PWD":/io -w /io messense/manylinux2014-cross:${{ matrix.platform.arch }} bash build-wheels.sh
234234
- name: Install abi3 wheel and run tests
235-
uses: uraimo/run-on-arch-action@v2.0.5
235+
uses: uraimo/run-on-arch-action@v2.5.0
236236
with:
237237
arch: ${{ matrix.platform.arch }}
238238
distro: ubuntu20.04
@@ -275,7 +275,7 @@ jobs:
275275
python -m pip install wheel
276276
python setup.py bdist_wheel --plat-name manylinux2014_aarch64
277277
ls -la dist/
278-
- uses: uraimo/run-on-arch-action@v2.1.1
278+
- uses: uraimo/run-on-arch-action@v2.5.0
279279
name: Install built wheel
280280
with:
281281
arch: aarch64
@@ -320,7 +320,7 @@ jobs:
320320
python -m pip install wheel
321321
python setup.py bdist_wheel --plat-name manylinux2014_aarch64
322322
ls -la dist/
323-
- uses: uraimo/run-on-arch-action@v2.1.1
323+
- uses: uraimo/run-on-arch-action@v2.5.0
324324
name: Install built wheel
325325
with:
326326
arch: aarch64

examples/hello-world-script/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77

88
@nox.session()
99
def test(session: nox.Session):
10-
session.install(SETUPTOOLS_RUST)
10+
session.install(SETUPTOOLS_RUST, "wheel")
1111
session.install("--no-build-isolation", ".")
1212
session.run("hello-world-script", *session.posargs)
1313

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)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[build-system]
22
requires = ["setuptools", "wheel", "setuptools-rust"]
3+
build-backend = "setuptools.build_meta"

examples/hello-world/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77

88
@nox.session()
99
def test(session: nox.Session):
10-
session.install(SETUPTOOLS_RUST)
10+
session.install(SETUPTOOLS_RUST, "wheel")
1111
session.install("--no-build-isolation", ".")
1212
session.run("hello-world", *session.posargs)
1313

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/hello-world/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[build-system]
22
requires = ["setuptools", "wheel", "setuptools-rust"]
3+
build-backend = "setuptools.build_meta"

examples/html-py-ever/noxfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
@nox.session()
99
def test(session: nox.Session):
10-
session.install(SETUPTOOLS_RUST, "pytest", "pytest-benchmark", "beautifulsoup4")
10+
session.install(
11+
SETUPTOOLS_RUST, "wheel", "pytest", "pytest-benchmark", "beautifulsoup4"
12+
)
1113
session.install("--no-build-isolation", ".")
1214
session.run("pytest", *session.posargs)
1315

1416

1517
@nox.session()
1618
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")
19+
session.install(SETUPTOOLS_RUST, "pytest", "pytest-benchmark", "beautifulsoup4")
2020
session.run("python", "setup.py", "install")
2121
session.run("pytest", *session.posargs)

examples/html-py-ever/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[build-system]
22
requires = ["setuptools", "wheel", "setuptools-rust"]
3+
build-backend = "setuptools.build_meta"

examples/namespace_package/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77

88
@nox.session()
99
def test(session: nox.Session):
10-
session.install(SETUPTOOLS_RUST, "pytest")
10+
session.install(SETUPTOOLS_RUST, "wheel", "pytest")
1111
session.install("--no-build-isolation", ".")
1212
session.run("pytest", *session.posargs)
1313

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)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[build-system]
22
requires = ["setuptools", "wheel", "setuptools-rust"]
3+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)