zope.keyreference 5.0.0.dev0__tar.gz → 6.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 (40) hide show
  1. zope_keyreference-6.1/.pre-commit-config.yaml +28 -0
  2. zope_keyreference-6.1/.readthedocs.yaml +25 -0
  3. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/CHANGES.rst +19 -1
  4. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/CONTRIBUTING.md +1 -1
  5. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/MANIFEST.in +2 -0
  6. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/PKG-INFO +38 -14
  7. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/docs/conf.py +32 -30
  8. zope.keyreference-5.0.0.dev0/doc-requirements.txt → zope_keyreference-6.1/docs/requirements.txt +1 -3
  9. zope_keyreference-6.1/pyproject.toml +21 -0
  10. zope_keyreference-6.1/setup.cfg +24 -0
  11. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/setup.py +9 -11
  12. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/keyreference/interfaces.py +2 -1
  13. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/keyreference/persistent.py +4 -4
  14. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/keyreference/testing.py +3 -2
  15. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/keyreference/tests.py +4 -7
  16. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope.keyreference.egg-info/PKG-INFO +38 -14
  17. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope.keyreference.egg-info/SOURCES.txt +4 -1
  18. zope_keyreference-6.1/tox.ini +80 -0
  19. zope_keyreference-6.1/version.txt +1 -0
  20. zope.keyreference-5.0.0.dev0/setup.cfg +0 -16
  21. zope.keyreference-5.0.0.dev0/tox.ini +0 -79
  22. zope.keyreference-5.0.0.dev0/version.txt +0 -1
  23. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/COPYRIGHT.txt +0 -0
  24. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/LICENSE.txt +0 -0
  25. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/README.rst +0 -0
  26. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/buildout.cfg +0 -0
  27. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/docs/Makefile +0 -0
  28. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/docs/changelog.rst +0 -0
  29. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/docs/index.rst +0 -0
  30. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/docs/persistent.rst +0 -0
  31. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/docs/reference.rst +0 -0
  32. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/__init__.py +0 -0
  33. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/keyreference/__init__.py +0 -0
  34. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/keyreference/configure.zcml +0 -0
  35. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope/keyreference/persistent.txt +0 -0
  36. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope.keyreference.egg-info/dependency_links.txt +0 -0
  37. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope.keyreference.egg-info/namespace_packages.txt +0 -0
  38. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope.keyreference.egg-info/not-zip-safe +0 -0
  39. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope.keyreference.egg-info/requires.txt +1 -1
  40. {zope.keyreference-5.0.0.dev0 → zope_keyreference-6.1}/src/zope.keyreference.egg-info/top_level.txt +0 -0
@@ -0,0 +1,28 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
+ minimum_pre_commit_version: '3.6'
4
+ repos:
5
+ - repo: https://github.com/pycqa/isort
6
+ rev: "6.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.19.1
16
+ hooks:
17
+ - id: pyupgrade
18
+ args: [--py39-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
@@ -0,0 +1,25 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
+ # Read the Docs configuration file
4
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
5
+
6
+ # Required
7
+ version: 2
8
+
9
+ # Set the version of Python and other tools you might need
10
+ build:
11
+ os: ubuntu-22.04
12
+ tools:
13
+ python: "3.11"
14
+
15
+ # Build documentation in the docs/ directory with Sphinx
16
+ sphinx:
17
+ configuration: docs/conf.py
18
+
19
+ # We recommend specifying your dependencies to enable reproducible builds:
20
+ # https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
21
+ python:
22
+ install:
23
+ - requirements: docs/requirements.txt
24
+ - method: pip
25
+ path: .
@@ -2,7 +2,25 @@
2
2
  Changes
3
3
  =========
4
4
 
5
- 5.0.0 (unreleased)
5
+ 6.1 (2025-02-14)
6
+ ================
7
+
8
+ - Add support for Python 3.12, 3.13.
9
+
10
+ - Drop support for Python 3.7, 3.8.
11
+
12
+
13
+ 6.0 (2023-04-25)
14
+ ================
15
+
16
+ - Drop support for Python 2.7, 3.5, 3.6.
17
+
18
+ - Add support for Python 3.11.
19
+
20
+ - Make the tests compatible with ``zope.testing >= 5``.
21
+
22
+
23
+ 5.0.0 (2022-03-25)
6
24
  ==================
7
25
 
8
26
  - Remove ``__cmp__`` methods. Since the implementation of the rich
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  Generated from:
3
3
  https://github.com/zopefoundation/meta/tree/master/config/pure-python
4
- -->
4
+ -->
5
5
  # Contributing to zopefoundation projects
6
6
 
7
7
  The projects under the zopefoundation GitHub organization are open source and
@@ -5,6 +5,7 @@ include *.rst
5
5
  include *.txt
6
6
  include buildout.cfg
7
7
  include tox.ini
8
+ include .pre-commit-config.yaml
8
9
 
9
10
  recursive-include docs *.py
10
11
  recursive-include docs *.rst
@@ -12,6 +13,7 @@ recursive-include docs *.txt
12
13
  recursive-include docs Makefile
13
14
 
14
15
  recursive-include src *.py
16
+ include *.yaml
15
17
  recursive-include doc *.py
16
18
  recursive-include doc *.rst
17
19
  recursive-include doc Makefile
@@ -1,37 +1,45 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zope.keyreference
3
- Version: 5.0.0.dev0
3
+ Version: 6.1
4
4
  Summary: Key References
5
5
  Home-page: https://github.com/zopefoundation/zope.keyreference
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
  Project-URL: Documentation, https://zopekeyreference.readthedocs.io/
10
10
  Keywords: zope3 key reference persistent
11
- Platform: UNKNOWN
12
11
  Classifier: Development Status :: 5 - Production/Stable
13
12
  Classifier: Environment :: Web Environment
14
13
  Classifier: Intended Audience :: Developers
15
14
  Classifier: License :: OSI Approved :: Zope Public License
16
15
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 2
18
- Classifier: Programming Language :: Python :: 2.7
19
16
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.5
21
- Classifier: Programming Language :: Python :: 3.6
22
- Classifier: Programming Language :: Python :: 3.7
23
- Classifier: Programming Language :: Python :: 3.8
24
17
  Classifier: Programming Language :: Python :: 3.9
25
18
  Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
26
22
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
23
  Classifier: Programming Language :: Python :: Implementation :: PyPy
28
24
  Classifier: Natural Language :: English
29
25
  Classifier: Operating System :: OS Independent
30
26
  Classifier: Topic :: Internet :: WWW/HTTP
31
27
  Classifier: Framework :: Zope :: 3
28
+ Requires-Python: >=3.9
29
+ License-File: LICENSE.txt
30
+ Requires-Dist: setuptools
31
+ Requires-Dist: ZODB
32
+ Requires-Dist: zope.component
33
+ Requires-Dist: zope.i18nmessageid
34
+ Requires-Dist: zope.interface
35
+ Requires-Dist: zope.schema
32
36
  Provides-Extra: test
37
+ Requires-Dist: zope.testing; extra == "test"
38
+ Requires-Dist: zope.testrunner; extra == "test"
33
39
  Provides-Extra: docs
34
- License-File: LICENSE.txt
40
+ Requires-Dist: repoze.sphinx.autointerface; extra == "docs"
41
+ Requires-Dist: sphinx_rtd_theme; extra == "docs"
42
+ Requires-Dist: Sphinx; extra == "docs"
35
43
 
36
44
  ===================
37
45
  zope.keyreference
@@ -66,7 +74,25 @@ Documentation can be found at https://zopekeyreference.readthedocs.io
66
74
  Changes
67
75
  =========
68
76
 
69
- 5.0.0 (unreleased)
77
+ 6.1 (2025-02-14)
78
+ ================
79
+
80
+ - Add support for Python 3.12, 3.13.
81
+
82
+ - Drop support for Python 3.7, 3.8.
83
+
84
+
85
+ 6.0 (2023-04-25)
86
+ ================
87
+
88
+ - Drop support for Python 2.7, 3.5, 3.6.
89
+
90
+ - Add support for Python 3.11.
91
+
92
+ - Make the tests compatible with ``zope.testing >= 5``.
93
+
94
+
95
+ 5.0.0 (2022-03-25)
70
96
  ==================
71
97
 
72
98
  - Remove ``__cmp__`` methods. Since the implementation of the rich
@@ -150,5 +176,3 @@ Documentation can be found at https://zopekeyreference.readthedocs.io
150
176
  ==================
151
177
 
152
178
  - Rename ``zope.app.keyreference`` to ``zope.keyreference``.
153
-
154
-
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  #
3
2
  # zope.keyreference documentation build configuration file, created by
4
3
  # sphinx-quickstart on Tue Sep 13 15:00:43 2016.
@@ -44,7 +43,7 @@ templates_path = ['_templates']
44
43
  # You can specify multiple suffix as a list of string:
45
44
  #
46
45
  # source_suffix = ['.rst', '.md']
47
- source_suffix = '.rst'
46
+ source_suffix = {'.rst': 'restructuredtext'}
48
47
 
49
48
  # The encoding of source files.
50
49
  #
@@ -54,9 +53,9 @@ source_suffix = '.rst'
54
53
  master_doc = 'index'
55
54
 
56
55
  # General information about the project.
57
- project = u'zope.keyreference'
58
- copyright = u'2016, Zope Community'
59
- author = u'Zope Community'
56
+ project = 'zope.keyreference'
57
+ copyright = '2016-2025, Zope Community'
58
+ author = 'Zope Community'
60
59
 
61
60
  # The version info for the project you're documenting, acts as replacement for
62
61
  # |version| and |release|, also used in various other places throughout the
@@ -74,7 +73,7 @@ version = '.'.join(release.split('.')[:2])
74
73
  #
75
74
  # This is also used if you do content translation via gettext catalogs.
76
75
  # Usually you set "language" from the command line for these cases.
77
- language = None
76
+ language = 'en'
78
77
 
79
78
  # There are two options for replacing |today|: either, you set today to some
80
79
  # non-false value, then it is used:
@@ -153,15 +152,15 @@ html_theme = 'sphinx_rtd_theme'
153
152
  # html_logo = None
154
153
 
155
154
  # The name of an image file (relative to this directory) to use as a favicon of
156
- # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
157
- # pixels large.
155
+ # the docs. This file should be a Windows icon file (.ico) being 16x16 or
156
+ # 32x32 pixels large.
158
157
  #
159
158
  # html_favicon = None
160
159
 
161
160
  # Add any paths that contain custom static files (such as style sheets) here,
162
161
  # relative to this directory. They are copied after the builtin static files,
163
162
  # so a file named "default.css" will overwrite the builtin "default.css".
164
- html_static_path = ['_static']
163
+ # html_static_path = ['_static']
165
164
 
166
165
  # Add any extra paths that contain custom files (such as robots.txt or
167
166
  # .htaccess) here, relative to this directory. These files are copied
@@ -246,29 +245,29 @@ htmlhelp_basename = 'zopekeyreferencedoc'
246
245
  # -- Options for LaTeX output ---------------------------------------------
247
246
 
248
247
  latex_elements = {
249
- # The paper size ('letterpaper' or 'a4paper').
250
- #
251
- # 'papersize': 'letterpaper',
248
+ # The paper size ('letterpaper' or 'a4paper').
249
+ #
250
+ # 'papersize': 'letterpaper',
252
251
 
253
- # The font size ('10pt', '11pt' or '12pt').
254
- #
255
- # 'pointsize': '10pt',
252
+ # The font size ('10pt', '11pt' or '12pt').
253
+ #
254
+ # 'pointsize': '10pt',
256
255
 
257
- # Additional stuff for the LaTeX preamble.
258
- #
259
- # 'preamble': '',
256
+ # Additional stuff for the LaTeX preamble.
257
+ #
258
+ # 'preamble': '',
260
259
 
261
- # Latex figure (float) alignment
262
- #
263
- # 'figure_align': 'htbp',
260
+ # Latex figure (float) alignment
261
+ #
262
+ # 'figure_align': 'htbp',
264
263
  }
265
264
 
266
265
  # Grouping the document tree into LaTeX files. List of tuples
267
266
  # (source start file, target name, title,
268
267
  # author, documentclass [howto, manual, or own class]).
269
268
  latex_documents = [
270
- (master_doc, 'zopekeyreference.tex', u'zope.keyreference Documentation',
271
- u'Zope Community', 'manual'),
269
+ (master_doc, 'zopekeyreference.tex', 'zope.keyreference Documentation',
270
+ 'Zope Community', 'manual'),
272
271
  ]
273
272
 
274
273
  # The name of an image file (relative to this directory) to place at the top of
@@ -309,7 +308,7 @@ latex_documents = [
309
308
  # One entry per manual page. List of tuples
310
309
  # (source start file, name, description, authors, manual section).
311
310
  man_pages = [
312
- (master_doc, 'zopekeyreference', u'zope.keyreference Documentation',
311
+ (master_doc, 'zopekeyreference', 'zope.keyreference Documentation',
313
312
  [author], 1)
314
313
  ]
315
314
 
@@ -324,7 +323,7 @@ man_pages = [
324
323
  # (source start file, target name, title, author,
325
324
  # dir menu entry, description, category)
326
325
  texinfo_documents = [
327
- (master_doc, 'zopekeyreference', u'zope.keyreference Documentation',
326
+ (master_doc, 'zopekeyreference', 'zope.keyreference Documentation',
328
327
  author, 'zopekeyreference', 'One line description of project.',
329
328
  'Miscellaneous'),
330
329
  ]
@@ -348,13 +347,16 @@ texinfo_documents = [
348
347
 
349
348
  # Example configuration for intersphinx: refer to the Python standard library.
350
349
  intersphinx_mapping = {
351
- 'https://docs.python.org/': None,
350
+ 'python': ('https://docs.python.org/', None),
352
351
  }
353
352
 
354
- extlinks = {'issue': ('https://github.com/zopefoundation/zope.keyreference/issues/%s',
355
- 'issue #'),
356
- 'pr': ('https://github.com/zopefoundation/zope.keyreference/pull/%s',
357
- 'pull request #')}
353
+ extlinks = {
354
+ 'issue': (
355
+ 'https://github.com/zopefoundation/zope.keyreference/issues/%s',
356
+ 'issue #'),
357
+ 'pr': (
358
+ 'https://github.com/zopefoundation/zope.keyreference/pull/%s',
359
+ 'pull request #')}
358
360
 
359
361
  autodoc_default_flags = ['members', 'show-inheritance']
360
362
  autoclass_content = 'both'
@@ -1,5 +1,3 @@
1
- pip>=9.0.0
2
- sphinx>=1.4
3
- setuptools>=23.0.0
1
+ Sphinx
4
2
  repoze.sphinx.autointerface
5
3
  sphinx_rtd_theme
@@ -0,0 +1,21 @@
1
+ #
2
+ # Generated from:
3
+ # https://github.com/zopefoundation/meta/tree/master/config/pure-python
4
+
5
+ [build-system]
6
+ requires = ["setuptools <= 75.6.0"]
7
+ build-backend = "setuptools.build_meta"
8
+
9
+ [tool.coverage.run]
10
+ branch = true
11
+ source = ["zope.keyreference"]
12
+
13
+ [tool.coverage.report]
14
+ fail_under = 100
15
+ precision = 2
16
+ ignore_errors = true
17
+ show_missing = true
18
+ exclude_lines = ["pragma: no cover", "pragma: nocover", "except ImportError:", "raise NotImplementedError", "if __name__ == '__main__':", "self.fail", "raise AssertionError", "raise unittest.Skip"]
19
+
20
+ [tool.coverage.html]
21
+ directory = "parts/htmlcov"
@@ -0,0 +1,24 @@
1
+ [flake8]
2
+ doctests = 1
3
+
4
+ [check-manifest]
5
+ ignore =
6
+ .editorconfig
7
+ .meta.toml
8
+ docs/_build/html/_sources/*
9
+
10
+ [isort]
11
+ force_single_line = True
12
+ combine_as_imports = True
13
+ sections = FUTURE,STDLIB,THIRDPARTY,ZOPE,FIRSTPARTY,LOCALFOLDER
14
+ known_third_party = docutils, pkg_resources, pytz
15
+ known_zope =
16
+ known_first_party =
17
+ default_section = ZOPE
18
+ line_length = 79
19
+ lines_after_imports = 2
20
+
21
+ [egg_info]
22
+ tag_build =
23
+ tag_date = 0
24
+
@@ -19,7 +19,9 @@
19
19
  """Setup for zope.keyreference package
20
20
  """
21
21
  import os
22
- from setuptools import setup, find_packages
22
+
23
+ from setuptools import find_packages
24
+ from setuptools import setup
23
25
 
24
26
 
25
27
  def read(*rnames):
@@ -36,7 +38,7 @@ setup(
36
38
  name="zope.keyreference",
37
39
  version=read("version.txt").strip(),
38
40
  author="Zope Foundation and Contributors",
39
- author_email="zope-dev@zope.org",
41
+ author_email="zope-dev@zope.dev",
40
42
  description="Key References",
41
43
  long_description=(
42
44
  read("README.rst")
@@ -50,15 +52,12 @@ setup(
50
52
  "Intended Audience :: Developers",
51
53
  "License :: OSI Approved :: Zope Public License",
52
54
  "Programming Language :: Python",
53
- "Programming Language :: Python :: 2",
54
- "Programming Language :: Python :: 2.7",
55
55
  "Programming Language :: Python :: 3",
56
- "Programming Language :: Python :: 3.5",
57
- "Programming Language :: Python :: 3.6",
58
- "Programming Language :: Python :: 3.7",
59
- "Programming Language :: Python :: 3.8",
60
56
  "Programming Language :: Python :: 3.9",
61
57
  "Programming Language :: Python :: 3.10",
58
+ "Programming Language :: Python :: 3.11",
59
+ "Programming Language :: Python :: 3.12",
60
+ "Programming Language :: Python :: 3.13",
62
61
  "Programming Language :: Python :: Implementation :: CPython",
63
62
  "Programming Language :: Python :: Implementation :: PyPy",
64
63
  "Natural Language :: English",
@@ -70,10 +69,11 @@ setup(
70
69
  project_urls={
71
70
  "Documentation": "https://zopekeyreference.readthedocs.io/",
72
71
  },
73
- license="ZPL 2.1",
72
+ license="ZPL-2.1",
74
73
  packages=find_packages("src"),
75
74
  package_dir={"": "src"},
76
75
  namespace_packages=["zope"],
76
+ python_requires='>=3.9',
77
77
  extras_require={
78
78
  "test": TESTS_REQUIRE,
79
79
  "docs": {
@@ -90,8 +90,6 @@ setup(
90
90
  "zope.interface",
91
91
  "zope.schema",
92
92
  ],
93
- tests_require=TESTS_REQUIRE,
94
- test_suite="zope.keyreference.tests.test_suite",
95
93
  include_package_data=True,
96
94
  zip_safe=False,
97
95
  )
@@ -14,8 +14,9 @@
14
14
  """Key-reference interfaces
15
15
  """
16
16
  import zope.interface
17
- from zope.schema import DottedName
18
17
  from zope.i18nmessageid import MessageFactory
18
+ from zope.schema import DottedName
19
+
19
20
 
20
21
  _ = MessageFactory('zope')
21
22
 
@@ -15,15 +15,15 @@
15
15
 
16
16
  Provides an IKeyReference adapter for persistent objects.
17
17
  """
18
- from ZODB.interfaces import IConnection
19
- from ZODB.ConflictResolution import PersistentReference
20
18
  import zope.interface
19
+ from ZODB.ConflictResolution import PersistentReference
20
+ from ZODB.interfaces import IConnection
21
21
 
22
22
  import zope.keyreference.interfaces
23
23
 
24
24
 
25
25
  @zope.interface.implementer(zope.keyreference.interfaces.IKeyReference)
26
- class KeyReferenceToPersistent(object):
26
+ class KeyReferenceToPersistent:
27
27
  """An IKeyReference for persistent objects which is comparable.
28
28
 
29
29
  These references compare by database name and _p_oids of the objects they
@@ -143,7 +143,7 @@ def connectionOfPersistent(ob):
143
143
  # them unpickleable.
144
144
  try:
145
145
  import zope.app.keyreference
146
- except ImportError:
146
+ except ModuleNotFoundError:
147
147
  import sys
148
148
  from types import ModuleType as module
149
149
  z_a_k = module('zope.app.keyreference')
@@ -15,14 +15,15 @@
15
15
  Testing components.
16
16
  """
17
17
 
18
- import zope.interface
19
18
  import zope.component
19
+ import zope.interface
20
+
20
21
  import zope.keyreference.interfaces
21
22
 
22
23
 
23
24
  @zope.component.adapter(zope.interface.Interface)
24
25
  @zope.interface.implementer(zope.keyreference.interfaces.IKeyReference)
25
- class SimpleKeyReference(object):
26
+ class SimpleKeyReference:
26
27
  """An IReference for all objects. This implementation is *not*
27
28
  ZODB safe.
28
29
 
@@ -15,14 +15,13 @@
15
15
  """
16
16
  import doctest
17
17
  import unittest
18
- from zope.testing import renormalizing
19
18
 
20
19
 
21
- class MockDatabase(object):
20
+ class MockDatabase:
22
21
  database_name = ''
23
22
 
24
23
 
25
- class MockJar(object):
24
+ class MockJar:
26
25
 
27
26
  def __init__(self):
28
27
  self._db = MockDatabase()
@@ -31,7 +30,7 @@ class MockJar(object):
31
30
  return self._db
32
31
 
33
32
 
34
- class MockPersistent(object):
33
+ class MockPersistent:
35
34
  _p_oid = 1
36
35
  _p_jar = MockJar()
37
36
 
@@ -88,9 +87,9 @@ class TestKeyReferenceToPersistent(TestSimpleKeyReference):
88
87
  return KeyReferenceToPersistent(obj)
89
88
 
90
89
  def test_multi_databases(self):
91
- from ZODB.MappingStorage import DB
92
90
  import transaction
93
91
  from BTrees.OOBTree import OOBucket
92
+ from ZODB.MappingStorage import DB
94
93
 
95
94
  databases = {}
96
95
 
@@ -121,13 +120,11 @@ def test_suite():
121
120
  doctest_flags = (
122
121
  doctest.NORMALIZE_WHITESPACE
123
122
  | doctest.ELLIPSIS
124
- | renormalizing.IGNORE_EXCEPTION_MODULE_IN_PYTHON2
125
123
  )
126
124
  return unittest.TestSuite((
127
125
  doctest.DocFileSuite(
128
126
  'persistent.txt',
129
127
  optionflags=doctest_flags,
130
- checker=renormalizing.RENormalizing(),
131
128
  ),
132
129
  unittest.defaultTestLoader.loadTestsFromName(__name__),
133
130
  ))
@@ -1,37 +1,45 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zope.keyreference
3
- Version: 5.0.0.dev0
3
+ Version: 6.1
4
4
  Summary: Key References
5
5
  Home-page: https://github.com/zopefoundation/zope.keyreference
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
  Project-URL: Documentation, https://zopekeyreference.readthedocs.io/
10
10
  Keywords: zope3 key reference persistent
11
- Platform: UNKNOWN
12
11
  Classifier: Development Status :: 5 - Production/Stable
13
12
  Classifier: Environment :: Web Environment
14
13
  Classifier: Intended Audience :: Developers
15
14
  Classifier: License :: OSI Approved :: Zope Public License
16
15
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 2
18
- Classifier: Programming Language :: Python :: 2.7
19
16
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.5
21
- Classifier: Programming Language :: Python :: 3.6
22
- Classifier: Programming Language :: Python :: 3.7
23
- Classifier: Programming Language :: Python :: 3.8
24
17
  Classifier: Programming Language :: Python :: 3.9
25
18
  Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
26
22
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
23
  Classifier: Programming Language :: Python :: Implementation :: PyPy
28
24
  Classifier: Natural Language :: English
29
25
  Classifier: Operating System :: OS Independent
30
26
  Classifier: Topic :: Internet :: WWW/HTTP
31
27
  Classifier: Framework :: Zope :: 3
28
+ Requires-Python: >=3.9
29
+ License-File: LICENSE.txt
30
+ Requires-Dist: setuptools
31
+ Requires-Dist: ZODB
32
+ Requires-Dist: zope.component
33
+ Requires-Dist: zope.i18nmessageid
34
+ Requires-Dist: zope.interface
35
+ Requires-Dist: zope.schema
32
36
  Provides-Extra: test
37
+ Requires-Dist: zope.testing; extra == "test"
38
+ Requires-Dist: zope.testrunner; extra == "test"
33
39
  Provides-Extra: docs
34
- License-File: LICENSE.txt
40
+ Requires-Dist: repoze.sphinx.autointerface; extra == "docs"
41
+ Requires-Dist: sphinx_rtd_theme; extra == "docs"
42
+ Requires-Dist: Sphinx; extra == "docs"
35
43
 
36
44
  ===================
37
45
  zope.keyreference
@@ -66,7 +74,25 @@ Documentation can be found at https://zopekeyreference.readthedocs.io
66
74
  Changes
67
75
  =========
68
76
 
69
- 5.0.0 (unreleased)
77
+ 6.1 (2025-02-14)
78
+ ================
79
+
80
+ - Add support for Python 3.12, 3.13.
81
+
82
+ - Drop support for Python 3.7, 3.8.
83
+
84
+
85
+ 6.0 (2023-04-25)
86
+ ================
87
+
88
+ - Drop support for Python 2.7, 3.5, 3.6.
89
+
90
+ - Add support for Python 3.11.
91
+
92
+ - Make the tests compatible with ``zope.testing >= 5``.
93
+
94
+
95
+ 5.0.0 (2022-03-25)
70
96
  ==================
71
97
 
72
98
  - Remove ``__cmp__`` methods. Since the implementation of the rich
@@ -150,5 +176,3 @@ Documentation can be found at https://zopekeyreference.readthedocs.io
150
176
  ==================
151
177
 
152
178
  - Rename ``zope.app.keyreference`` to ``zope.keyreference``.
153
-
154
-
@@ -1,3 +1,5 @@
1
+ .pre-commit-config.yaml
2
+ .readthedocs.yaml
1
3
  CHANGES.rst
2
4
  CONTRIBUTING.md
3
5
  COPYRIGHT.txt
@@ -5,7 +7,7 @@ LICENSE.txt
5
7
  MANIFEST.in
6
8
  README.rst
7
9
  buildout.cfg
8
- doc-requirements.txt
10
+ pyproject.toml
9
11
  setup.cfg
10
12
  setup.py
11
13
  tox.ini
@@ -16,6 +18,7 @@ docs/conf.py
16
18
  docs/index.rst
17
19
  docs/persistent.rst
18
20
  docs/reference.rst
21
+ docs/requirements.txt
19
22
  src/zope/__init__.py
20
23
  src/zope.keyreference.egg-info/PKG-INFO
21
24
  src/zope.keyreference.egg-info/SOURCES.txt
@@ -0,0 +1,80 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
+ [tox]
4
+ minversion = 3.18
5
+ envlist =
6
+ release-check
7
+ lint
8
+ py39
9
+ py310
10
+ py311
11
+ py312
12
+ py313
13
+ pypy3
14
+ docs
15
+ coverage
16
+
17
+ [testenv]
18
+ usedevelop = true
19
+ package = wheel
20
+ wheel_build_env = .pkg
21
+ deps =
22
+ setuptools <= 75.6.0
23
+ commands =
24
+ zope-testrunner --test-path=src {posargs:-vc}
25
+ extras =
26
+ test
27
+
28
+ [testenv:setuptools-latest]
29
+ basepython = python3
30
+ deps =
31
+ git+https://github.com/pypa/setuptools.git\#egg=setuptools
32
+
33
+ [testenv:release-check]
34
+ description = ensure that the distribution is ready to release
35
+ basepython = python3
36
+ skip_install = true
37
+ deps =
38
+ setuptools <= 75.6.0
39
+ twine
40
+ build
41
+ check-manifest
42
+ check-python-versions >= 0.20.0
43
+ wheel
44
+ commands_pre =
45
+ commands =
46
+ check-manifest
47
+ check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
48
+ python -m build --sdist --no-isolation
49
+ twine check dist/*
50
+
51
+ [testenv:lint]
52
+ description = This env runs all linters configured in .pre-commit-config.yaml
53
+ basepython = python3
54
+ skip_install = true
55
+ deps =
56
+ pre-commit
57
+ commands_pre =
58
+ commands =
59
+ pre-commit run --all-files --show-diff-on-failure
60
+
61
+ [testenv:docs]
62
+ basepython = python3
63
+ skip_install = false
64
+ extras =
65
+ docs
66
+ commands_pre =
67
+ commands =
68
+ sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
69
+
70
+ [testenv:coverage]
71
+ basepython = python3
72
+ allowlist_externals =
73
+ mkdir
74
+ deps =
75
+ coverage[toml]
76
+ commands =
77
+ mkdir -p {toxinidir}/parts/htmlcov
78
+ coverage run -m zope.testrunner --test-path=src {posargs:-vc}
79
+ coverage html
80
+ coverage report
@@ -0,0 +1 @@
1
+ 6.1
@@ -1,16 +0,0 @@
1
- [bdist_wheel]
2
- universal = 1
3
-
4
- [flake8]
5
- doctests = 1
6
-
7
- [check-manifest]
8
- ignore =
9
- .editorconfig
10
- .meta.toml
11
- docs/_build/html/_sources/*
12
-
13
- [egg_info]
14
- tag_build =
15
- tag_date = 0
16
-
@@ -1,79 +0,0 @@
1
- # Generated from:
2
- # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
- [tox]
4
- minversion = 3.18
5
- envlist =
6
- lint
7
- py27
8
- py35
9
- py36
10
- py37
11
- py38
12
- py39
13
- py310
14
- pypy
15
- pypy3
16
- docs
17
- coverage
18
-
19
- [testenv]
20
- usedevelop = true
21
- deps =
22
- commands =
23
- zope-testrunner --test-path=src {posargs:-vc}
24
- extras =
25
- test
26
-
27
- [testenv:lint]
28
- basepython = python3
29
- skip_install = true
30
- deps =
31
- flake8
32
- check-manifest
33
- check-python-versions >= 0.19.1
34
- wheel
35
- commands =
36
- flake8 src setup.py
37
- check-manifest
38
- check-python-versions
39
-
40
- [testenv:docs]
41
- basepython = python3
42
- skip_install = false
43
- extras =
44
- docs
45
- commands_pre =
46
- commands =
47
- sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
48
-
49
- [testenv:coverage]
50
- basepython = python3
51
- allowlist_externals =
52
- mkdir
53
- deps =
54
- coverage
55
- coverage-python-version
56
- commands =
57
- mkdir -p {toxinidir}/parts/htmlcov
58
- coverage run -m zope.testrunner --test-path=src {posargs:-vc}
59
- coverage html
60
- coverage report -m --fail-under=100
61
-
62
- [coverage:run]
63
- branch = True
64
- plugins = coverage_python_version
65
- source = zope.keyreference
66
-
67
- [coverage:report]
68
- precision = 2
69
- exclude_lines =
70
- pragma: no cover
71
- pragma: nocover
72
- except ImportError:
73
- raise NotImplementedError
74
- if __name__ == '__main__':
75
- self.fail
76
- raise AssertionError
77
-
78
- [coverage:html]
79
- directory = parts/htmlcov
@@ -1 +0,0 @@
1
- 5.0.0.dev0
@@ -6,8 +6,8 @@ zope.interface
6
6
  zope.schema
7
7
 
8
8
  [docs]
9
- sphinx_rtd_theme
10
9
  repoze.sphinx.autointerface
10
+ sphinx_rtd_theme
11
11
  Sphinx
12
12
 
13
13
  [test]