Skip to content

Commit 2ac9797

Browse files
Merge pull request #284 from oscarbenjamin/pr_new_cython
maint: bump max Cython version and add pypy wheels
2 parents 04f5ba5 + 6748eb2 commit 2ac9797

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/buildwheel.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
if: ${{ matrix.os == 'windows-2019' }}
4343

4444
- name: Build wheels
45-
uses: pypa/[email protected].3
45+
uses: pypa/cibuildwheel@d04cacbc9866d432033b1d09142936e6a0e2121a # v2.23.2
4646
env:
4747
# override setting in pyproject.toml to use msys2 instead of msys64 bash
4848
CIBW_BEFORE_ALL_WINDOWS: msys2 -c bin/cibw_before_all_windows.sh
@@ -86,12 +86,13 @@ jobs:
8686
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]
8787
# This list to be kept in sync with cibuildwheel config
8888
# and python-requires in pyproject.toml.
89-
python-version: ['3.11', '3.12', '3.13', '3.13t'] # , 'pypy3.10']
89+
python-version: ['3.11', '3.12', '3.13', '3.13t', 'pypy3.11']
9090

9191
steps:
9292
- uses: actions/setup-python@v5
9393
with:
9494
python-version: ${{ matrix.python-version }}
95+
allow-prereleases: true
9596
- uses: actions/download-artifact@v4
9697
with:
9798
name: wheels-${{ matrix.os }}

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ project(
1414
flint_lower = '>=3.0'
1515
flint_upper = '<3.3'
1616
cython_lower = '>=3.0.11'
17-
cython_upper = '<=3.1.0a1'
17+
cython_upper = '<3.2'
1818

1919
py = import('python').find_installation(pure: false)
2020
dep_py = py.dependency()

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ content-type = "text/markdown"
2828
# Minimum build requirements tested in CI need to be kept in sync with the
2929
# versions in requires below so that they are tested.
3030
#
31-
# To support the freethreaded build (CPython 3.13t) the alpha release 3.1.0a1
32-
# of Cython is needed as a minimum requirement. It is possible that future
33-
# versions of Cython might still work but typically a Cython release breaks
34-
# something in the build of python-flint so we pin the exact version here.
31+
# To support the freethreaded build (CPython 3.13t) version 3.1.0 of Cython is
32+
# needed as a minimum requirement. It is possible that future versions of
33+
# Cython might still work but typically a Cython release breaks something in
34+
# the build of python-flint so we include an upper bound here.
3535
#
3636
# Apart from the freethreading build any Cython version from 3.0.11 onwards is
3737
# fine. It is not possible to have a separate version constraint here for the
3838
# freethreading build only though.
3939
#
40-
requires = ["meson-python>=0.13", "cython==3.1.0a1"]
40+
requires = ["meson-python >= 0.13", "cython >=3.1,<3.2"]
4141
build-backend = "mesonpy"
4242

4343
[tool.cython-lint]
@@ -82,7 +82,7 @@ package = "flint"
8282
[tool.cibuildwheel]
8383
# requires-python needs to keep in sync with this and also the list of Python
8484
# versions the wheels are tested against in CI.
85-
build = "cp311-* cp312-* cp313-* cp313t-*" # pp311-*"
85+
build = "cp311-* cp312-* cp313-* cp313t-* pp311-*"
8686
skip = "*-win32 *-manylinux_i686 *-musllinux_*"
8787

8888
# Enable building for free-threaded CPython builds

0 commit comments

Comments
 (0)