Skip to content

Commit

Permalink
Build pure wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Oct 22, 2024
1 parent cd30df4 commit 65fdcb0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 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
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 65fdcb0

Please sign in to comment.