Skip to content

Commit

Permalink
CI: release: Change for calling setup.py directly to using build
Browse files Browse the repository at this point in the history
Calling setup.py directly is depreciated, this switches to using pypa's build tool for wheel and sdist building.

See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for reasoning and https://pypa-build.readthedocs.io/en/stable/ for build documentation.
  • Loading branch information
EwoutH committed Apr 8, 2022
1 parent 261e87a commit ce13381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -U pip wheel setuptools
run: pip install -U pip wheel setuptools build
- name: Build package
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Upload package as artifact to GitHub
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ce13381

Please sign in to comment.