Skip to content
Merged
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
1 change: 0 additions & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v3.2.1
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.12, <3.15"
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-latest' && '15.0' || '13.0' }}
- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions cypari2/stack.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Memory management for Gens on the PARI stack or the heap

cimport cython

from cpython.ref cimport PyObject
from cpython.ref cimport PyObject, _Py_REFCNT
from cpython.exc cimport PyErr_SetString

from cysignals.signals cimport (sig_on, sig_off, sig_block, sig_unblock,
Expand Down Expand Up @@ -260,7 +260,7 @@ cdef class DetachGen:
cdef GEN res = src.g
if is_on_stack(res):
# Verify that we hold the only reference to src
if (<PyObject*>src).ob_refcnt != 1:
if _Py_REFCNT(<PyObject*>src) != 1:
raise SystemError("cannot detach a Gen which is still referenced")
elif is_universal_constant(res):
pass
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ dev = [
"pkgconf>=2.4.3.post2",
"pytest>=8.4.2",
]
doc = [
"sphinx",
]
doc = ["sphinx"]

[tool.cibuildwheel]
skip = ["*-win32", "cp314t-*"]
skip = ["*-win32"]
test-groups = ["dev"]
test-sources = ["tests", "pyproject.toml"]
test-command = "python tests/rundoctest.py"
Expand Down
Loading
Loading