Skip to content

Commit b6db671

Browse files
committed
Disable 3.14; fix 3.13
1 parent fb7fc80 commit b6db671

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: [ubuntu-latest, windows-latest]
26-
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
26+
# FIXME: ujson segfault on 3.14
27+
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2728
runs-on: ${{ matrix.os }}
2829

2930
steps:

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ build-backend = "setuptools.build_meta"
77

88
[tool.cibuildwheel]
99
build = "*"
10-
skip = ["cp38*", "cp314t-*"]
10+
skip = [
11+
"cp38*", # Obsolete
12+
"cp314-*", # FIXME ujson segfaults
13+
"cp314t-*", # TODO free-threading support (note: 3.13t is skipped by default)
14+
]
1115
test-skip = ""
1216

1317
archs = ["native"]

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ classifiers =
2222
Programming Language :: Python :: 3.11
2323
Programming Language :: Python :: 3.12
2424
Programming Language :: Python :: 3.13
25-
Programming Language :: Python :: 3.14
2625
Topic :: Scientific/Engineering
2726

2827
[options]
2928
zip_safe = true
3029
include_package_data = true
31-
python_requires = >=3.9,<3.15
30+
python_requires = >=3.9,<3.14
3231
setup_requires =
3332
cython>=0.29.1
3433
install_requires =

srsly/tests/cloudpickle/cloudpickle_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ def method_c(self):
112112
return "c"
113113

114114
clsdict = _extract_class_dict(C)
115-
assert sorted(clsdict.keys()) == ["C_CONSTANT", "__doc__", "method_c"]
115+
if sys.version_info >= (3, 13):
116+
expected_keys = ["C_CONSTANT", "__doc__", "__firstlineno__", "method_c"]
117+
else:
118+
expected_keys = ["C_CONSTANT", "__doc__", "method_c"]
119+
assert sorted(clsdict.keys()) == expected_keys
116120
assert clsdict["C_CONSTANT"] == 43
117121
assert clsdict["__doc__"] is None
118122
assert clsdict["method_c"](C()) == C().method_c()

0 commit comments

Comments
 (0)