Persistence 5.0__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.
- {Persistence-5.0 → persistence-5.2}/.manylinux-install.sh +12 -9
- persistence-5.2/.pre-commit-config.yaml +28 -0
- {Persistence-5.0 → persistence-5.2}/CHANGES.rst +14 -0
- {Persistence-5.0 → persistence-5.2}/CONTRIBUTING.md +1 -1
- {Persistence-5.0 → persistence-5.2}/MANIFEST.in +1 -1
- {Persistence-5.0 → persistence-5.2}/PKG-INFO +33 -7
- persistence-5.2/pyproject.toml +41 -0
- {Persistence-5.0 → persistence-5.2}/setup.py +6 -6
- {Persistence-5.0 → persistence-5.2}/src/Persistence/tests/test_ec.py +1 -1
- {Persistence-5.0 → persistence-5.2}/src/Persistence/tests/test_mapping.py +2 -2
- {Persistence-5.0 → persistence-5.2}/src/Persistence/tests/test_persistent.py +5 -6
- {Persistence-5.0 → persistence-5.2}/src/Persistence.egg-info/PKG-INFO +33 -7
- {Persistence-5.0 → persistence-5.2}/src/Persistence.egg-info/SOURCES.txt +2 -1
- {Persistence-5.0 → persistence-5.2}/tox.ini +21 -23
- Persistence-5.0/.coveragerc +0 -30
- {Persistence-5.0 → persistence-5.2}/.manylinux.sh +0 -0
- {Persistence-5.0 → persistence-5.2}/COPYRIGHT.txt +0 -0
- {Persistence-5.0 → persistence-5.2}/LICENSE.txt +0 -0
- {Persistence-5.0 → persistence-5.2}/README.rst +0 -0
- {Persistence-5.0 → persistence-5.2}/buildout.cfg +0 -0
- {Persistence-5.0 → persistence-5.2}/include/ExtensionClass/ExtensionClass.h +0 -0
- {Persistence-5.0 → persistence-5.2}/include/ExtensionClass/_compat.h +0 -0
- {Persistence-5.0 → persistence-5.2}/include/persistent/_compat.h +0 -0
- {Persistence-5.0 → persistence-5.2}/include/persistent/cPersistence.h +0 -0
- {Persistence-5.0 → persistence-5.2}/include/persistent/ring.h +0 -0
- {Persistence-5.0 → persistence-5.2}/setup.cfg +0 -0
- {Persistence-5.0 → persistence-5.2}/src/Persistence/_Persistence.c +0 -0
- {Persistence-5.0 → persistence-5.2}/src/Persistence/__init__.py +0 -0
- {Persistence-5.0 → persistence-5.2}/src/Persistence/mapping.py +0 -0
- {Persistence-5.0 → persistence-5.2}/src/Persistence/tests/__init__.py +0 -0
- {Persistence-5.0 → persistence-5.2}/src/Persistence.egg-info/dependency_links.txt +0 -0
- {Persistence-5.0 → persistence-5.2}/src/Persistence.egg-info/not-zip-safe +0 -0
- {Persistence-5.0 → persistence-5.2}/src/Persistence.egg-info/requires.txt +0 -0
- {Persistence-5.0 → 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
|
-
*"cp313"*) echo 'py313';;
|
|
32
|
-
*"cp38"*) echo 'py38';;
|
|
33
|
-
*"cp39"*) echo 'py39';;
|
|
34
31
|
*"cp310"*) echo 'py310';;
|
|
35
32
|
*"cp311"*) echo 'py311';;
|
|
36
33
|
*"cp312"*) echo 'py312';;
|
|
34
|
+
*"cp313"*) echo 'py313';;
|
|
35
|
+
*"cp314"*) echo 'py314';;
|
|
36
|
+
*"cp315"*) echo 'py315';;
|
|
37
37
|
*) echo 'py';;
|
|
38
38
|
esac
|
|
39
39
|
}
|
|
@@ -41,13 +41,13 @@ tox_env_map() {
|
|
|
41
41
|
# Compile wheels
|
|
42
42
|
for PYBIN in /opt/python/*/bin; do
|
|
43
43
|
if \
|
|
44
|
-
[[ "${PYBIN}" == *"
|
|
44
|
+
[[ "${PYBIN}" == *"cp310/"* ]] || \
|
|
45
45
|
[[ "${PYBIN}" == *"cp311/"* ]] || \
|
|
46
46
|
[[ "${PYBIN}" == *"cp312/"* ]] || \
|
|
47
|
-
[[ "${PYBIN}" == *"
|
|
48
|
-
[[ "${PYBIN}" == *"
|
|
49
|
-
[[ "${PYBIN}" == *"
|
|
50
|
-
if [[ "${PYBIN}" == *"
|
|
47
|
+
[[ "${PYBIN}" == *"cp313/"* ]] || \
|
|
48
|
+
[[ "${PYBIN}" == *"cp314/"* ]] || \
|
|
49
|
+
[[ "${PYBIN}" == *"cp315/"* ]] ; then
|
|
50
|
+
if [[ "${PYBIN}" == *"cp315/"* ]] ; then
|
|
51
51
|
"${PYBIN}/pip" install --pre -e /io/
|
|
52
52
|
"${PYBIN}/pip" wheel /io/ --pre -w wheelhouse/
|
|
53
53
|
else
|
|
@@ -65,7 +65,10 @@ for PYBIN in /opt/python/*/bin; do
|
|
|
65
65
|
fi
|
|
66
66
|
done
|
|
67
67
|
|
|
68
|
+
# Show what wheels we have
|
|
69
|
+
echo "Fixing up the following wheels:"
|
|
70
|
+
ls -l wheelhouse/persistence*.whl
|
|
68
71
|
# Bundle external shared libraries into the wheels
|
|
69
|
-
for whl in wheelhouse/
|
|
72
|
+
for whl in wheelhouse/persistence*.whl; do
|
|
70
73
|
auditwheel repair "$whl" -w /io/wheelhouse/
|
|
71
74
|
done
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Generated from:
|
|
2
|
+
# https://github.com/zopefoundation/meta/tree/master/config/c-code
|
|
3
|
+
minimum_pre_commit_version: '3.6'
|
|
4
|
+
repos:
|
|
5
|
+
- repo: https://github.com/pycqa/isort
|
|
6
|
+
rev: "7.0.0"
|
|
7
|
+
hooks:
|
|
8
|
+
- id: isort
|
|
9
|
+
- repo: https://github.com/hhatto/autopep8
|
|
10
|
+
rev: "v2.3.2"
|
|
11
|
+
hooks:
|
|
12
|
+
- id: autopep8
|
|
13
|
+
args: [--in-place, --aggressive, --aggressive]
|
|
14
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
15
|
+
rev: v3.21.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: pyupgrade
|
|
18
|
+
args: [--py310-plus]
|
|
19
|
+
- repo: https://github.com/isidentical/teyit
|
|
20
|
+
rev: 0.4.3
|
|
21
|
+
hooks:
|
|
22
|
+
- id: teyit
|
|
23
|
+
- repo: https://github.com/PyCQA/flake8
|
|
24
|
+
rev: "7.3.0"
|
|
25
|
+
hooks:
|
|
26
|
+
- id: flake8
|
|
27
|
+
additional_dependencies:
|
|
28
|
+
- flake8-debugger == 4.1.2
|
|
@@ -1,6 +1,20 @@
|
|
|
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
|
+
|
|
12
|
+
5.1 (2024-09-17)
|
|
13
|
+
----------------
|
|
14
|
+
|
|
15
|
+
- Add final support for Python 3.13.
|
|
16
|
+
|
|
17
|
+
|
|
4
18
|
5.0 (2024-05-30)
|
|
5
19
|
----------------
|
|
6
20
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: Persistence
|
|
3
|
-
Version: 5.
|
|
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.
|
|
8
|
-
License: ZPL
|
|
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.
|
|
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,20 @@ 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
|
+
|
|
67
|
+
5.1 (2024-09-17)
|
|
68
|
+
----------------
|
|
69
|
+
|
|
70
|
+
- Add final support for Python 3.13.
|
|
71
|
+
|
|
72
|
+
|
|
47
73
|
5.0 (2024-05-30)
|
|
48
74
|
----------------
|
|
49
75
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Generated from:
|
|
3
|
+
# https://github.com/zopefoundation/meta/tree/master/config/c-code
|
|
4
|
+
|
|
5
|
+
[build-system]
|
|
6
|
+
requires = [
|
|
7
|
+
"setuptools",
|
|
8
|
+
"wheel",
|
|
9
|
+
]
|
|
10
|
+
build-backend = "setuptools.build_meta"
|
|
11
|
+
|
|
12
|
+
[tool.coverage.run]
|
|
13
|
+
branch = true
|
|
14
|
+
source = ["Persistence"]
|
|
15
|
+
relative_files = true
|
|
16
|
+
|
|
17
|
+
[tool.coverage.report]
|
|
18
|
+
fail_under = 97
|
|
19
|
+
precision = 2
|
|
20
|
+
ignore_errors = true
|
|
21
|
+
show_missing = true
|
|
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
|
+
]
|
|
32
|
+
|
|
33
|
+
[tool.coverage.html]
|
|
34
|
+
directory = "parts/htmlcov"
|
|
35
|
+
|
|
36
|
+
[tool.coverage.paths]
|
|
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.
|
|
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
|
|
30
|
+
license='ZPL-2.1',
|
|
31
31
|
description='Persistent ExtensionClass',
|
|
32
32
|
author='Zope Foundation and Contributors',
|
|
33
|
-
author_email='zope-dev@zope.
|
|
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.
|
|
57
|
+
python_requires='>=3.10',
|
|
58
58
|
install_requires=[
|
|
59
59
|
'ExtensionClass >= 4.6',
|
|
60
60
|
'persistent >= 4.1.1',
|
|
@@ -31,5 +31,5 @@ class PersistentMappingTests(unittest.TestCase):
|
|
|
31
31
|
self.assertTrue(issubclass(Dummy, klass))
|
|
32
32
|
|
|
33
33
|
dummy = Dummy()
|
|
34
|
-
self.
|
|
35
|
-
self.
|
|
34
|
+
self.assertIsInstance(dummy, Dummy)
|
|
35
|
+
self.assertIsInstance(dummy, klass)
|
|
@@ -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
|
|
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
|
|
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
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: Persistence
|
|
3
|
-
Version: 5.
|
|
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.
|
|
8
|
-
License: ZPL
|
|
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.
|
|
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,20 @@ 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
|
+
|
|
67
|
+
5.1 (2024-09-17)
|
|
68
|
+
----------------
|
|
69
|
+
|
|
70
|
+
- Add final support for Python 3.13.
|
|
71
|
+
|
|
72
|
+
|
|
47
73
|
5.0 (2024-05-30)
|
|
48
74
|
----------------
|
|
49
75
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.coveragerc
|
|
2
1
|
.manylinux-install.sh
|
|
3
2
|
.manylinux.sh
|
|
3
|
+
.pre-commit-config.yaml
|
|
4
4
|
CHANGES.rst
|
|
5
5
|
CONTRIBUTING.md
|
|
6
6
|
COPYRIGHT.txt
|
|
@@ -8,6 +8,7 @@ LICENSE.txt
|
|
|
8
8
|
MANIFEST.in
|
|
9
9
|
README.rst
|
|
10
10
|
buildout.cfg
|
|
11
|
+
pyproject.toml
|
|
11
12
|
setup.cfg
|
|
12
13
|
setup.py
|
|
13
14
|
tox.ini
|
|
@@ -3,52 +3,59 @@
|
|
|
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]
|
|
17
|
-
|
|
18
|
-
pip_pre = py313: true
|
|
18
|
+
pip_pre = py315: true
|
|
19
19
|
deps =
|
|
20
|
-
setuptools
|
|
20
|
+
setuptools >= 78.1.1,< 81
|
|
21
21
|
wheel
|
|
22
22
|
setenv =
|
|
23
23
|
pure: PURE_PYTHON=1
|
|
24
24
|
!pure-!pypy3: PURE_PYTHON=0
|
|
25
25
|
PIP_NO_CACHE = 1
|
|
26
|
-
py312: VIRTUALENV_PIP=23.1.2
|
|
27
|
-
py312: PIP_REQUIRE_VIRTUALENV=0
|
|
28
26
|
commands =
|
|
29
27
|
zope-testrunner --test-path=src {posargs:-vc}
|
|
30
28
|
extras =
|
|
31
29
|
test
|
|
32
30
|
|
|
31
|
+
[testenv:setuptools-latest]
|
|
32
|
+
basepython = python3
|
|
33
|
+
deps =
|
|
34
|
+
git+https://github.com/pypa/setuptools.git\#egg=setuptools
|
|
35
|
+
wheel
|
|
36
|
+
|
|
33
37
|
[testenv:coverage]
|
|
34
38
|
basepython = python3
|
|
35
39
|
allowlist_externals =
|
|
36
40
|
mkdir
|
|
37
41
|
deps =
|
|
38
|
-
coverage
|
|
42
|
+
coverage[toml]
|
|
39
43
|
wheel
|
|
40
44
|
setenv =
|
|
41
45
|
PURE_PYTHON=1
|
|
42
46
|
commands =
|
|
43
47
|
mkdir -p {toxinidir}/parts/htmlcov
|
|
44
48
|
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
|
|
45
|
-
coverage html
|
|
46
|
-
coverage report
|
|
49
|
+
coverage html
|
|
50
|
+
coverage report
|
|
51
|
+
|
|
47
52
|
[testenv:release-check]
|
|
48
53
|
description = ensure that the distribution is ready to release
|
|
49
54
|
basepython = python3
|
|
50
55
|
skip_install = true
|
|
51
56
|
deps =
|
|
57
|
+
setuptools
|
|
58
|
+
wheel
|
|
52
59
|
twine
|
|
53
60
|
build
|
|
54
61
|
check-manifest
|
|
@@ -57,25 +64,16 @@ deps =
|
|
|
57
64
|
commands_pre =
|
|
58
65
|
commands =
|
|
59
66
|
check-manifest
|
|
60
|
-
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
|
|
61
68
|
python -m build --sdist --no-isolation
|
|
62
69
|
twine check dist/*
|
|
63
70
|
|
|
64
71
|
[testenv:lint]
|
|
72
|
+
description = This env runs all linters configured in .pre-commit-config.yaml
|
|
65
73
|
basepython = python3
|
|
66
74
|
skip_install = true
|
|
67
75
|
deps =
|
|
68
|
-
|
|
69
|
-
flake8
|
|
70
|
-
commands =
|
|
71
|
-
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
|
|
72
|
-
flake8 src setup.py
|
|
73
|
-
|
|
74
|
-
[testenv:isort-apply]
|
|
75
|
-
basepython = python3
|
|
76
|
-
skip_install = true
|
|
76
|
+
pre-commit
|
|
77
77
|
commands_pre =
|
|
78
|
-
deps =
|
|
79
|
-
isort
|
|
80
78
|
commands =
|
|
81
|
-
|
|
79
|
+
pre-commit run --all-files --show-diff-on-failure
|
Persistence-5.0/.coveragerc
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Generated from:
|
|
2
|
-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
|
|
3
|
-
[run]
|
|
4
|
-
source = Persistence
|
|
5
|
-
# New in 5.0; required for the GHA coveralls submission.
|
|
6
|
-
relative_files = True
|
|
7
|
-
branch = true
|
|
8
|
-
|
|
9
|
-
[paths]
|
|
10
|
-
source =
|
|
11
|
-
src/
|
|
12
|
-
.tox/*/lib/python*/site-packages/
|
|
13
|
-
.tox/pypy*/site-packages/
|
|
14
|
-
|
|
15
|
-
[report]
|
|
16
|
-
show_missing = true
|
|
17
|
-
precision = 2
|
|
18
|
-
ignore_errors = True
|
|
19
|
-
exclude_lines =
|
|
20
|
-
except ImportError:
|
|
21
|
-
if __name__ == '__main__':
|
|
22
|
-
pragma: no cover
|
|
23
|
-
pragma: nocover
|
|
24
|
-
raise AssertionError
|
|
25
|
-
raise NotImplementedError
|
|
26
|
-
raise unittest.Skip
|
|
27
|
-
self.fail\(
|
|
28
|
-
|
|
29
|
-
[html]
|
|
30
|
-
directory = parts/htmlcov
|
|
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
|