diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3446463..d26f176 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,11 +39,11 @@ jobs: python-version: 3.x - name: Build wheels - uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2 + uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a with: target: ${{ matrix.platform.target }} - args: --release --out dist --find-interpreter --features extension-module - sccache: "true" + args: --release --out dist --find-interpreter --features extension-module --zig + sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} manylinux: auto - name: Upload wheels @@ -75,10 +75,11 @@ jobs: python-version: 3.x - name: Build wheels - uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2 + uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a with: target: ${{ matrix.platform.target }} args: --release --out dist --find-interpreter --features extension-module + sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} manylinux: musllinux_1_2 - name: Upload wheels @@ -107,11 +108,11 @@ jobs: architecture: ${{ matrix.platform.target }} - name: Build wheels - uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2 + uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a with: target: ${{ matrix.platform.target }} args: --release --out dist --find-interpreter --features extension-module - sccache: "true" + sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} - name: Upload wheels uses: actions/upload-artifact@v4 @@ -138,11 +139,11 @@ jobs: python-version: 3.x - name: Build wheels - uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2 + uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a with: target: ${{ matrix.platform.target }} args: --release --out dist --find-interpreter --features extension-module - sccache: "true" + sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} - name: Upload wheels uses: actions/upload-artifact@v4 @@ -158,7 +159,7 @@ jobs: persist-credentials: false - name: Build sdist - uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2 + uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a with: command: sdist args: --out dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d20eaa..1ca00f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: subject-path: "wheels-*/*" - name: Publish to PyPI - uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2 + uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a with: command: upload args: --non-interactive --skip-existing wheels-*/* diff --git a/pyproject.toml b/pyproject.toml index 9f1dad7..3a291fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ dev = [ "bumpver>=2024.1130", "cogapp>=3.4.1", "django-stubs>=5.1.1", - "maturin>=1.7.8", + "maturin[zig]>=1.7.8", "nox>=2025.5.1", "ruff>=0.8.2", ] diff --git a/uv.lock b/uv.lock index 89c7bbd..05d9ae2 100644 --- a/uv.lock +++ b/uv.lock @@ -284,7 +284,7 @@ dev = [ { name = "cogapp" }, { name = "django-stubs", version = "5.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, { name = "django-stubs", version = "5.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, - { name = "maturin" }, + { name = "maturin", extra = ["zig"] }, { name = "nox" }, { name = "ruff" }, ] @@ -299,7 +299,7 @@ dev = [ { name = "bumpver", specifier = ">=2024.1130" }, { name = "cogapp", specifier = ">=3.4.1" }, { name = "django-stubs", specifier = ">=5.1.1" }, - { name = "maturin", specifier = ">=1.7.8" }, + { name = "maturin", extras = ["zig"], specifier = ">=1.7.8" }, { name = "nox", specifier = ">=2025.5.1" }, { name = "ruff", specifier = ">=0.8.2" }, ] @@ -543,6 +543,11 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/11/9b/5fd901fd60e82d9e4c90092b4912ba6b790c7976cc54c1c93b495dc138ee/maturin-1.9.0-py3-none-win_arm64.whl", hash = "sha256:7acbcf1ae9d3c26c2cceec08b4f58d37ac1a7df5f15b13328e3f80efb5b6c4de", size = 6989945, upload-time = "2025-06-23T14:36:04.24Z" }, ] +[package.optional-dependencies] +zig = [ + { name = "ziglang" }, +] + [[package]] name = "mergedeep" version = "1.3.4" @@ -970,6 +975,21 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/33/e8/e40370e6d74ddba47f002a32919d91310d6074130fe4e17dabcafc15cbf1/watchdog-6.0.0-py3-none-win_ia64.whl", hash = "sha256:a1914259fa9e1454315171103c6a30961236f508b9b623eae470268bbcc6a22f", size = 79067, upload-time = "2024-11-01T14:07:11.845Z" }, ] +[[package]] +name = "ziglang" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6e/cf/755ab2dae976e87ec85dc49684786dd156c441a87b2002f2d3d253889775/ziglang-0.12.1-py3-none-macosx_12_0_arm64.whl", hash = "sha256:e166297bc3fa4e8f7e4f8ca4fdd3e20fc6821a27fd3b6ca04268654a5003a8ba", size = 78664906, upload-time = "2024-06-26T13:38:23.234Z" }, + { url = "https://files.pythonhosted.org/packages/c4/8a/5b168d21f2e83c83bc6c712d68cd11d1affdc50a185416a6810e90f3e1dc/ziglang-0.12.1-py3-none-macosx_12_0_x86_64.whl", hash = "sha256:5164d25349441c890b8cf928317a533e3338e3603285c394001ea12ba6af7687", size = 81221242, upload-time = "2024-06-26T13:38:35.919Z" }, + { url = "https://files.pythonhosted.org/packages/5e/63/8e64f3a525a9e48dbd4ae430fe44846b64e8b897216b8884673c3bcc0353/ziglang-0.12.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl", hash = "sha256:66fbb91889d7cfca5a9e3820e07cbbaa6ffbeadb1402b2db3cd7702b5fe43372", size = 85688857, upload-time = "2024-06-26T13:38:48.022Z" }, + { url = "https://files.pythonhosted.org/packages/ba/13/9f4f45a6e6467fdc7e952043fc3e1449d185bcc3d4095b4b01d45241c0f9/ziglang-0.12.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl", hash = "sha256:dcde948140b9e5776c2295b9b808fb4950df7ecadaecb54623dd701502be2017", size = 78197715, upload-time = "2024-06-26T13:39:00.89Z" }, + { url = "https://files.pythonhosted.org/packages/8e/f7/f29b79b60dfe53d0c541c12211cfb74c9e4064b93c4ca9788ca18fc39b66/ziglang-0.12.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:945ea8ac157373e8437b377f7eac39f16fe63cd21b2b27fb4e518466e1cd561d", size = 75570292, upload-time = "2024-06-26T13:39:12.496Z" }, + { url = "https://files.pythonhosted.org/packages/33/ff/870ec09ced4953e9c64131d5e1a16d4f086768f6033e6916594ee0b94bbc/ziglang-0.12.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl", hash = "sha256:011717479951d820e9a0fe0b61b9132560f4094861fca54d66595b66f8aee23a", size = 76388277, upload-time = "2024-06-26T13:39:24.739Z" }, + { url = "https://files.pythonhosted.org/packages/f8/38/41530e821a92856cc7b247caa5d209356416a5e417d1c314c18baa7b6f8e/ziglang-0.12.1-py3-none-win32.whl", hash = "sha256:0489dfbc6186f528fd7a18c713d13303bcc62f0a281e469599ba5645ecbf4ac0", size = 82343902, upload-time = "2024-06-26T13:39:50.642Z" }, + { url = "https://files.pythonhosted.org/packages/9d/63/00558cded5202f5648a8bf13da4857060d0d231080b4ea34fdb25406b7b9/ziglang-0.12.1-py3-none-win_amd64.whl", hash = "sha256:c5344e28e9ce4a48949f140c2bb6457e10107dfed27da8af7611f7640bc50177", size = 77654574, upload-time = "2024-06-26T13:40:19.445Z" }, +] + [[package]] name = "zipp" version = "3.23.0"