Skip to content

Commit 9fd1a09

Browse files
authored
Merge pull request #190 from tobiasdiez/patch-1
Add Python 3.14 support, including freethreading version
2 parents 0e39ed5 + 243437b commit 9fd1a09

File tree

4 files changed

+156
-140
lines changed

4 files changed

+156
-140
lines changed

.github/workflows/dist.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
- name: Build wheels
4444
uses: pypa/[email protected]
4545
env:
46-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.12, <3.15"
4746
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-latest' && '15.0' || '13.0' }}
4847
- uses: actions/upload-artifact@v4
4948
with:

cypari2/stack.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Memory management for Gens on the PARI stack or the heap
1616

1717
cimport cython
1818

19-
from cpython.ref cimport PyObject
19+
from cpython.ref cimport PyObject, _Py_REFCNT
2020
from cpython.exc cimport PyErr_SetString
2121

2222
from cysignals.signals cimport (sig_on, sig_off, sig_block, sig_unblock,
@@ -260,7 +260,7 @@ cdef class DetachGen:
260260
cdef GEN res = src.g
261261
if is_on_stack(res):
262262
# Verify that we hold the only reference to src
263-
if (<PyObject*>src).ob_refcnt != 1:
263+
if _Py_REFCNT(<PyObject*>src) != 1:
264264
raise SystemError("cannot detach a Gen which is still referenced")
265265
elif is_universal_constant(res):
266266
pass

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ dev = [
3636
"pkgconf>=2.4.3.post2",
3737
"pytest>=8.4.2",
3838
]
39-
doc = [
40-
"sphinx",
41-
]
39+
doc = ["sphinx"]
4240

4341
[tool.cibuildwheel]
44-
skip = ["*-win32", "cp314t-*"]
42+
skip = ["*-win32"]
4543
test-groups = ["dev"]
4644
test-sources = ["tests", "pyproject.toml"]
4745
test-command = "python tests/rundoctest.py"

0 commit comments

Comments
 (0)