Skip to content

Commit ba0b9c2

Browse files
committed
use python -m build instead of setuptools
1 parent f390bf7 commit ba0b9c2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/publish-py.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3333
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3434
run: |
35-
python setup.py sdist bdist_wheel
35+
python -m build --sdist --wheel --outdir dist .
3636
twine upload dist/*

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def test_python_style(session: Session) -> None:
223223
def test_python_build(session: Session) -> None:
224224
"""Test whether the Python package can be build for distribution"""
225225
install_requirements_file(session, "build-pkg")
226-
session.run("python", "setup.py", "bdist_wheel", "sdist")
226+
session.run("python", "-m", "build", "--sdist", "--wheel", "--outdir", "dist", ".")
227227

228228

229229
@nox.session

requirements/build-pkg.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pre-commit
21
twine
32
wheel
4-
setuptools_scm
3+
build

0 commit comments

Comments
 (0)