diff --git a/.github/workflows/python-distributions.yml b/.github/workflows/python-distributions.yml index d1e482d00..210e20eae 100644 --- a/.github/workflows/python-distributions.yml +++ b/.github/workflows/python-distributions.yml @@ -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: @@ -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 diff --git a/Cargo.lock b/Cargo.lock index b2fc89c60..14f2a7ee0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,7 +16,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "diff-tree-py" -version = "0.22.2" +version = "0.22.3" dependencies = [ "pyo3", ] @@ -56,7 +56,7 @@ dependencies = [ [[package]] name = "objects-py" -version = "0.22.2" +version = "0.22.3" dependencies = [ "memchr", "pyo3", @@ -70,7 +70,7 @@ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "pack-py" -version = "0.22.2" +version = "0.22.3" dependencies = [ "memchr", "pyo3", diff --git a/setup.py b/setup.py index 822ed3695..6eada1487 100755 --- a/setup.py +++ b/setup.py @@ -61,6 +61,9 @@ sys.argv.remove("--pure") rust_extensions = [] +if "PURE" in os.environ: + rust_extensions = [] + setup( package_data={"": ["py.typed"]},