From 4d0e0e10c6ebb779780a9e590667661381df78dc Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 20 Aug 2024 14:55:32 +0200 Subject: [PATCH] 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. --- .github/workflows/release.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed52ddd8..184444e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}