Skip to content

Commit

Permalink
Build pure wheels (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer authored Oct 22, 2024
2 parents 49afd7d + 65fdcb0 commit 99a377e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/python-distributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,21 @@ jobs:
name: artifact-${{ matrix.build-identifier }}
path: ./wheelhouse/*.whl

build-pure-wheels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: pip
- run: pip install build
- run: PURE=true python -m build --wheel
- name: Upload pure wheels
uses: actions/upload-artifact@v4
with:
name: artifact-pure
path: ./dist/*.whl

build-sdist:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -130,6 +145,7 @@ jobs:
needs:
- build-wheels
- build-sdist
- build-pure-wheels
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/dulwich-')
permissions:
id-token: write
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
sys.argv.remove("--pure")
rust_extensions = []

if "PURE" in os.environ:
rust_extensions = []


setup(
package_data={"": ["py.typed"]},
Expand Down

0 comments on commit 99a377e

Please sign in to comment.