Skip to content

Commit fde4c6e

Browse files
committed
update python-publish workflow for pep 517
1 parent 4e15de8 commit fde4c6e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ jobs:
2626
# Install build and packaging dependencies.
2727
# setuptools-scm is necessary for ensuring all files from VCS (such as
2828
# examples) are in the sdist.
29-
run: |
30-
pip install --upgrade pip setuptools wheel twine setuptools-scm
29+
run: pip install -U pip build twine
3130
- name: Build and publish
3231
env:
3332
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3433
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3534
run: |
36-
python setup.py sdist bdist_wheel
35+
python -m build
3736
twine upload dist/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ documentation = "https://setuptools-rust.readthedocs.io"
4747
changelog = "https://github.com/PyO3/setuptools-rust/blob/main/CHANGELOG.md"
4848

4949
[build-system]
50-
requires = ["setuptools>=62.4"]
50+
requires = ["setuptools>=62.4", "setuptools_scm"]
5151
build-backend = "setuptools.build_meta"
5252

5353
[tool.isort]

0 commit comments

Comments
 (0)