Skip to content

Commit

Permalink
Build sdist and arch-independent wheel with build.
Browse files Browse the repository at this point in the history
This removes the dependency on setuptools, which isn't installed by
default anymore, causing the build to fail.
  • Loading branch information
aaugustin committed Aug 20, 2024
1 parent 0019943 commit 4d0e0e1
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,18 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build sdist
run: python setup.py sdist
- name: Save sdist
uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
- name: Install wheel
run: pip install wheel
- name: Build wheel
- name: Install build
run: pip install build
- name: Build sdist & wheel
run: python -m build
env:
BUILD_EXTENSION: no
run: python setup.py bdist_wheel
- name: Save wheel
- name: Save sdist & wheel
uses: actions/upload-artifact@v4
with:
path: dist/*.whl
path: |
dist/*.tar.gz
dist/*.whl
wheels:
name: Build architecture-specific wheels on ${{ matrix.os }}
Expand Down

0 comments on commit 4d0e0e1

Please sign in to comment.