Skip to content

Commit 27ed02f

Browse files
committed
.github/workflows/pythonpublish.yml: Use 'build' instead of calling setup.py directly
1 parent 491a6c4 commit 27ed02f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pythonpublish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
python-version: '3.x'
1818
- name: Install dependencies
1919
run: |
20-
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine
20+
python3 -m pip install --upgrade pip
21+
python3 -m pip install build twine
2222
- name: Build and publish
2323
env:
2424
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2525
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2626
run: |
27-
python setup.py sdist bdist_wheel
27+
python3 -m build
2828
twine upload dist/*

0 commit comments

Comments
 (0)