Persistence 5.5__tar.gz → 5.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {persistence-5.5 → persistence-5.6}/.manylinux-install.sh +11 -10
- {persistence-5.5 → persistence-5.6}/.manylinux.sh +1 -1
- {persistence-5.5 → persistence-5.6}/.pre-commit-config.yaml +14 -1
- {persistence-5.5 → persistence-5.6}/CHANGES.rst +8 -0
- persistence-5.6/COPYRIGHT.txt +1 -0
- {persistence-5.5 → persistence-5.6}/PKG-INFO +10 -4
- {persistence-5.5 → persistence-5.6}/include/persistent/cPersistence.h +5 -5
- {persistence-5.5 → persistence-5.6}/pyproject.toml +16 -18
- {persistence-5.5 → persistence-5.6}/src/Persistence.egg-info/PKG-INFO +10 -4
- {persistence-5.5 → persistence-5.6}/tox.ini +0 -2
- persistence-5.5/COPYRIGHT.txt +0 -1
- {persistence-5.5 → persistence-5.6}/CONTRIBUTING.md +0 -0
- {persistence-5.5 → persistence-5.6}/LICENSE.txt +0 -0
- {persistence-5.5 → persistence-5.6}/MANIFEST.in +0 -0
- {persistence-5.5 → persistence-5.6}/README.rst +0 -0
- {persistence-5.5 → persistence-5.6}/buildout.cfg +0 -0
- {persistence-5.5 → persistence-5.6}/include/ExtensionClass/ExtensionClass.h +0 -0
- {persistence-5.5 → persistence-5.6}/include/ExtensionClass/_compat.h +0 -0
- {persistence-5.5 → persistence-5.6}/include/persistent/_compat.h +0 -0
- {persistence-5.5 → persistence-5.6}/include/persistent/ring.h +0 -0
- {persistence-5.5 → persistence-5.6}/setup.cfg +0 -0
- {persistence-5.5 → persistence-5.6}/setup.py +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence/_Persistence.c +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence/__init__.py +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence/mapping.py +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence/tests/__init__.py +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence/tests/test_ec.py +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence/tests/test_mapping.py +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence/tests/test_persistent.py +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence.egg-info/SOURCES.txt +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence.egg-info/dependency_links.txt +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence.egg-info/requires.txt +0 -0
- {persistence-5.5 → persistence-5.6}/src/Persistence.egg-info/top_level.txt +0 -0
|
@@ -28,12 +28,12 @@ yum -y install libffi-devel
|
|
|
28
28
|
|
|
29
29
|
tox_env_map() {
|
|
30
30
|
case $1 in
|
|
31
|
-
*"cp310"*) echo 'py310';;
|
|
32
31
|
*"cp311"*) echo 'py311';;
|
|
33
32
|
*"cp312"*) echo 'py312';;
|
|
34
33
|
*"cp313"*) echo 'py313';;
|
|
35
34
|
*"cp314"*) echo 'py314';;
|
|
36
35
|
*"cp315"*) echo 'py315';;
|
|
36
|
+
*"pp311"*) echo 'pypy3';;
|
|
37
37
|
*) echo 'py';;
|
|
38
38
|
esac
|
|
39
39
|
}
|
|
@@ -41,19 +41,14 @@ tox_env_map() {
|
|
|
41
41
|
# Compile wheels
|
|
42
42
|
for PYBIN in /opt/python/*/bin; do
|
|
43
43
|
if \
|
|
44
|
-
[[ "${PYBIN}" == *"
|
|
44
|
+
[[ "${PYBIN}" == *"pp311-"* ]] || \
|
|
45
45
|
[[ "${PYBIN}" == *"cp311/"* ]] || \
|
|
46
46
|
[[ "${PYBIN}" == *"cp312/"* ]] || \
|
|
47
47
|
[[ "${PYBIN}" == *"cp313/"* ]] || \
|
|
48
48
|
[[ "${PYBIN}" == *"cp314/"* ]] || \
|
|
49
|
-
[[ "${PYBIN}" == *"cp315/"* ]]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"${PYBIN}/pip" wheel /io/ --pre -w wheelhouse/
|
|
53
|
-
else
|
|
54
|
-
"${PYBIN}/pip" install -e /io/
|
|
55
|
-
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
|
|
56
|
-
fi
|
|
49
|
+
[[ "${PYBIN}" == *"cp315/"* ]] ; then
|
|
50
|
+
"${PYBIN}/pip" install -e /io/
|
|
51
|
+
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
|
|
57
52
|
if [ `uname -m` == 'aarch64' ]; then
|
|
58
53
|
cd /io/
|
|
59
54
|
${PYBIN}/pip install tox
|
|
@@ -70,5 +65,11 @@ echo "Fixing up the following wheels:"
|
|
|
70
65
|
ls -l wheelhouse/persistence*.whl
|
|
71
66
|
# Bundle external shared libraries into the wheels
|
|
72
67
|
for whl in wheelhouse/persistence*.whl; do
|
|
68
|
+
if [[ "$whl" == *"-none-any.whl" ]]; then
|
|
69
|
+
# A pure Python wheel (e.g. PyPy does not build the C extension)
|
|
70
|
+
# cannot be repaired and is not published.
|
|
71
|
+
echo "Skipping pure Python wheel $whl"
|
|
72
|
+
continue
|
|
73
|
+
fi
|
|
73
74
|
auditwheel repair "$whl" -w /io/wheelhouse/
|
|
74
75
|
done
|
|
@@ -13,4 +13,4 @@ python -mpip --version
|
|
|
13
13
|
LCACHE="$(dirname `python -mpip cache dir`)"
|
|
14
14
|
echo Sharing pip cache at $LCACHE $(ls -ld $LCACHE)
|
|
15
15
|
|
|
16
|
-
docker run --rm -e GITHUB_ACTIONS -v "$(pwd)":/io -v "$LCACHE:/cache" $DOCKER_IMAGE $PRE_CMD /io/.manylinux-install.sh
|
|
16
|
+
docker run --rm $DOCKER_ARGS -e GITHUB_ACTIONS -v "$(pwd)":/io -v "$LCACHE:/cache" $DOCKER_IMAGE $PRE_CMD /io/.manylinux-install.sh
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
|
|
3
3
|
minimum_pre_commit_version: '3.6'
|
|
4
4
|
repos:
|
|
5
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
6
|
+
rev: v6.0.0
|
|
7
|
+
hooks:
|
|
8
|
+
- id: check-case-conflict
|
|
9
|
+
- id: check-merge-conflict
|
|
10
|
+
- id: check-toml
|
|
11
|
+
- id: check-yaml
|
|
12
|
+
- id: end-of-file-fixer
|
|
13
|
+
- id: trailing-whitespace
|
|
5
14
|
- repo: https://github.com/pycqa/isort
|
|
6
15
|
rev: "8.0.1"
|
|
7
16
|
hooks:
|
|
@@ -15,7 +24,7 @@ repos:
|
|
|
15
24
|
rev: v3.21.2
|
|
16
25
|
hooks:
|
|
17
26
|
- id: pyupgrade
|
|
18
|
-
args: [--
|
|
27
|
+
args: [--py311-plus]
|
|
19
28
|
- repo: https://github.com/isidentical/teyit
|
|
20
29
|
rev: 0.4.3
|
|
21
30
|
hooks:
|
|
@@ -27,3 +36,7 @@ repos:
|
|
|
27
36
|
- id: flake8
|
|
28
37
|
additional_dependencies:
|
|
29
38
|
- flake8-debugger == 4.1.2
|
|
39
|
+
- repo: https://github.com/sphinx-contrib/sphinx-lint
|
|
40
|
+
rev: v1.0.2
|
|
41
|
+
hooks:
|
|
42
|
+
- id: sphinx-lint
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Zope Foundation and Contributors
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Persistence
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.6
|
|
4
4
|
Summary: Persistent ExtensionClass
|
|
5
5
|
Author-email: Zope Foundation and contributors <zope-dev@zope.dev>
|
|
6
6
|
Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
|
|
@@ -15,8 +15,6 @@ Classifier: Framework :: Zope :: 5
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
@@ -24,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
24
22
|
Classifier: Programming Language :: Python :: 3.15
|
|
25
23
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
26
24
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
27
|
-
Requires-Python: >=3.
|
|
25
|
+
Requires-Python: >=3.11
|
|
28
26
|
Description-Content-Type: text/x-rst
|
|
29
27
|
License-File: LICENSE.txt
|
|
30
28
|
Requires-Dist: ExtensionClass
|
|
@@ -46,6 +44,14 @@ use ``persistent.Persistent`` from the persistent_ distribution (formerly in ZOD
|
|
|
46
44
|
Change log
|
|
47
45
|
==========
|
|
48
46
|
|
|
47
|
+
5.6 (2026-11-21)
|
|
48
|
+
----------------
|
|
49
|
+
|
|
50
|
+
- Add support for Python 3.15.
|
|
51
|
+
|
|
52
|
+
- Drop support for Python 3.10.
|
|
53
|
+
|
|
54
|
+
|
|
49
55
|
5.5 (2026-08-20)
|
|
50
56
|
----------------
|
|
51
57
|
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
|
|
29
29
|
struct ccobject_head_struct;
|
|
30
30
|
|
|
31
|
-
typedef struct ccobject_head_struct PerCache;
|
|
31
|
+
typedef struct ccobject_head_struct PerCache;
|
|
32
32
|
|
|
33
33
|
/* How big is a persistent object?
|
|
34
34
|
|
|
35
35
|
12 PyGC_Head is two pointers and an int
|
|
36
36
|
8 PyObject_HEAD is an int and a pointer
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
12 jar, oid, cache pointers
|
|
39
39
|
8 ring struct
|
|
40
40
|
8 serialno
|
|
@@ -67,7 +67,7 @@ typedef struct ccobject_head_struct PerCache;
|
|
|
67
67
|
unsigned long field after a signed char state field and a
|
|
68
68
|
3-character reserved field. This didn't work because there
|
|
69
69
|
are packages in the wild that have their own copies of cPersistence.h
|
|
70
|
-
that didn't see the update.
|
|
70
|
+
that didn't see the update.
|
|
71
71
|
|
|
72
72
|
To get around this, we used the reserved space by making
|
|
73
73
|
estimated_size a 24-bit bit field in the space occupied by the old
|
|
@@ -132,14 +132,14 @@ static cPersistenceCAPIstruct *cPersistenceCAPI;
|
|
|
132
132
|
|
|
133
133
|
#define PER_PREVENT_DEACTIVATION(O) ((O)->state==cPersistent_UPTODATE_STATE && ((O)->state=cPersistent_STICKY_STATE))
|
|
134
134
|
|
|
135
|
-
/*
|
|
135
|
+
/*
|
|
136
136
|
Make a persistent object usable from C by:
|
|
137
137
|
|
|
138
138
|
- Making sure it is not a ghost
|
|
139
139
|
|
|
140
140
|
- Making it sticky.
|
|
141
141
|
|
|
142
|
-
IMPORTANT: If you call this and don't call PER_ALLOW_DEACTIVATION,
|
|
142
|
+
IMPORTANT: If you call this and don't call PER_ALLOW_DEACTIVATION,
|
|
143
143
|
your object will not be ghostified.
|
|
144
144
|
|
|
145
145
|
PER_USE returns a 1 on success and 0 failure, where failure means
|
|
@@ -9,10 +9,10 @@ build-backend = "setuptools.build_meta"
|
|
|
9
9
|
|
|
10
10
|
[project]
|
|
11
11
|
name = "Persistence"
|
|
12
|
-
version = "5.
|
|
12
|
+
version = "5.6"
|
|
13
13
|
description = "Persistent ExtensionClass"
|
|
14
14
|
dynamic = ["readme"]
|
|
15
|
-
requires-python = ">=3.
|
|
15
|
+
requires-python = ">=3.11"
|
|
16
16
|
license = "ZPL-2.1"
|
|
17
17
|
authors = [
|
|
18
18
|
{ name = "Zope Foundation and contributors", email = "zope-dev@zope.dev" },
|
|
@@ -21,22 +21,20 @@ maintainers = [
|
|
|
21
21
|
{ name = "Plone Foundation and contributors", email = "zope-dev@zope.dev" },
|
|
22
22
|
]
|
|
23
23
|
classifiers = [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
39
|
-
"Programming Language :: Python :: Implementation :: PyPy",
|
|
24
|
+
"Development Status :: 6 - Mature",
|
|
25
|
+
"Environment :: Web Environment",
|
|
26
|
+
"Framework :: Zope",
|
|
27
|
+
"Framework :: Zope :: 5",
|
|
28
|
+
"Operating System :: OS Independent",
|
|
29
|
+
"Programming Language :: Python",
|
|
30
|
+
"Programming Language :: Python :: 3",
|
|
31
|
+
"Programming Language :: Python :: 3.11",
|
|
32
|
+
"Programming Language :: Python :: 3.12",
|
|
33
|
+
"Programming Language :: Python :: 3.13",
|
|
34
|
+
"Programming Language :: Python :: 3.14",
|
|
35
|
+
"Programming Language :: Python :: 3.15",
|
|
36
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
37
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
40
38
|
]
|
|
41
39
|
dependencies = [
|
|
42
40
|
"ExtensionClass",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Persistence
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.6
|
|
4
4
|
Summary: Persistent ExtensionClass
|
|
5
5
|
Author-email: Zope Foundation and contributors <zope-dev@zope.dev>
|
|
6
6
|
Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
|
|
@@ -15,8 +15,6 @@ Classifier: Framework :: Zope :: 5
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
@@ -24,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
24
22
|
Classifier: Programming Language :: Python :: 3.15
|
|
25
23
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
26
24
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
27
|
-
Requires-Python: >=3.
|
|
25
|
+
Requires-Python: >=3.11
|
|
28
26
|
Description-Content-Type: text/x-rst
|
|
29
27
|
License-File: LICENSE.txt
|
|
30
28
|
Requires-Dist: ExtensionClass
|
|
@@ -46,6 +44,14 @@ use ``persistent.Persistent`` from the persistent_ distribution (formerly in ZOD
|
|
|
46
44
|
Change log
|
|
47
45
|
==========
|
|
48
46
|
|
|
47
|
+
5.6 (2026-11-21)
|
|
48
|
+
----------------
|
|
49
|
+
|
|
50
|
+
- Add support for Python 3.15.
|
|
51
|
+
|
|
52
|
+
- Drop support for Python 3.10.
|
|
53
|
+
|
|
54
|
+
|
|
49
55
|
5.5 (2026-08-20)
|
|
50
56
|
----------------
|
|
51
57
|
|
|
@@ -5,7 +5,6 @@ minversion = 4.0
|
|
|
5
5
|
envlist =
|
|
6
6
|
release-check
|
|
7
7
|
lint
|
|
8
|
-
py310,py310-pure
|
|
9
8
|
py311,py311-pure
|
|
10
9
|
py312,py312-pure
|
|
11
10
|
py313,py313-pure
|
|
@@ -15,7 +14,6 @@ envlist =
|
|
|
15
14
|
coverage
|
|
16
15
|
|
|
17
16
|
[testenv]
|
|
18
|
-
pip_pre = py315: true
|
|
19
17
|
deps =
|
|
20
18
|
setuptools >= 78.1.1,< 82
|
|
21
19
|
wheel
|
persistence-5.5/COPYRIGHT.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Zope Foundation and Contributors
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|