Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cleanup_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install Astral UV
uses: astral-sh/setup-uv@v6
with:
version: "0.8.16"
version: "0.8.22"

- name: Run Cleanup
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Install Astral UV and enable the cache
uses: astral-sh/setup-uv@v6
with:
version: "0.8.16"
version: "0.8.22"
python-version: 3.9
enable-cache: true
cache-suffix: -${{ github.workflow }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging_sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Install Astral UV
uses: astral-sh/setup-uv@v6
with:
version: "0.8.16"
version: "0.8.22"
python-version: 3.11

- name: Build sdist
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/packaging_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ jobs:
- { minimal: true, python: cp311 }
- { minimal: true, python: cp312 }
- { minimal: true, platform: { arch: universal2 } }
# Windows+cp314t disabled due to test failures in CI.
# TODO: Diagnose why tests fail (access violations) in some configurations
- { python: cp314t, platform: { os: windows-2025 } }

runs-on: ${{ matrix.platform.os }}
env:
Expand Down Expand Up @@ -84,13 +81,13 @@ jobs:
# Install Astral UV, which will be used as build-frontend for cibuildwheel
- uses: astral-sh/setup-uv@v6
with:
version: "0.8.16"
version: "0.8.22"
enable-cache: false
cache-suffix: -${{ matrix.python }}-${{ matrix.platform.cibw_system }}_${{ matrix.platform.arch }}
python-version: ${{ matrix.python }}

- name: Build${{ inputs.testsuite != 'none' && ' and test ' || ' ' }}wheels
uses: pypa/cibuildwheel@v3.1
uses: pypa/cibuildwheel@v3.2
env:
CIBW_ARCHS: ${{ matrix.platform.arch == 'amd64' && 'AMD64' || matrix.platform.arch }}
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform.cibw_system }}_${{ matrix.platform.arch }}
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ if.env.COVERAGE = false
inherit.cmake.define = "append"
cmake.define.DISABLE_UNITY = "1"

[[tool.scikit-build.overrides]]
if.platform-system = "^win32"
if.abi-flags = "t"
inherit.cmake.define = "append"
# /DPy_GIL_DISABLED: needed else the build will try to link python314.lib
# CMAKE_..._FLAGS_INIT not FLAGS: otherwise, msbuild will disable important defaults such as /EHsc
cmake.define.CMAKE_C_FLAGS_INIT="/DPy_MOD_GIL_USED /DPy_GIL_DISABLED"
cmake.define.CMAKE_CXX_FLAGS_INIT="/DPy_MOD_GIL_USED /DPy_GIL_DISABLED"

[tool.scikit-build.sdist]
include = [
"README.md",
Expand Down