Persistence 5.0__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 (34) hide show
  1. {Persistence-5.0 → persistence-5.1}/.manylinux-install.sh +7 -12
  2. persistence-5.1/.pre-commit-config.yaml +28 -0
  3. {Persistence-5.0 → persistence-5.1}/CHANGES.rst +6 -0
  4. {Persistence-5.0 → persistence-5.1}/MANIFEST.in +1 -1
  5. {Persistence-5.0 → persistence-5.1}/PKG-INFO +7 -1
  6. persistence-5.1/pyproject.toml +25 -0
  7. {Persistence-5.0 → persistence-5.1}/setup.py +1 -1
  8. {Persistence-5.0 → persistence-5.1}/src/Persistence/tests/test_ec.py +1 -1
  9. {Persistence-5.0 → persistence-5.1}/src/Persistence/tests/test_mapping.py +2 -2
  10. {Persistence-5.0 → persistence-5.1}/src/Persistence.egg-info/PKG-INFO +7 -1
  11. {Persistence-5.0 → persistence-5.1}/src/Persistence.egg-info/SOURCES.txt +2 -1
  12. {Persistence-5.0 → persistence-5.1}/tox.ini +15 -20
  13. Persistence-5.0/.coveragerc +0 -30
  14. {Persistence-5.0 → persistence-5.1}/.manylinux.sh +0 -0
  15. {Persistence-5.0 → persistence-5.1}/CONTRIBUTING.md +0 -0
  16. {Persistence-5.0 → persistence-5.1}/COPYRIGHT.txt +0 -0
  17. {Persistence-5.0 → persistence-5.1}/LICENSE.txt +0 -0
  18. {Persistence-5.0 → persistence-5.1}/README.rst +0 -0
  19. {Persistence-5.0 → persistence-5.1}/buildout.cfg +0 -0
  20. {Persistence-5.0 → persistence-5.1}/include/ExtensionClass/ExtensionClass.h +0 -0
  21. {Persistence-5.0 → persistence-5.1}/include/ExtensionClass/_compat.h +0 -0
  22. {Persistence-5.0 → persistence-5.1}/include/persistent/_compat.h +0 -0
  23. {Persistence-5.0 → persistence-5.1}/include/persistent/cPersistence.h +0 -0
  24. {Persistence-5.0 → persistence-5.1}/include/persistent/ring.h +0 -0
  25. {Persistence-5.0 → persistence-5.1}/setup.cfg +0 -0
  26. {Persistence-5.0 → persistence-5.1}/src/Persistence/_Persistence.c +0 -0
  27. {Persistence-5.0 → persistence-5.1}/src/Persistence/__init__.py +0 -0
  28. {Persistence-5.0 → persistence-5.1}/src/Persistence/mapping.py +0 -0
  29. {Persistence-5.0 → persistence-5.1}/src/Persistence/tests/__init__.py +0 -0
  30. {Persistence-5.0 → persistence-5.1}/src/Persistence/tests/test_persistent.py +0 -0
  31. {Persistence-5.0 → persistence-5.1}/src/Persistence.egg-info/dependency_links.txt +0 -0
  32. {Persistence-5.0 → persistence-5.1}/src/Persistence.egg-info/not-zip-safe +0 -0
  33. {Persistence-5.0 → persistence-5.1}/src/Persistence.egg-info/requires.txt +0 -0
  34. {Persistence-5.0 → 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
- *"cp313"*) echo 'py313';;
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,19 +41,14 @@ tox_env_map() {
41
41
  # Compile wheels
42
42
  for PYBIN in /opt/python/*/bin; do
43
43
  if \
44
- [[ "${PYBIN}" == *"cp313/"* ]] || \
45
- [[ "${PYBIN}" == *"cp311/"* ]] || \
46
- [[ "${PYBIN}" == *"cp312/"* ]] || \
47
44
  [[ "${PYBIN}" == *"cp38/"* ]] || \
48
45
  [[ "${PYBIN}" == *"cp39/"* ]] || \
49
- [[ "${PYBIN}" == *"cp310/"* ]] ; then
50
- if [[ "${PYBIN}" == *"cp313/"* ]] ; 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
46
+ [[ "${PYBIN}" == *"cp310/"* ]] || \
47
+ [[ "${PYBIN}" == *"cp311/"* ]] || \
48
+ [[ "${PYBIN}" == *"cp312/"* ]] || \
49
+ [[ "${PYBIN}" == *"cp313/"* ]] ; 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
@@ -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,12 @@
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
+
4
10
  5.0 (2024-05-30)
5
11
  ----------------
6
12
 
@@ -5,7 +5,7 @@ include *.rst
5
5
  include *.txt
6
6
  include buildout.cfg
7
7
  include tox.ini
8
- include .coveragerc
8
+ include .pre-commit-config.yaml
9
9
 
10
10
  recursive-include src *.py
11
11
  include *.sh
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Persistence
3
- Version: 5.0
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
@@ -44,6 +44,12 @@ 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
+
47
53
  5.0 (2024-05-30)
48
54
  ----------------
49
55
 
@@ -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/"]
@@ -21,7 +21,7 @@ else:
21
21
  include_dirs=['include', 'src']),
22
22
  ]
23
23
 
24
- version = '5.0'
24
+ version = '5.1'
25
25
 
26
26
  setup(
27
27
  name='Persistence',
@@ -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: 5.0
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
@@ -44,6 +44,12 @@ 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
+
47
53
  5.0 (2024-05-30)
48
54
  ----------------
49
55
 
@@ -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
@@ -14,41 +14,45 @@ envlist =
14
14
  coverage
15
15
 
16
16
  [testenv]
17
- usedevelop = true
18
- pip_pre = py313: true
19
17
  deps =
20
- setuptools < 69
18
+ setuptools <74
21
19
  wheel
22
20
  setenv =
23
21
  pure: PURE_PYTHON=1
24
22
  !pure-!pypy3: PURE_PYTHON=0
25
23
  PIP_NO_CACHE = 1
26
- py312: VIRTUALENV_PIP=23.1.2
27
- py312: PIP_REQUIRE_VIRTUALENV=0
28
24
  commands =
29
25
  zope-testrunner --test-path=src {posargs:-vc}
30
26
  extras =
31
27
  test
32
28
 
29
+ [testenv:setuptools-latest]
30
+ basepython = python3
31
+ deps =
32
+ git+https://github.com/pypa/setuptools.git\#egg=setuptools
33
+ wheel
34
+
33
35
  [testenv:coverage]
34
36
  basepython = python3
35
37
  allowlist_externals =
36
38
  mkdir
37
39
  deps =
38
- coverage
40
+ coverage[toml]
39
41
  wheel
40
42
  setenv =
41
43
  PURE_PYTHON=1
42
44
  commands =
43
45
  mkdir -p {toxinidir}/parts/htmlcov
44
46
  coverage run -m zope.testrunner --test-path=src {posargs:-vc}
45
- coverage html -i
46
- coverage report -i -m --fail-under=97
47
+ coverage html
48
+ coverage report
49
+
47
50
  [testenv:release-check]
48
51
  description = ensure that the distribution is ready to release
49
52
  basepython = python3
50
53
  skip_install = true
51
54
  deps =
55
+ setuptools <74
52
56
  twine
53
57
  build
54
58
  check-manifest
@@ -62,20 +66,11 @@ commands =
62
66
  twine check dist/*
63
67
 
64
68
  [testenv:lint]
69
+ description = This env runs all linters configured in .pre-commit-config.yaml
65
70
  basepython = python3
66
71
  skip_install = true
67
72
  deps =
68
- isort
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
73
+ pre-commit
77
74
  commands_pre =
78
- deps =
79
- isort
80
75
  commands =
81
- isort {toxinidir}/src {toxinidir}/setup.py []
76
+ pre-commit run --all-files --show-diff-on-failure
@@ -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