Skip to content

Commit 2c2237a

Browse files
authored
remove deprecated call to setup.py, use 'build' package instead (#51)
1 parent f430925 commit 2c2237a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ jobs:
4545
- name: Upgrade pip, setuptools and wheel
4646
run: |
4747
python -m pip install --upgrade pip
48-
pip install setuptools wheel twine
48+
pip install setuptools wheel build twine
4949
- name: Build and check build
5050
run: |
51-
python setup.py sdist bdist_wheel
51+
python -m build
5252
twine check dist/*
5353
- name: Build and publish
5454
if: ${{ success() }}
5555
env:
5656
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
5757
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
5858
run: |
59-
python setup.py sdist bdist_wheel
59+
python -m build
6060
twine check dist/*
61-
twine upload dist/*
61+
twine upload dist/*

0 commit comments

Comments
 (0)