Skip to content

Commit 4d0e0e1

Browse files
committed
Build sdist and arch-independent wheel with build.
This removes the dependency on setuptools, which isn't installed by default anymore, causing the build to fail.
1 parent 0019943 commit 4d0e0e1

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,18 @@ jobs:
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: 3.x
20-
- name: Build sdist
21-
run: python setup.py sdist
22-
- name: Save sdist
23-
uses: actions/upload-artifact@v4
24-
with:
25-
path: dist/*.tar.gz
26-
- name: Install wheel
27-
run: pip install wheel
28-
- name: Build wheel
20+
- name: Install build
21+
run: pip install build
22+
- name: Build sdist & wheel
23+
run: python -m build
2924
env:
3025
BUILD_EXTENSION: no
31-
run: python setup.py bdist_wheel
32-
- name: Save wheel
26+
- name: Save sdist & wheel
3327
uses: actions/upload-artifact@v4
3428
with:
35-
path: dist/*.whl
29+
path: |
30+
dist/*.tar.gz
31+
dist/*.whl
3632
3733
wheels:
3834
name: Build architecture-specific wheels on ${{ matrix.os }}

0 commit comments

Comments
 (0)