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
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ jobs:
exclude:
- os: macos-latest
python-version: "pypy-3.11"
include:
- python-version: "3.14t"
os: ubuntu-latest

steps:
- name: checkout
Expand Down Expand Up @@ -255,6 +258,9 @@ jobs:
exclude:
- os: macos-latest
python-version: "pypy-3.11"
include:
- python-version: "3.14t"
os: ubuntu-latest

steps:
- name: checkout
Expand Down Expand Up @@ -631,7 +637,7 @@ jobs:
# PyPy wheels shouldn't be uploaded, remove them if present
find dist/ -name "*pypy*" -type f -delete || true
find dist/ -name "*none-any*" -type f -delete || true
# Wheels for the no-yet-supported future Python version need to go
# Wheels for the not-yet-supported future Python version need to go
find dist/ -name "*3.15*" -type f -delete || true
find dist/ -name "*cp315*" -type f -delete || true
# For Linux, we only want the manylinux wheels
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ lib64
log/
parts/
pyvenv.cfg
share/
testing.log
var/
4 changes: 3 additions & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
[meta]
template = "c-code"
commit-id = "f62d8bab"
commit-id = "2dc4f53b"

[python]
with-windows = true
Expand All @@ -11,9 +11,11 @@ with-sphinx-doctests = false
with-future-python = true
with-macos = false
with-docs = true
with-free-threaded-python = true

[tox]
use-flake8 = true
additional-envlist = []

[coverage]
fail-under = 63
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: autopep8
args: [--in-place, --aggressive, --aggressive]
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Change log
4.4 (unreleased)
----------------

- Fix compilation on free-threaded Python 3.14t: use ``Py_REFCNT()`` macro
instead of direct ``ob_refcnt`` struct access, and ``Py_TYPE()`` instead of
direct ``ob_type`` struct access.

- Add CI testing for free-threaded Python 3.14t (Linux).


4.3 (2025-11-20)
----------------
Expand Down
4 changes: 2 additions & 2 deletions src/zodbpickle/_pickle_33.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ PyMemoTable_Set(PyMemoTable *self, PyObject *key, Py_ssize_t value)
} while (0)

#define FREE_ARG_TUP(self) do { \
if ((self)->arg->ob_refcnt > 1) \
if (Py_REFCNT((self)->arg) > 1) \
Py_CLEAR((self)->arg); \
} while (0)

Expand Down Expand Up @@ -1525,7 +1525,7 @@ fast_save_enter(PicklerObject *self, PyObject *obj)
PyErr_Format(PyExc_ValueError,
"fast mode: can't pickle cyclic objects "
"including object type %.200s at %p",
obj->ob_type->tp_name, obj);
Py_TYPE(obj)->tp_name, obj);
self->fast_nesting = -1;
return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ envlist =
py313,py313-pure
py314,py314-pure
py315,py315-pure
py314t,py314t-pure
pypy3
docs
coverage
Expand Down Expand Up @@ -61,7 +62,7 @@ deps =
commands_pre =
commands =
check-manifest
check-python-versions --only pyproject.toml,setup.py,tox.ini,.github/workflows/tests.yml
check-python-versions --only pyproject.toml,setup.py,tox.ini
python -m build --sdist --no-isolation
twine check dist/*

Expand Down
Loading