Persistence 5.1__tar.gz → 5.2__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.
Files changed (33) hide show
  1. {persistence-5.1 → persistence-5.2}/.manylinux-install.sh +16 -8
  2. {persistence-5.1 → persistence-5.2}/.pre-commit-config.yaml +5 -5
  3. {persistence-5.1 → persistence-5.2}/CHANGES.rst +8 -0
  4. {persistence-5.1 → persistence-5.2}/CONTRIBUTING.md +1 -1
  5. {persistence-5.1 → persistence-5.2}/PKG-INFO +27 -7
  6. {persistence-5.1 → persistence-5.2}/pyproject.toml +19 -3
  7. {persistence-5.1 → persistence-5.2}/setup.py +6 -6
  8. {persistence-5.1 → persistence-5.2}/src/Persistence/tests/test_persistent.py +5 -6
  9. {persistence-5.1 → persistence-5.2}/src/Persistence.egg-info/PKG-INFO +27 -7
  10. {persistence-5.1 → persistence-5.2}/tox.ini +8 -5
  11. {persistence-5.1 → persistence-5.2}/.manylinux.sh +0 -0
  12. {persistence-5.1 → persistence-5.2}/COPYRIGHT.txt +0 -0
  13. {persistence-5.1 → persistence-5.2}/LICENSE.txt +0 -0
  14. {persistence-5.1 → persistence-5.2}/MANIFEST.in +0 -0
  15. {persistence-5.1 → persistence-5.2}/README.rst +0 -0
  16. {persistence-5.1 → persistence-5.2}/buildout.cfg +0 -0
  17. {persistence-5.1 → persistence-5.2}/include/ExtensionClass/ExtensionClass.h +0 -0
  18. {persistence-5.1 → persistence-5.2}/include/ExtensionClass/_compat.h +0 -0
  19. {persistence-5.1 → persistence-5.2}/include/persistent/_compat.h +0 -0
  20. {persistence-5.1 → persistence-5.2}/include/persistent/cPersistence.h +0 -0
  21. {persistence-5.1 → persistence-5.2}/include/persistent/ring.h +0 -0
  22. {persistence-5.1 → persistence-5.2}/setup.cfg +0 -0
  23. {persistence-5.1 → persistence-5.2}/src/Persistence/_Persistence.c +0 -0
  24. {persistence-5.1 → persistence-5.2}/src/Persistence/__init__.py +0 -0
  25. {persistence-5.1 → persistence-5.2}/src/Persistence/mapping.py +0 -0
  26. {persistence-5.1 → persistence-5.2}/src/Persistence/tests/__init__.py +0 -0
  27. {persistence-5.1 → persistence-5.2}/src/Persistence/tests/test_ec.py +0 -0
  28. {persistence-5.1 → persistence-5.2}/src/Persistence/tests/test_mapping.py +0 -0
  29. {persistence-5.1 → persistence-5.2}/src/Persistence.egg-info/SOURCES.txt +0 -0
  30. {persistence-5.1 → persistence-5.2}/src/Persistence.egg-info/dependency_links.txt +0 -0
  31. {persistence-5.1 → persistence-5.2}/src/Persistence.egg-info/not-zip-safe +0 -0
  32. {persistence-5.1 → persistence-5.2}/src/Persistence.egg-info/requires.txt +0 -0
  33. {persistence-5.1 → persistence-5.2}/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
- *"cp38"*) echo 'py38';;
32
- *"cp39"*) echo 'py39';;
33
31
  *"cp310"*) echo 'py310';;
34
32
  *"cp311"*) echo 'py311';;
35
33
  *"cp312"*) echo 'py312';;
36
34
  *"cp313"*) echo 'py313';;
35
+ *"cp314"*) echo 'py314';;
36
+ *"cp315"*) echo 'py315';;
37
37
  *) echo 'py';;
38
38
  esac
39
39
  }
@@ -41,14 +41,19 @@ tox_env_map() {
41
41
  # Compile wheels
42
42
  for PYBIN in /opt/python/*/bin; do
43
43
  if \
44
- [[ "${PYBIN}" == *"cp38/"* ]] || \
45
- [[ "${PYBIN}" == *"cp39/"* ]] || \
46
44
  [[ "${PYBIN}" == *"cp310/"* ]] || \
47
45
  [[ "${PYBIN}" == *"cp311/"* ]] || \
48
46
  [[ "${PYBIN}" == *"cp312/"* ]] || \
49
- [[ "${PYBIN}" == *"cp313/"* ]] ; then
50
- "${PYBIN}/pip" install -e /io/
51
- "${PYBIN}/pip" wheel /io/ -w wheelhouse/
47
+ [[ "${PYBIN}" == *"cp313/"* ]] || \
48
+ [[ "${PYBIN}" == *"cp314/"* ]] || \
49
+ [[ "${PYBIN}" == *"cp315/"* ]] ; then
50
+ if [[ "${PYBIN}" == *"cp315/"* ]] ; then
51
+ "${PYBIN}/pip" install --pre -e /io/
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
52
57
  if [ `uname -m` == 'aarch64' ]; then
53
58
  cd /io/
54
59
  ${PYBIN}/pip install tox
@@ -60,7 +65,10 @@ for PYBIN in /opt/python/*/bin; do
60
65
  fi
61
66
  done
62
67
 
68
+ # Show what wheels we have
69
+ echo "Fixing up the following wheels:"
70
+ ls -l wheelhouse/persistence*.whl
63
71
  # Bundle external shared libraries into the wheels
64
- for whl in wheelhouse/Persistence*.whl; do
72
+ for whl in wheelhouse/persistence*.whl; do
65
73
  auditwheel repair "$whl" -w /io/wheelhouse/
66
74
  done
@@ -3,25 +3,25 @@
3
3
  minimum_pre_commit_version: '3.6'
4
4
  repos:
5
5
  - repo: https://github.com/pycqa/isort
6
- rev: "5.13.2"
6
+ rev: "7.0.0"
7
7
  hooks:
8
8
  - id: isort
9
9
  - repo: https://github.com/hhatto/autopep8
10
- rev: "v2.3.1"
10
+ rev: "v2.3.2"
11
11
  hooks:
12
12
  - id: autopep8
13
13
  args: [--in-place, --aggressive, --aggressive]
14
14
  - repo: https://github.com/asottile/pyupgrade
15
- rev: v3.17.0
15
+ rev: v3.21.0
16
16
  hooks:
17
17
  - id: pyupgrade
18
- args: [--py38-plus]
18
+ args: [--py310-plus]
19
19
  - repo: https://github.com/isidentical/teyit
20
20
  rev: 0.4.3
21
21
  hooks:
22
22
  - id: teyit
23
23
  - repo: https://github.com/PyCQA/flake8
24
- rev: "7.1.1"
24
+ rev: "7.3.0"
25
25
  hooks:
26
26
  - id: flake8
27
27
  additional_dependencies:
@@ -1,6 +1,14 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 5.2 (2025-11-06)
5
+ ----------------
6
+
7
+ - Add support for Python 3.14.
8
+
9
+ - Drop support for Python 3.8, 3.9.
10
+
11
+
4
12
  5.1 (2024-09-17)
5
13
  ----------------
6
14
 
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  Generated from:
3
3
  https://github.com/zopefoundation/meta/tree/master/config/c-code
4
- -->
4
+ -->
5
5
  # Contributing to zopefoundation projects
6
6
 
7
7
  The projects under the zopefoundation GitHub organization are open source and
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: Persistence
3
- Version: 5.1
3
+ Version: 5.2
4
4
  Summary: Persistent ExtensionClass
5
5
  Home-page: https://github.com/zopefoundation/Persistence
6
6
  Author: Zope Foundation and Contributors
7
- Author-email: zope-dev@zope.org
8
- License: ZPL 2.1
7
+ Author-email: zope-dev@zope.dev
8
+ License: ZPL-2.1
9
9
  Classifier: Development Status :: 6 - Mature
10
10
  Classifier: Environment :: Web Environment
11
11
  Classifier: Framework :: Zope
@@ -15,20 +15,32 @@ Classifier: License :: OSI Approved :: Zope Public License
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.8
19
- Classifier: Programming Language :: Python :: 3.9
20
18
  Classifier: Programming Language :: Python :: 3.10
21
19
  Classifier: Programming Language :: Python :: 3.11
22
20
  Classifier: Programming Language :: Python :: 3.12
23
21
  Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
24
23
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
24
  Classifier: Programming Language :: Python :: Implementation :: PyPy
26
- Requires-Python: >=3.8
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/x-rst
27
27
  License-File: LICENSE.txt
28
28
  Requires-Dist: ExtensionClass>=4.6
29
29
  Requires-Dist: persistent>=4.1.1
30
30
  Provides-Extra: test
31
31
  Requires-Dist: zope.testrunner; extra == "test"
32
+ Dynamic: author
33
+ Dynamic: author-email
34
+ Dynamic: classifier
35
+ Dynamic: description
36
+ Dynamic: description-content-type
37
+ Dynamic: home-page
38
+ Dynamic: license
39
+ Dynamic: license-file
40
+ Dynamic: provides-extra
41
+ Dynamic: requires-dist
42
+ Dynamic: requires-python
43
+ Dynamic: summary
32
44
 
33
45
  Overview
34
46
  ========
@@ -44,6 +56,14 @@ use ``persistent.Persistent`` from the persistent_ distribution (formerly in ZOD
44
56
  Changelog
45
57
  =========
46
58
 
59
+ 5.2 (2025-11-06)
60
+ ----------------
61
+
62
+ - Add support for Python 3.14.
63
+
64
+ - Drop support for Python 3.8, 3.9.
65
+
66
+
47
67
  5.1 (2024-09-17)
48
68
  ----------------
49
69
 
@@ -3,7 +3,10 @@
3
3
  # https://github.com/zopefoundation/meta/tree/master/config/c-code
4
4
 
5
5
  [build-system]
6
- requires = ["setuptools<74"]
6
+ requires = [
7
+ "setuptools",
8
+ "wheel",
9
+ ]
7
10
  build-backend = "setuptools.build_meta"
8
11
 
9
12
  [tool.coverage.run]
@@ -16,10 +19,23 @@ fail_under = 97
16
19
  precision = 2
17
20
  ignore_errors = true
18
21
  show_missing = true
19
- exclude_lines = ["pragma: no cover", "pragma: nocover", "except ImportError:", "raise NotImplementedError", "if __name__ == '__main__':", "self.fail", "raise AssertionError", "raise unittest.Skip"]
22
+ exclude_lines = [
23
+ "pragma: no cover",
24
+ "pragma: nocover",
25
+ "except ImportError:",
26
+ "raise NotImplementedError",
27
+ "if __name__ == '__main__':",
28
+ "self.fail",
29
+ "raise AssertionError",
30
+ "raise unittest.Skip",
31
+ ]
20
32
 
21
33
  [tool.coverage.html]
22
34
  directory = "parts/htmlcov"
23
35
 
24
36
  [tool.coverage.paths]
25
- source = ["src/", ".tox/*/lib/python*/site-packages/", ".tox/pypy*/site-packages/"]
37
+ source = [
38
+ "src/",
39
+ ".tox/*/lib/python*/site-packages/",
40
+ ".tox/pypy*/site-packages/",
41
+ ]
@@ -21,17 +21,18 @@ else:
21
21
  include_dirs=['include', 'src']),
22
22
  ]
23
23
 
24
- version = '5.1'
24
+ version = '5.2'
25
25
 
26
26
  setup(
27
27
  name='Persistence',
28
28
  version=version,
29
29
  url='https://github.com/zopefoundation/Persistence',
30
- license='ZPL 2.1',
30
+ license='ZPL-2.1',
31
31
  description='Persistent ExtensionClass',
32
32
  author='Zope Foundation and Contributors',
33
- author_email='zope-dev@zope.org',
33
+ author_email='zope-dev@zope.dev',
34
34
  long_description='\n\n'.join([README, CHANGES]),
35
+ long_description_content_type='text/x-rst',
35
36
  packages=find_packages('src'),
36
37
  package_dir={'': 'src'},
37
38
  classifiers=[
@@ -44,17 +45,16 @@ setup(
44
45
  "Operating System :: OS Independent",
45
46
  "Programming Language :: Python",
46
47
  "Programming Language :: Python :: 3",
47
- "Programming Language :: Python :: 3.8",
48
- "Programming Language :: Python :: 3.9",
49
48
  "Programming Language :: Python :: 3.10",
50
49
  "Programming Language :: Python :: 3.11",
51
50
  "Programming Language :: Python :: 3.12",
52
51
  "Programming Language :: Python :: 3.13",
52
+ "Programming Language :: Python :: 3.14",
53
53
  "Programming Language :: Python :: Implementation :: CPython",
54
54
  "Programming Language :: Python :: Implementation :: PyPy",
55
55
  ],
56
56
  ext_modules=ext_modules,
57
- python_requires='>=3.8',
57
+ python_requires='>=3.10',
58
58
  install_requires=[
59
59
  'ExtensionClass >= 4.6',
60
60
  'persistent >= 4.1.1',
@@ -70,7 +70,6 @@ class P(Persistent):
70
70
 
71
71
 
72
72
  class H1(Persistent):
73
-
74
73
  def __init__(self):
75
74
  self.n = 0
76
75
 
@@ -80,7 +79,6 @@ class H1(Persistent):
80
79
 
81
80
 
82
81
  class H2(Persistent):
83
-
84
82
  def __init__(self):
85
83
  self.n = 0
86
84
 
@@ -95,7 +93,6 @@ class H2(Persistent):
95
93
 
96
94
 
97
95
  class PersistenceTest(unittest.TestCase):
98
-
99
96
  def setUp(self):
100
97
  self.jar = Jar()
101
98
 
@@ -163,12 +160,13 @@ class PersistenceTest(unittest.TestCase):
163
160
  self.assertEqual(obj._p_changed, None)
164
161
 
165
162
  def testSerial(self):
166
- noserial = b'\000' * 8
163
+ noserial = b"\000" * 8
167
164
  obj = P()
168
165
  self.assertEqual(obj._p_serial, noserial)
169
166
 
170
167
  def set(val):
171
168
  obj._p_serial = val
169
+
172
170
  self.assertRaises(ValueError, set, 1)
173
171
  self.assertRaises(ValueError, set, "0123")
174
172
  self.assertRaises(ValueError, set, "012345678")
@@ -235,11 +233,12 @@ class PersistenceTest(unittest.TestCase):
235
233
  def test_compilation(self):
236
234
  self.assertEqual(CAPI, not (IS_PYPY or IS_PURE))
237
235
  try:
238
- import persistent.cPersistence # noqa: F401 unused, needed for Py3
236
+ import persistent.cPersistence # noqa: F401 needed for CPython
239
237
 
240
238
  from Persistence import _Persistence
239
+
241
240
  cPersistent = _Persistence.Persistent
242
- except ImportError:
241
+ except ImportError: # ModuleNotFoundError is wrong here
243
242
  cPersistent = None # PyPy never has a C module.
244
243
  if CAPI: # pragma: no cover
245
244
  self.assertEqual(Persistent, cPersistent)
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: Persistence
3
- Version: 5.1
3
+ Version: 5.2
4
4
  Summary: Persistent ExtensionClass
5
5
  Home-page: https://github.com/zopefoundation/Persistence
6
6
  Author: Zope Foundation and Contributors
7
- Author-email: zope-dev@zope.org
8
- License: ZPL 2.1
7
+ Author-email: zope-dev@zope.dev
8
+ License: ZPL-2.1
9
9
  Classifier: Development Status :: 6 - Mature
10
10
  Classifier: Environment :: Web Environment
11
11
  Classifier: Framework :: Zope
@@ -15,20 +15,32 @@ Classifier: License :: OSI Approved :: Zope Public License
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.8
19
- Classifier: Programming Language :: Python :: 3.9
20
18
  Classifier: Programming Language :: Python :: 3.10
21
19
  Classifier: Programming Language :: Python :: 3.11
22
20
  Classifier: Programming Language :: Python :: 3.12
23
21
  Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
24
23
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
24
  Classifier: Programming Language :: Python :: Implementation :: PyPy
26
- Requires-Python: >=3.8
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/x-rst
27
27
  License-File: LICENSE.txt
28
28
  Requires-Dist: ExtensionClass>=4.6
29
29
  Requires-Dist: persistent>=4.1.1
30
30
  Provides-Extra: test
31
31
  Requires-Dist: zope.testrunner; extra == "test"
32
+ Dynamic: author
33
+ Dynamic: author-email
34
+ Dynamic: classifier
35
+ Dynamic: description
36
+ Dynamic: description-content-type
37
+ Dynamic: home-page
38
+ Dynamic: license
39
+ Dynamic: license-file
40
+ Dynamic: provides-extra
41
+ Dynamic: requires-dist
42
+ Dynamic: requires-python
43
+ Dynamic: summary
32
44
 
33
45
  Overview
34
46
  ========
@@ -44,6 +56,14 @@ use ``persistent.Persistent`` from the persistent_ distribution (formerly in ZOD
44
56
  Changelog
45
57
  =========
46
58
 
59
+ 5.2 (2025-11-06)
60
+ ----------------
61
+
62
+ - Add support for Python 3.14.
63
+
64
+ - Drop support for Python 3.8, 3.9.
65
+
66
+
47
67
  5.1 (2024-09-17)
48
68
  ----------------
49
69
 
@@ -3,19 +3,21 @@
3
3
  [tox]
4
4
  minversion = 4.0
5
5
  envlist =
6
+ release-check
6
7
  lint
7
- py38,py38-pure
8
- py39,py39-pure
9
8
  py310,py310-pure
10
9
  py311,py311-pure
11
10
  py312,py312-pure
12
11
  py313,py313-pure
12
+ py314,py314-pure
13
+ py315,py315-pure
13
14
  pypy3
14
15
  coverage
15
16
 
16
17
  [testenv]
18
+ pip_pre = py315: true
17
19
  deps =
18
- setuptools <74
20
+ setuptools >= 78.1.1,< 81
19
21
  wheel
20
22
  setenv =
21
23
  pure: PURE_PYTHON=1
@@ -52,7 +54,8 @@ description = ensure that the distribution is ready to release
52
54
  basepython = python3
53
55
  skip_install = true
54
56
  deps =
55
- setuptools <74
57
+ setuptools
58
+ wheel
56
59
  twine
57
60
  build
58
61
  check-manifest
@@ -61,7 +64,7 @@ deps =
61
64
  commands_pre =
62
65
  commands =
63
66
  check-manifest
64
- check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
67
+ check-python-versions --only pyproject.toml,setup.py,tox.ini,.github/workflows/tests.yml
65
68
  python -m build --sdist --no-isolation
66
69
  twine check dist/*
67
70
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes