Skip to content

Commit 5ef2e7f

Browse files
authored
Update Python version requirements to 3.12 and above (#233)
* Update Python version requirements to 3.11 and above, and add support for 3.14 * Require >= 3.12 * update uv lock * Use Py_REFCNT over ob_refcnt for reference count checks Fixes ``` FAILED: [code=1] src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/meson-generated_src_cysignals_signals.pyx.c.o cc -Isrc/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p -Isrc/cysignals -I../src/cysignals -Isrc -I../src -I/opt/_internal/cpython-3.14.0rc2-nogil/include/python3.14t -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O3 -DCYTHON_CLINE_IN_TRACEBACK=0 -U_FORTIFY_SOURCE -fPIC -pthread -MD -MQ src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/meson-generated_src_cysignals_signals.pyx.c.o -MF src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/meson-generated_src_cysignals_signals.pyx.c.o.d -o src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/meson-generated_src_cysignals_signals.pyx.c.o -c src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/src/cysignals/signals.pyx.c src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/src/cysignals/signals.pyx.c: In function ‘__pyx_f_9cysignals_7signals_verify_exc_value’: src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/src/cysignals/signals.pyx.c:4699:32: error: ‘PyObject’ {aka ‘struct _object’} has no member named ‘ob_refcnt’ 4699 | __pyx_t_1 = (cysigs.exc_value->ob_refcnt == 1); | ^~ src/cysignals/signals.cpython-314t-x86_64-linux-gnu.so.p/src/cysignals/signals.pyx.c:4996:33: error: ‘PyObject’ {aka ‘struct _object’} has no member named ‘ob_refcnt’ 4996 | __pyx_t_10 = (cysigs.exc_value->ob_refcnt == 1); | ^~ ``` * Remove 3.11 from CI
1 parent ba306af commit 5ef2e7f

File tree

5 files changed

+128
-143
lines changed

5 files changed

+128
-143
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: ['macos-14', 'macos-latest', 'ubuntu-latest', 'windows-latest']
25-
python-version: ['3.11', '3.12', '3.13', '3.14']
25+
python-version: ['3.12', '3.13', '3.14']
2626
steps:
2727
- name: Set up the repository
2828
uses: actions/checkout@v4

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ signals and errors) in Cython code.
2222
Requirements
2323
------------
2424

25-
- Python >= 3.11
25+
- Python >= 3.12
2626
- Cython >= 3.1
2727
- Sphinx >= 1.6 (for building the documentation)
2828

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ classifiers = [
2020
"Programming Language :: C",
2121
"Programming Language :: Cython",
2222
"Programming Language :: Python",
23-
"Programming Language :: Python :: 3 :: Only",
24-
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3",
2524
"Programming Language :: Python :: 3.12",
2625
"Programming Language :: Python :: 3.13",
2726
"Programming Language :: Python :: 3.14",
@@ -30,7 +29,7 @@ classifiers = [
3029
"Topic :: Software Development :: Debuggers",
3130
]
3231
urls = { Homepage = "https://github.com/sagemath/cysignals" }
33-
requires-python = ">=3.11,<3.15"
32+
requires-python = ">=3.12"
3433

3534
[project.entry-points.pkg_config]
3635
cysignals = 'cysignals'

readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ version: 2
22
conda:
33
file: readthedocs-conda.yml
44
python:
5-
version: "3.11"
5+
version: "3.12"
66
pip_install: true
77

0 commit comments

Comments
 (0)