Skip to content

Commit

Permalink
chore: fix publish workflow to not use setup.py anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Jan 28, 2023
1 parent 7a992c9 commit b7747ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ jobs:
- name: setup publish env
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
python -m pip install wheel
python -m pip install twine
python -m pip install setuptools wheel build twine
- name: build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
python setup.py sdist bdist_wheel
python -m build
python -m twine upload dist/*
- name: create release branch
uses: peterjgrainger/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
Expand Down

0 comments on commit b7747ac

Please sign in to comment.