Persistence 4.1__tar.gz → 5.1__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 (35) hide show
  1. {Persistence-4.1 → persistence-5.1}/.manylinux-install.sh +7 -7
  2. persistence-5.1/.pre-commit-config.yaml +28 -0
  3. {Persistence-4.1 → persistence-5.1}/CHANGES.rst +16 -0
  4. {Persistence-4.1 → persistence-5.1}/MANIFEST.in +1 -2
  5. {Persistence-4.1 → persistence-5.1}/PKG-INFO +19 -3
  6. persistence-5.1/pyproject.toml +25 -0
  7. {Persistence-4.1 → persistence-5.1}/setup.cfg +0 -3
  8. {Persistence-4.1 → persistence-5.1}/setup.py +3 -3
  9. {Persistence-4.1 → persistence-5.1}/src/Persistence/tests/test_ec.py +1 -1
  10. {Persistence-4.1 → persistence-5.1}/src/Persistence/tests/test_mapping.py +2 -2
  11. {Persistence-4.1 → persistence-5.1}/src/Persistence.egg-info/PKG-INFO +19 -3
  12. {Persistence-4.1 → persistence-5.1}/src/Persistence.egg-info/SOURCES.txt +2 -2
  13. {Persistence-4.1 → persistence-5.1}/tox.ini +28 -20
  14. Persistence-4.1/.coveragerc +0 -29
  15. Persistence-4.1/appveyor.yml +0 -49
  16. {Persistence-4.1 → persistence-5.1}/.manylinux.sh +0 -0
  17. {Persistence-4.1 → persistence-5.1}/CONTRIBUTING.md +0 -0
  18. {Persistence-4.1 → persistence-5.1}/COPYRIGHT.txt +0 -0
  19. {Persistence-4.1 → persistence-5.1}/LICENSE.txt +0 -0
  20. {Persistence-4.1 → persistence-5.1}/README.rst +0 -0
  21. {Persistence-4.1 → persistence-5.1}/buildout.cfg +0 -0
  22. {Persistence-4.1 → persistence-5.1}/include/ExtensionClass/ExtensionClass.h +0 -0
  23. {Persistence-4.1 → persistence-5.1}/include/ExtensionClass/_compat.h +0 -0
  24. {Persistence-4.1 → persistence-5.1}/include/persistent/_compat.h +0 -0
  25. {Persistence-4.1 → persistence-5.1}/include/persistent/cPersistence.h +0 -0
  26. {Persistence-4.1 → persistence-5.1}/include/persistent/ring.h +0 -0
  27. {Persistence-4.1 → persistence-5.1}/src/Persistence/_Persistence.c +0 -0
  28. {Persistence-4.1 → persistence-5.1}/src/Persistence/__init__.py +0 -0
  29. {Persistence-4.1 → persistence-5.1}/src/Persistence/mapping.py +0 -0
  30. {Persistence-4.1 → persistence-5.1}/src/Persistence/tests/__init__.py +0 -0
  31. {Persistence-4.1 → persistence-5.1}/src/Persistence/tests/test_persistent.py +0 -0
  32. {Persistence-4.1 → persistence-5.1}/src/Persistence.egg-info/dependency_links.txt +0 -0
  33. {Persistence-4.1 → persistence-5.1}/src/Persistence.egg-info/not-zip-safe +0 -0
  34. {Persistence-4.1 → persistence-5.1}/src/Persistence.egg-info/requires.txt +0 -0
  35. {Persistence-4.1 → persistence-5.1}/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
- *"cp37"*) echo 'py37';;
32
31
  *"cp38"*) echo 'py38';;
33
32
  *"cp39"*) echo 'py39';;
34
33
  *"cp310"*) echo 'py310';;
35
34
  *"cp311"*) echo 'py311';;
36
35
  *"cp312"*) echo 'py312';;
36
+ *"cp313"*) echo 'py313';;
37
37
  *) echo 'py';;
38
38
  esac
39
39
  }
@@ -41,12 +41,12 @@ tox_env_map() {
41
41
  # Compile wheels
42
42
  for PYBIN in /opt/python/*/bin; do
43
43
  if \
44
- [[ "${PYBIN}" == *"cp311"* ]] || \
45
- [[ "${PYBIN}" == *"cp312"* ]] || \
46
- [[ "${PYBIN}" == *"cp37"* ]] || \
47
- [[ "${PYBIN}" == *"cp38"* ]] || \
48
- [[ "${PYBIN}" == *"cp39"* ]] || \
49
- [[ "${PYBIN}" == *"cp310"* ]] ; then
44
+ [[ "${PYBIN}" == *"cp38/"* ]] || \
45
+ [[ "${PYBIN}" == *"cp39/"* ]] || \
46
+ [[ "${PYBIN}" == *"cp310/"* ]] || \
47
+ [[ "${PYBIN}" == *"cp311/"* ]] || \
48
+ [[ "${PYBIN}" == *"cp312/"* ]] || \
49
+ [[ "${PYBIN}" == *"cp313/"* ]] ; then
50
50
  "${PYBIN}/pip" install -e /io/
51
51
  "${PYBIN}/pip" wheel /io/ -w wheelhouse/
52
52
  if [ `uname -m` == 'aarch64' ]; then
@@ -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: "5.13.2"
7
+ hooks:
8
+ - id: isort
9
+ - repo: https://github.com/hhatto/autopep8
10
+ rev: "v2.3.1"
11
+ hooks:
12
+ - id: autopep8
13
+ args: [--in-place, --aggressive, --aggressive]
14
+ - repo: https://github.com/asottile/pyupgrade
15
+ rev: v3.17.0
16
+ hooks:
17
+ - id: pyupgrade
18
+ args: [--py38-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.1.1"
25
+ hooks:
26
+ - id: flake8
27
+ additional_dependencies:
28
+ - flake8-debugger == 4.1.2
@@ -1,6 +1,22 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 5.1 (2024-09-17)
5
+ ----------------
6
+
7
+ - Add final support for Python 3.13.
8
+
9
+
10
+ 5.0 (2024-05-30)
11
+ ----------------
12
+
13
+ - Drop support for Python 3.7.
14
+
15
+ - Add preliminary support for Python 3.13 as of 3.13a3.
16
+
17
+ - Build Windows wheels on GHA.
18
+
19
+
4
20
  4.1 (2023-10-05)
5
21
  ----------------
6
22
 
@@ -5,8 +5,7 @@ include *.rst
5
5
  include *.txt
6
6
  include buildout.cfg
7
7
  include tox.ini
8
- include appveyor.yml
9
- include .coveragerc
8
+ include .pre-commit-config.yaml
10
9
 
11
10
  recursive-include src *.py
12
11
  include *.sh
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Persistence
3
- Version: 4.1
3
+ Version: 5.1
4
4
  Summary: Persistent ExtensionClass
5
5
  Home-page: https://github.com/zopefoundation/Persistence
6
6
  Author: Zope Foundation and Contributors
@@ -15,15 +15,15 @@ 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.7
19
18
  Classifier: Programming Language :: Python :: 3.8
20
19
  Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
24
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
25
  Classifier: Programming Language :: Python :: Implementation :: PyPy
26
- Requires-Python: >=3.7
26
+ Requires-Python: >=3.8
27
27
  License-File: LICENSE.txt
28
28
  Requires-Dist: ExtensionClass>=4.6
29
29
  Requires-Dist: persistent>=4.1.1
@@ -44,6 +44,22 @@ use ``persistent.Persistent`` from the persistent_ distribution (formerly in ZOD
44
44
  Changelog
45
45
  =========
46
46
 
47
+ 5.1 (2024-09-17)
48
+ ----------------
49
+
50
+ - Add final support for Python 3.13.
51
+
52
+
53
+ 5.0 (2024-05-30)
54
+ ----------------
55
+
56
+ - Drop support for Python 3.7.
57
+
58
+ - Add preliminary support for Python 3.13 as of 3.13a3.
59
+
60
+ - Build Windows wheels on GHA.
61
+
62
+
47
63
  4.1 (2023-10-05)
48
64
  ----------------
49
65
 
@@ -0,0 +1,25 @@
1
+ #
2
+ # Generated from:
3
+ # https://github.com/zopefoundation/meta/tree/master/config/c-code
4
+
5
+ [build-system]
6
+ requires = ["setuptools<74"]
7
+ build-backend = "setuptools.build_meta"
8
+
9
+ [tool.coverage.run]
10
+ branch = true
11
+ source = ["Persistence"]
12
+ relative_files = true
13
+
14
+ [tool.coverage.report]
15
+ fail_under = 97
16
+ precision = 2
17
+ ignore_errors = true
18
+ 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"]
20
+
21
+ [tool.coverage.html]
22
+ directory = "parts/htmlcov"
23
+
24
+ [tool.coverage.paths]
25
+ source = ["src/", ".tox/*/lib/python*/site-packages/", ".tox/pypy*/site-packages/"]
@@ -1,6 +1,3 @@
1
- [bdist_wheel]
2
- universal = 0
3
-
4
1
  [zest.releaser]
5
2
  create-wheel = no
6
3
 
@@ -21,7 +21,7 @@ else:
21
21
  include_dirs=['include', 'src']),
22
22
  ]
23
23
 
24
- version = '4.1'
24
+ version = '5.1'
25
25
 
26
26
  setup(
27
27
  name='Persistence',
@@ -44,17 +44,17 @@ setup(
44
44
  "Operating System :: OS Independent",
45
45
  "Programming Language :: Python",
46
46
  "Programming Language :: Python :: 3",
47
- "Programming Language :: Python :: 3.7",
48
47
  "Programming Language :: Python :: 3.8",
49
48
  "Programming Language :: Python :: 3.9",
50
49
  "Programming Language :: Python :: 3.10",
51
50
  "Programming Language :: Python :: 3.11",
52
51
  "Programming Language :: Python :: 3.12",
52
+ "Programming Language :: Python :: 3.13",
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.7',
57
+ python_requires='>=3.8',
58
58
  install_requires=[
59
59
  'ExtensionClass >= 4.6',
60
60
  'persistent >= 4.1.1',
@@ -20,7 +20,7 @@ from Persistence import Persistent
20
20
  def print_dict(d):
21
21
  d = d.items()
22
22
  print('{%s}' % (', '.join(
23
- [('{!r}: {!r}'.format(k, v)) for (k, v) in sorted(d)]
23
+ [(f'{k!r}: {v!r}') for (k, v) in sorted(d)]
24
24
  )))
25
25
 
26
26
 
@@ -31,5 +31,5 @@ class PersistentMappingTests(unittest.TestCase):
31
31
  self.assertTrue(issubclass(Dummy, klass))
32
32
 
33
33
  dummy = Dummy()
34
- self.assertTrue(isinstance(dummy, Dummy))
35
- self.assertTrue(isinstance(dummy, klass))
34
+ self.assertIsInstance(dummy, Dummy)
35
+ self.assertIsInstance(dummy, klass)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Persistence
3
- Version: 4.1
3
+ Version: 5.1
4
4
  Summary: Persistent ExtensionClass
5
5
  Home-page: https://github.com/zopefoundation/Persistence
6
6
  Author: Zope Foundation and Contributors
@@ -15,15 +15,15 @@ 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.7
19
18
  Classifier: Programming Language :: Python :: 3.8
20
19
  Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
24
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
25
  Classifier: Programming Language :: Python :: Implementation :: PyPy
26
- Requires-Python: >=3.7
26
+ Requires-Python: >=3.8
27
27
  License-File: LICENSE.txt
28
28
  Requires-Dist: ExtensionClass>=4.6
29
29
  Requires-Dist: persistent>=4.1.1
@@ -44,6 +44,22 @@ use ``persistent.Persistent`` from the persistent_ distribution (formerly in ZOD
44
44
  Changelog
45
45
  =========
46
46
 
47
+ 5.1 (2024-09-17)
48
+ ----------------
49
+
50
+ - Add final support for Python 3.13.
51
+
52
+
53
+ 5.0 (2024-05-30)
54
+ ----------------
55
+
56
+ - Drop support for Python 3.7.
57
+
58
+ - Add preliminary support for Python 3.13 as of 3.13a3.
59
+
60
+ - Build Windows wheels on GHA.
61
+
62
+
47
63
  4.1 (2023-10-05)
48
64
  ----------------
49
65
 
@@ -1,14 +1,14 @@
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
7
7
  LICENSE.txt
8
8
  MANIFEST.in
9
9
  README.rst
10
- appveyor.yml
11
10
  buildout.cfg
11
+ pyproject.toml
12
12
  setup.cfg
13
13
  setup.py
14
14
  tox.ini
@@ -4,65 +4,73 @@
4
4
  minversion = 4.0
5
5
  envlist =
6
6
  lint
7
- py37,py37-pure
8
7
  py38,py38-pure
9
8
  py39,py39-pure
10
9
  py310,py310-pure
11
10
  py311,py311-pure
12
11
  py312,py312-pure
12
+ py313,py313-pure
13
13
  pypy3
14
14
  coverage
15
15
 
16
16
  [testenv]
17
- usedevelop = true
18
17
  deps =
18
+ setuptools <74
19
19
  wheel
20
20
  setenv =
21
21
  pure: PURE_PYTHON=1
22
22
  !pure-!pypy3: PURE_PYTHON=0
23
23
  PIP_NO_CACHE = 1
24
- py312: VIRTUALENV_PIP=23.1.2
25
- py312: PIP_REQUIRE_VIRTUALENV=0
26
24
  commands =
27
25
  zope-testrunner --test-path=src {posargs:-vc}
28
26
  extras =
29
27
  test
30
28
 
29
+ [testenv:setuptools-latest]
30
+ basepython = python3
31
+ deps =
32
+ git+https://github.com/pypa/setuptools.git\#egg=setuptools
33
+ wheel
34
+
31
35
  [testenv:coverage]
32
36
  basepython = python3
33
37
  allowlist_externals =
34
38
  mkdir
35
39
  deps =
36
- coverage
40
+ coverage[toml]
37
41
  wheel
38
42
  setenv =
39
43
  PURE_PYTHON=1
40
44
  commands =
41
45
  mkdir -p {toxinidir}/parts/htmlcov
42
46
  coverage run -m zope.testrunner --test-path=src {posargs:-vc}
43
- coverage html -i
44
- coverage report -i -m --fail-under=97
47
+ coverage html
48
+ coverage report
45
49
 
46
- [testenv:lint]
50
+ [testenv:release-check]
51
+ description = ensure that the distribution is ready to release
47
52
  basepython = python3
48
53
  skip_install = true
49
- commands =
50
- isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
51
- flake8 src setup.py
52
- check-manifest
53
- check-python-versions
54
54
  deps =
55
+ setuptools <74
56
+ twine
57
+ build
55
58
  check-manifest
56
- check-python-versions >= 0.19.1
59
+ check-python-versions >= 0.20.0
57
60
  wheel
58
- flake8
59
- isort
61
+ commands_pre =
62
+ commands =
63
+ check-manifest
64
+ check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
65
+ python -m build --sdist --no-isolation
66
+ twine check dist/*
60
67
 
61
- [testenv:isort-apply]
68
+ [testenv:lint]
69
+ description = This env runs all linters configured in .pre-commit-config.yaml
62
70
  basepython = python3
63
71
  skip_install = true
64
- commands_pre =
65
72
  deps =
66
- isort
73
+ pre-commit
74
+ commands_pre =
67
75
  commands =
68
- isort {toxinidir}/src {toxinidir}/setup.py []
76
+ pre-commit run --all-files --show-diff-on-failure
@@ -1,29 +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
- exclude_lines =
19
- except ImportError:
20
- if __name__ == '__main__':
21
- pragma: no cover
22
- pragma: nocover
23
- raise AssertionError
24
- raise NotImplementedError
25
- raise unittest.Skip
26
- self.fail\(
27
-
28
- [html]
29
- directory = parts/htmlcov
@@ -1,49 +0,0 @@
1
- # Generated from:
2
- # https://github.com/zopefoundation/meta/tree/master/config/c-code
3
- environment:
4
- # Currently the builds use @dataflake's Appveyor account. The PyPI token belongs
5
- # to zope.wheelbuilder, which is managed by @mgedmin and @dataflake.
6
- global:
7
- TWINE_USERNAME: __token__
8
- TWINE_PASSWORD:
9
- secure: vSlDBj79vziJOA5k3z16r1z/PWLKowwjFS0ckiPErAActoQ0c3xoDHVqPFi89JTlfNrVxrtdpuB+LwAhD+6sciqD7UuyWNUu7LwTxzRSVnWIDf6KSsTbm+9BOTe2+lCScOflzsfjmXisUfntHzM7daQZsVsgKQuvYFgCMHQ1RW4fCpdqcWVNw8Br7dnOJcmSapywGVe8I6vTqW0/F3LYwYy/Qiizwarc7OQNPpz2KfMkyupyY7TsvtxaY5W4g5IRDjBYEtHqFbbIGHmls4Xqhw==
10
-
11
- matrix:
12
- - python: 37-x64
13
- - python: 38-x64
14
- - python: 39-x64
15
- - python: 310-x64
16
- - python: 311-x64
17
- - python: 312-x64
18
-
19
- install:
20
- - "SET PYTHONVERSION=%PYTHON%"
21
- - "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"
22
- - ps: |
23
- $env:PYTHON = "C:\\Python${env:PYTHON}"
24
- if (-not (Test-Path $env:PYTHON)) {
25
- curl -o install_python.ps1 https://raw.githubusercontent.com/matthew-brett/multibuild/11a389d78892cf90addac8f69433d5e22bfa422a/install_python.ps1
26
- .\install_python.ps1
27
- }
28
- - ps: if (-not (Test-Path $env:PYTHON)) { throw "No $env:PYTHON" }
29
- - echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
30
- - python -m pip install -U pip
31
- - pip install -U setuptools wheel
32
- - pip install -U -e .[test]
33
-
34
- matrix:
35
- fast_finish: true
36
-
37
- build_script:
38
- - python -W ignore setup.py -q bdist_wheel
39
-
40
- test_script:
41
- - zope-testrunner --test-path=src
42
- artifacts:
43
- - path: 'dist\*.whl'
44
- name: wheel
45
-
46
- deploy_script:
47
- - ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { pip install twine; twine upload --skip-existing dist\*.whl }
48
-
49
- deploy: on
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes