Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for >3.12 and no-GIL builds #614

Closed
wants to merge 7 commits into from
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
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
py: ["3.13-dev", "3.12", "3.11", "3.10", "3.9", "3.8"]
py: ["3.14-dev", "3.13-dev", "3.12", "3.11", "3.10", "3.9", "3.8"]

runs-on: ${{ matrix.os }}
name: Run test with Python ${{ matrix.py }} on ${{ matrix.os }}
Expand All @@ -21,10 +21,17 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5
if: "!startsWith(matrix.py, '3.14')"
with:
python-version: ${{ matrix.py }}
allow-prereleases: true
cache: "pip"
- name: Set up no-GIL Python
uses: deadsnakes/action@v3.1.0
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.py, '3.14')
with:
python-version: ${{ matrix.py }}
nogil: true

- name: Build
shell: bash
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,26 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: |
3.x
3.13
cache: "pip"
allow-prereleases: true
check-latest: true
- name: Cythonize
shell: bash
run: |
pip install -r requirements.txt
make cython

- name: Build
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.19.1
env:
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest {package}/test"
CIBW_PRERELEASE_PYTHONS: true
CIBW_ARCHS_LINUX: auto aarch64
CIBW_FREE_THREADED_SUPPORT: true
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
CIBW_SKIP: pp*

Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Also declared in pyproject.toml, if updating here please also update there.
Cython~=3.0.10
Cython~=3.0.10; python_version <= '3.12'
# TODO: bump Cython version when wheels for >=3.13 and no-GIL come out
Cython @ git+https://github.com/cython/cython; python_version > '3.12'
Loading