Skip to content

Commit 0ef5e98

Browse files
authored
Fix publishing to pypi for pyproject.toml (#61)
We moved from setup.py to pyproject.toml, so we have to adapt our publishing pipeline.
1 parent 25aa149 commit 0ef5e98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-to-pypi.yml

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

88
push:
99
branches:
10-
- '*/fixed-publishing-to-pypi'
10+
- '*/Fix-publishing-to-pypi*'
1111

1212
jobs:
1313
deploy:
@@ -25,12 +25,12 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install setuptools wheel twine
28+
pip install setuptools wheel twine build
2929
3030
- name: Build and publish
3131
env:
3232
TWINE_USERNAME: "__token__"
3333
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
3434
run: |
35-
python setup.py sdist
35+
python -m build
3636
twine upload dist/*

0 commit comments

Comments
 (0)