ZEO 6.2__tar.gz → 6.3__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 (132) hide show
  1. {zeo-6.2 → zeo-6.3}/.pre-commit-config.yaml +14 -1
  2. {zeo-6.2 → zeo-6.3}/CHANGES.rst +14 -0
  3. zeo-6.3/COPYRIGHT.txt +1 -0
  4. {zeo-6.2 → zeo-6.3}/PKG-INFO +19 -3
  5. {zeo-6.2 → zeo-6.3}/docs/client-cache.rst +2 -2
  6. {zeo-6.2 → zeo-6.3}/docs/requirements.txt +1 -1
  7. {zeo-6.2 → zeo-6.3}/docs/server.rst +0 -2
  8. {zeo-6.2 → zeo-6.3}/pyproject.toml +10 -5
  9. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/client.py +3 -3
  10. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/futures.py +1 -2
  11. {zeo-6.2 → zeo-6.3}/src/ZEO/cache.py +3 -5
  12. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/cache_simul.py +3 -2
  13. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/cache_stats.py +2 -1
  14. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEO.py +13 -0
  15. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_cache.py +65 -8
  16. {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/PKG-INFO +19 -3
  17. {zeo-6.2 → zeo-6.3}/tox.ini +4 -4
  18. zeo-6.2/COPYRIGHT.txt +0 -1
  19. {zeo-6.2 → zeo-6.3}/.readthedocs.yaml +0 -0
  20. {zeo-6.2 → zeo-6.3}/CONTRIBUTING.md +0 -0
  21. {zeo-6.2 → zeo-6.3}/COPYING +0 -0
  22. {zeo-6.2 → zeo-6.3}/LICENSE.txt +0 -0
  23. {zeo-6.2 → zeo-6.3}/MANIFEST.in +0 -0
  24. {zeo-6.2 → zeo-6.3}/README.rst +0 -0
  25. {zeo-6.2 → zeo-6.3}/buildout.cfg +0 -0
  26. {zeo-6.2 → zeo-6.3}/docs/blob-nfs.rst +0 -0
  27. {zeo-6.2 → zeo-6.3}/docs/changelog.rst +0 -0
  28. {zeo-6.2 → zeo-6.3}/docs/client-cache-tracing.rst +0 -0
  29. {zeo-6.2 → zeo-6.3}/docs/clients.rst +0 -0
  30. {zeo-6.2 → zeo-6.3}/docs/conf.py +0 -0
  31. {zeo-6.2 → zeo-6.3}/docs/index.rst +0 -0
  32. {zeo-6.2 → zeo-6.3}/docs/introduction.rst +0 -0
  33. {zeo-6.2 → zeo-6.3}/docs/nagios.rst +0 -0
  34. {zeo-6.2 → zeo-6.3}/docs/ordering.rst +0 -0
  35. {zeo-6.2 → zeo-6.3}/docs/protocol.rst +0 -0
  36. {zeo-6.2 → zeo-6.3}/docs/reference.rst +0 -0
  37. {zeo-6.2 → zeo-6.3}/log.ini +0 -0
  38. {zeo-6.2 → zeo-6.3}/perf.py +0 -0
  39. {zeo-6.2 → zeo-6.3}/setup.cfg +0 -0
  40. {zeo-6.2 → zeo-6.3}/setup.py +0 -0
  41. {zeo-6.2 → zeo-6.3}/src/ZEO/ClientStorage.py +0 -0
  42. {zeo-6.2 → zeo-6.3}/src/ZEO/Exceptions.py +0 -0
  43. {zeo-6.2 → zeo-6.3}/src/ZEO/StorageServer.py +0 -0
  44. {zeo-6.2 → zeo-6.3}/src/ZEO/TransactionBuffer.py +0 -0
  45. {zeo-6.2 → zeo-6.3}/src/ZEO/__init__.py +0 -0
  46. {zeo-6.2 → zeo-6.3}/src/ZEO/_compat.py +0 -0
  47. {zeo-6.2 → zeo-6.3}/src/ZEO/_forker.py +0 -0
  48. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/README.rst +0 -0
  49. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/__init__.py +0 -0
  50. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/_futures.pyx +0 -0
  51. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/_smp.pyx +0 -0
  52. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/base.py +0 -0
  53. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/compat.py +0 -0
  54. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/marshal.py +0 -0
  55. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/server.py +0 -0
  56. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/smp.py +0 -0
  57. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/testing.py +0 -0
  58. {zeo-6.2 → zeo-6.3}/src/ZEO/asyncio/tests.py +0 -0
  59. {zeo-6.2 → zeo-6.3}/src/ZEO/component.xml +0 -0
  60. {zeo-6.2 → zeo-6.3}/src/ZEO/interfaces.py +0 -0
  61. {zeo-6.2 → zeo-6.3}/src/ZEO/monitor.py +0 -0
  62. {zeo-6.2 → zeo-6.3}/src/ZEO/nagios.py +0 -0
  63. {zeo-6.2 → zeo-6.3}/src/ZEO/nagios.rst +0 -0
  64. {zeo-6.2 → zeo-6.3}/src/ZEO/runzeo.py +0 -0
  65. {zeo-6.2 → zeo-6.3}/src/ZEO/schema.xml +0 -0
  66. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/README.txt +0 -0
  67. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/__init__.py +0 -0
  68. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/parsezeolog.py +0 -0
  69. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/tests.py +0 -0
  70. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/timeout.py +0 -0
  71. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeopack.py +0 -0
  72. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeopack.test +0 -0
  73. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoqueue.py +0 -0
  74. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoreplay.py +0 -0
  75. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoserverlog.py +0 -0
  76. {zeo-6.2 → zeo-6.3}/src/ZEO/scripts/zeoup.py +0 -0
  77. {zeo-6.2 → zeo-6.3}/src/ZEO/server.xml +0 -0
  78. {zeo-6.2 → zeo-6.3}/src/ZEO/shortrepr.py +0 -0
  79. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/Cache.py +0 -0
  80. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/CommitLockTests.py +0 -0
  81. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/ConnectionTests.py +0 -0
  82. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/InvalidationTests.py +0 -0
  83. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/IterationTests.py +0 -0
  84. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/TestThread.py +0 -0
  85. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/ThreadTests.py +0 -0
  86. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/__init__.py +0 -0
  87. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/client-config.test +0 -0
  88. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/client.pem +0 -0
  89. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/client_key.pem +0 -0
  90. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/component.xml +0 -0
  91. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/drop_cache_rather_than_verify.txt +0 -0
  92. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/dynamic_server_ports.test +0 -0
  93. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/forker.py +0 -0
  94. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/invalidation-age.txt +0 -0
  95. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/new_addr.test +0 -0
  96. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/protocols.test +0 -0
  97. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/racetest.py +0 -0
  98. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/server.pem +0 -0
  99. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/server.pem.csr +0 -0
  100. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/server_key.pem +0 -0
  101. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/serverpw.pem +0 -0
  102. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/serverpw_key.pem +0 -0
  103. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/servertesting.py +0 -0
  104. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/speed.py +0 -0
  105. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/stress.py +0 -0
  106. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testConfig.py +0 -0
  107. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testConnection.py +0 -0
  108. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testConversionSupport.py +0 -0
  109. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testTransactionBuffer.py +0 -0
  110. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEO2.py +0 -0
  111. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEOOptions.py +0 -0
  112. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testZEOServer.py +0 -0
  113. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_client_credentials.py +0 -0
  114. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_client_side_conflict_resolution.py +0 -0
  115. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_marshal.py +0 -0
  116. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/test_sync.py +0 -0
  117. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/testssl.py +0 -0
  118. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/threaded.py +0 -0
  119. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/utils.py +0 -0
  120. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/zdoptions.test +0 -0
  121. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/zeo-fan-out.test +0 -0
  122. {zeo-6.2 → zeo-6.3}/src/ZEO/tests/zeo_blob_cache.test +0 -0
  123. {zeo-6.2 → zeo-6.3}/src/ZEO/util.py +0 -0
  124. {zeo-6.2 → zeo-6.3}/src/ZEO/version.txt +0 -0
  125. {zeo-6.2 → zeo-6.3}/src/ZEO/zconfig.py +0 -0
  126. {zeo-6.2 → zeo-6.3}/src/ZEO/zeoctl.py +0 -0
  127. {zeo-6.2 → zeo-6.3}/src/ZEO/zeoctl.xml +0 -0
  128. {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/SOURCES.txt +0 -0
  129. {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/dependency_links.txt +0 -0
  130. {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/entry_points.txt +0 -0
  131. {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/requires.txt +0 -0
  132. {zeo-6.2 → zeo-6.3}/src/ZEO.egg-info/top_level.txt +0 -0
@@ -2,6 +2,15 @@
2
2
  # https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
3
3
  minimum_pre_commit_version: '3.6'
4
4
  repos:
5
+ - repo: https://github.com/pre-commit/pre-commit-hooks
6
+ rev: v6.0.0
7
+ hooks:
8
+ - id: check-case-conflict
9
+ - id: check-merge-conflict
10
+ - id: check-toml
11
+ - id: check-yaml
12
+ - id: end-of-file-fixer
13
+ - id: trailing-whitespace
5
14
  - repo: https://github.com/pycqa/isort
6
15
  rev: "8.0.1"
7
16
  hooks:
@@ -15,7 +24,7 @@ repos:
15
24
  rev: v3.21.2
16
25
  hooks:
17
26
  - id: pyupgrade
18
- args: [--py310-plus]
27
+ args: [--py311-plus]
19
28
  - repo: https://github.com/isidentical/teyit
20
29
  rev: 0.4.3
21
30
  hooks:
@@ -27,3 +36,7 @@ repos:
27
36
  - id: flake8
28
37
  additional_dependencies:
29
38
  - flake8-debugger == 4.1.2
39
+ - repo: https://github.com/sphinx-contrib/sphinx-lint
40
+ rev: v1.0.2
41
+ hooks:
42
+ - id: sphinx-lint
@@ -1,6 +1,20 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 6.3 (2026-11-28)
5
+ ----------------
6
+
7
+ - Switch to PyPI Trusted Publishing.
8
+
9
+ - Fix ``KeyError`` in ``ClientCache._makeroom`` after an invalidation with
10
+ the current tid
11
+ (`issue 254 <https://github.com/zopefoundation/ZEO/issues/254>`_).
12
+
13
+ - Add support for Python 3.15.
14
+
15
+ - Drop support for Python 3.10.
16
+
17
+
4
18
  6.2 (2026-04-13)
5
19
  ----------------
6
20
 
zeo-6.3/COPYRIGHT.txt ADDED
@@ -0,0 +1 @@
1
+ Zope Foundation and Contributors
@@ -1,6 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ZEO
3
- Version: 6.2
3
+ Version: 6.3
4
+ Summary: Single-server client-server database server for ZODB
4
5
  Author-email: Zope Foundation and contributors <zodb@googlegroups.com>
5
6
  Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
6
7
  License-Expression: ZPL-2.1
@@ -9,13 +10,14 @@ Project-URL: Source, https://github.com/zopefoundation/ZEO
9
10
  Project-URL: Issues, https://github.com/zopefoundation/ZEO/issues
10
11
  Project-URL: Changelog, https://raw.githubusercontent.com/zopefoundation/ZEO/master/CHANGES.rst
11
12
  Keywords: database,zodb
13
+ Classifier: Development Status :: 5 - Production/Stable
12
14
  Classifier: Intended Audience :: Developers
13
15
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.10
15
16
  Classifier: Programming Language :: Python :: 3.11
16
17
  Classifier: Programming Language :: Python :: 3.12
17
18
  Classifier: Programming Language :: Python :: 3.13
18
19
  Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Programming Language :: Python :: 3.15
19
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
20
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
21
23
  Classifier: Topic :: Database
@@ -23,7 +25,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
25
  Classifier: Operating System :: Microsoft :: Windows
24
26
  Classifier: Operating System :: Unix
25
27
  Classifier: Framework :: ZODB
26
- Requires-Python: >=3.10
28
+ Requires-Python: >=3.11
27
29
  Description-Content-Type: text/x-rst
28
30
  License-File: LICENSE.txt
29
31
  License-File: COPYING
@@ -78,6 +80,20 @@ The documentation is available on `readthedocs <http://zeo.readthedocs.io/en/lat
78
80
  Changelog
79
81
  =========
80
82
 
83
+ 6.3 (2026-11-28)
84
+ ----------------
85
+
86
+ - Switch to PyPI Trusted Publishing.
87
+
88
+ - Fix ``KeyError`` in ``ClientCache._makeroom`` after an invalidation with
89
+ the current tid
90
+ (`issue 254 <https://github.com/zopefoundation/ZEO/issues/254>`_).
91
+
92
+ - Add support for Python 3.15.
93
+
94
+ - Drop support for Python 3.10.
95
+
96
+
81
97
  6.2 (2026-04-13)
82
98
  ----------------
83
99
 
@@ -7,8 +7,8 @@ client cache allows reads to be done from local disk rather than by remote
7
7
  access to the storage server.
8
8
 
9
9
  The cache may be persistent or transient. If the cache is persistent, then
10
- the cache file is retained for use after process restarts. A non-
11
- persistent cache uses a temporary file.
10
+ the cache file is retained for use after process restarts. A
11
+ non-persistent cache uses a temporary file.
12
12
 
13
13
  The client cache is managed in a single file, of the specified size.
14
14
 
@@ -1,3 +1,3 @@
1
1
  Sphinx
2
2
  repoze.sphinx.autointerface
3
- sphinx_rtd_theme > 1
3
+ sphinx_rtd_theme > 1
@@ -230,5 +230,3 @@ should first rename the log file and then send the signal to the
230
230
  server. The server will continue writing to the renamed log file
231
231
  until it receives the signal. After it receives the signal, the
232
232
  server will create a new file with the old name and write to it.
233
-
234
-
@@ -2,24 +2,25 @@
2
2
  # https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
3
3
  [build-system]
4
4
  requires = [
5
- "setuptools >= 78.1.1,< 81",
5
+ "setuptools >= 78.1.1,< 82",
6
6
  "wheel",
7
7
  ]
8
8
  build-backend = "setuptools.build_meta"
9
9
 
10
-
11
10
  [project]
12
11
  name = "ZEO"
13
- version = "6.2"
12
+ version = "6.3"
13
+ description = "Single-server client-server database server for ZODB"
14
14
  license = "ZPL-2.1"
15
15
  classifiers = [
16
+ "Development Status :: 5 - Production/Stable",
16
17
  "Intended Audience :: Developers",
17
18
  "Programming Language :: Python :: 3",
18
- "Programming Language :: Python :: 3.10",
19
19
  "Programming Language :: Python :: 3.11",
20
20
  "Programming Language :: Python :: 3.12",
21
21
  "Programming Language :: Python :: 3.13",
22
22
  "Programming Language :: Python :: 3.14",
23
+ "Programming Language :: Python :: 3.15",
23
24
  "Programming Language :: Python :: Implementation :: CPython",
24
25
  "Programming Language :: Python :: Implementation :: PyPy",
25
26
  "Topic :: Database",
@@ -29,7 +30,7 @@ classifiers = [
29
30
  "Framework :: ZODB",
30
31
  ]
31
32
  dynamic = ["readme"]
32
- requires-python = ">=3.10"
33
+ requires-python = ">=3.11"
33
34
  authors = [
34
35
  {name = "Zope Foundation and contributors",email = "zodb@googlegroups.com"},
35
36
  ]
@@ -104,3 +105,7 @@ directory = "parts/htmlcov"
104
105
  [tool.setuptools.dynamic]
105
106
  readme = {file = ["README.rst", "CHANGES.rst"]}
106
107
 
108
+ [tool.zest-releaser]
109
+ create-wheel = false
110
+ extra-message = ""
111
+ upload-pypi = false
@@ -701,7 +701,7 @@ class ClientIO:
701
701
 
702
702
  try:
703
703
  await await_with_timeout(self.connected, timeout, self.loop)
704
- except asyncio.TimeoutError:
704
+ except TimeoutError:
705
705
  raise ClientDisconnected("timed out waiting for connection")
706
706
  except asyncio.CancelledError:
707
707
  raise ClientDisconnected("connection cancelled")
@@ -727,7 +727,7 @@ class ClientIO:
727
727
  closing = self.close()
728
728
  try:
729
729
  await await_with_timeout(closing, 10, self.loop)
730
- except asyncio.TimeoutError:
730
+ except TimeoutError:
731
731
  from pprint import pformat
732
732
  info = {"client": pformat(vars(self))}
733
733
  if self.protocol is not None:
@@ -1091,6 +1091,6 @@ async def await_with_timeout(f, timeout, loop):
1091
1091
  return f.result()
1092
1092
  else:
1093
1093
  f.remove_done_callback(stop)
1094
- raise asyncio.TimeoutError
1094
+ raise TimeoutError
1095
1095
  finally:
1096
1096
  handle.cancel()
@@ -13,7 +13,6 @@ know the coroutine run by the task, it is safer to use
13
13
  a standard ``asyncio.Task``.
14
14
  """
15
15
 
16
- import asyncio
17
16
  from asyncio import CancelledError
18
17
  from asyncio import InvalidStateError
19
18
  from asyncio import get_event_loop
@@ -192,7 +191,7 @@ class ConcurrentFuture(Future):
192
191
  concurrent.futures.TimeoutError, which is raised for uniformity.
193
192
  """
194
193
  if not self.completed.wait(timeout):
195
- raise asyncio.TimeoutError()
194
+ raise TimeoutError()
196
195
  return Future.result(self)
197
196
 
198
197
 
@@ -724,17 +724,15 @@ class ClientCache:
724
724
  assert saved_oid == oid, (ofs, self.f.tell(), oid, saved_oid)
725
725
  assert end_tid == z64, (ofs, self.f.tell(), oid)
726
726
  del self.current[oid]
727
- if tid is None:
727
+ # Same tid: the oid was stored twice in one transaction, and a
728
+ # record cannot be current and invalid from the same tid.
729
+ if tid is None or tid == saved_tid:
728
730
  self.f.seek(ofs)
729
731
  self.f.write(b'f' + pack(">I", size))
730
732
  # 0x1E = invalidate (hit, discarding current or non-current)
731
733
  self._trace(0x1E, oid, tid)
732
734
  self._len -= 1
733
735
  else:
734
- if tid == saved_tid:
735
- logger.warning(
736
- "Ignoring invalidation with same tid as current")
737
- return
738
736
  self.f.seek(ofs + 21)
739
737
  self.f.write(tid)
740
738
  self._set_noncurrent(oid, saved_tid, ofs)
@@ -412,8 +412,9 @@ class CircularCacheSimulation(Simulation):
412
412
  self.invals += 1
413
413
  self.total_invals += 1
414
414
  del self.current[oid]
415
- if tid == z64:
416
- # Startup cache verification: forget this oid entirely.
415
+ if tid == z64 or tid == cur_tid:
416
+ # Startup cache verification, or the oid was stored twice in one
417
+ # transaction: forget this oid entirely, as the cache does.
417
418
  self._remove(oid, cur_tid)
418
419
  return
419
420
 
@@ -381,7 +381,8 @@ explain = {
381
381
  0x10: "invalidate (miss)",
382
382
  0x1A: "invalidate (hit, version)",
383
383
  0x1C: "invalidate (hit, saving non-current)",
384
- # 0x1E can occur during startup verification.
384
+ # 0x1E can occur during startup verification, and when an object is
385
+ # stored twice in one transaction.
385
386
  0x1E: "invalidate (hit, discarding current or non-current)",
386
387
 
387
388
  0x20: "load (miss)",
@@ -210,6 +210,19 @@ class MiscZEOTests:
210
210
  obj = MinPO("X" * (10 * 128 * 1024))
211
211
  self._dostore(data=obj)
212
212
 
213
+ def checkStoreTwiceInOneTransaction(self):
214
+ """The cache keeps the last data stored in a transaction (#254)."""
215
+ oid = self._storage.new_oid()
216
+ t = TransactionMetaData()
217
+ self._storage.tpc_begin(t)
218
+ self._storage.store(oid, z64, b'first', '', t)
219
+ self._storage.store(oid, z64, b'second', '', t)
220
+ self._storage.tpc_vote(t)
221
+ tid = self._storage.tpc_finish(t)
222
+ cache = self._storage._cache
223
+ self.assertEqual(len(cache), 1)
224
+ self.assertEqual(cache.load(oid), (b'second', tid))
225
+
213
226
  def checkZEOInvalidation(self):
214
227
  storage2 = self._new_storage_client()
215
228
  try:
@@ -114,6 +114,30 @@ class CacheTests(ZODB.tests.util.TestCase):
114
114
  self.assertEqual(self.cache.loadBefore(n1, n4),
115
115
  (data1, n3, n4))
116
116
 
117
+ def testInvalidateSameTid(self):
118
+ """Invalidating with the current tid drops the record (#254)."""
119
+ self.cache.store(n1, n3, None, b"first data for n1")
120
+ self.cache.invalidate(n1, n3)
121
+ self.assertEqual(self.cache.load(n1), None)
122
+ self.assertEqual(self.cache.loadBefore(n1, n5), None)
123
+ self.assertEqual(len(self.cache), 0)
124
+ # The next store with the same tid wins.
125
+ self.cache.store(n1, n3, None, b"second data for n1")
126
+ self.assertEqual(self.cache.load(n1), (b"second data for n1", n3))
127
+
128
+ def testInvalidateSameTidThenEvict(self):
129
+ """Evicting after an invalidation with the current tid works (#254)."""
130
+ cache = ZEO.cache.ClientCache(None, 200000)
131
+ self.addCleanup(cache.close)
132
+ cache.store(n1, n3, None, b"x" * 1000)
133
+ cache.setLastTid(n3)
134
+ cache.invalidate(n1, n3)
135
+ # Fill the cache until the first record is evicted.
136
+ for i in range(2, 2000):
137
+ cache.store(p64(i), n4, None, b"y" * 1000)
138
+ self.assertGreater(cache.getStats()[2], 0) # evictions
139
+ self.assertEqual(cache.load(n1), None)
140
+
117
141
  def testNonCurrent(self):
118
142
  data1 = b"data for n1"
119
143
  data2 = b"data for n2"
@@ -1043,22 +1067,55 @@ Now try to do simulation:
1043
1067
  """
1044
1068
 
1045
1069
 
1070
+ def cache_tools_handle_invalidation_with_current_tid():
1071
+ r"""
1072
+ The trace tools handle the 0x1E record written when an object is stored
1073
+ twice in one transaction.
1074
+
1075
+ >>> os.environ["ZEO_CACHE_TRACE"] = 'yes'
1076
+ >>> cache = ZEO.cache.ClientCache('cache', 1<<21)
1077
+ >>> cache.store(p64(1), p64(1), None, b'x' * 500)
1078
+ >>> cache.invalidate(p64(1), p64(1))
1079
+ >>> cache.store(p64(1), p64(1), None, b'x' * 600)
1080
+ >>> cache.close()
1081
+ >>> del os.environ["ZEO_CACHE_TRACE"]
1082
+
1083
+ >>> import ZEO.scripts.cache_simul, ZEO.scripts.cache_stats
1084
+ >>> ZEO.scripts.cache_simul.main('-s 1 cache.trace'.split())
1085
+ ... # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
1086
+ CircularCacheSimulation, cache size 1,048,576 bytes
1087
+ START TIME DUR. LOADS HITS INVALS WRITES HITRATE EVICTS INUSE
1088
+ ... 0 0 1 2 n/a 0 0.1
1089
+ --------------------------------------------------------------------------
1090
+ ... 0 0 1 2 n/a 0 0.1
1091
+ >>> ZEO.scripts.cache_stats.main('-q cache.trace'.split())
1092
+ ... # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
1093
+ loads hits inv(h) writes hitrate
1094
+ ...
1095
+ Count Code Function (action)
1096
+ 1 00 _setup_trace (initialization)
1097
+ 1 1e invalidate (hit, discarding current or non-current)
1098
+ 2 52 store (current, non-version)
1099
+ """
1100
+
1101
+
1046
1102
  def invalidations_with_current_tid_dont_wreck_cache():
1047
1103
  """
1104
+ An invalidation with the current tid drops the record, and the cache
1105
+ can still evict and reopen afterwards.
1106
+
1048
1107
  >>> cache = ZEO.cache.ClientCache('cache', 1000)
1049
1108
  >>> cache.store(p64(1), p64(1), None, b'data')
1050
- >>> import logging, sys
1051
- >>> handler = logging.StreamHandler(sys.stdout)
1052
- >>> logging.getLogger().addHandler(handler)
1053
- >>> old_level = logging.getLogger().getEffectiveLevel()
1054
- >>> logging.getLogger().setLevel(logging.WARNING)
1055
1109
  >>> cache.invalidate(p64(1), p64(1))
1056
- Ignoring invalidation with same tid as current
1110
+ >>> cache.load(p64(1))
1111
+ >>> len(cache)
1112
+ 0
1113
+ >>> for i in range(2, 40): # let the cache go around many times
1114
+ ... cache.store(p64(i), p64(1), None, b'x' * 100)
1115
+ >>> cache.load(p64(1))
1057
1116
  >>> cache.close()
1058
1117
  >>> cache = ZEO.cache.ClientCache('cache', 1000)
1059
1118
  >>> cache.close()
1060
- >>> logging.getLogger().removeHandler(handler)
1061
- >>> logging.getLogger().setLevel(old_level)
1062
1119
  """
1063
1120
 
1064
1121
 
@@ -1,6 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ZEO
3
- Version: 6.2
3
+ Version: 6.3
4
+ Summary: Single-server client-server database server for ZODB
4
5
  Author-email: Zope Foundation and contributors <zodb@googlegroups.com>
5
6
  Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
6
7
  License-Expression: ZPL-2.1
@@ -9,13 +10,14 @@ Project-URL: Source, https://github.com/zopefoundation/ZEO
9
10
  Project-URL: Issues, https://github.com/zopefoundation/ZEO/issues
10
11
  Project-URL: Changelog, https://raw.githubusercontent.com/zopefoundation/ZEO/master/CHANGES.rst
11
12
  Keywords: database,zodb
13
+ Classifier: Development Status :: 5 - Production/Stable
12
14
  Classifier: Intended Audience :: Developers
13
15
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.10
15
16
  Classifier: Programming Language :: Python :: 3.11
16
17
  Classifier: Programming Language :: Python :: 3.12
17
18
  Classifier: Programming Language :: Python :: 3.13
18
19
  Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Programming Language :: Python :: 3.15
19
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
20
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
21
23
  Classifier: Topic :: Database
@@ -23,7 +25,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
25
  Classifier: Operating System :: Microsoft :: Windows
24
26
  Classifier: Operating System :: Unix
25
27
  Classifier: Framework :: ZODB
26
- Requires-Python: >=3.10
28
+ Requires-Python: >=3.11
27
29
  Description-Content-Type: text/x-rst
28
30
  License-File: LICENSE.txt
29
31
  License-File: COPYING
@@ -78,6 +80,20 @@ The documentation is available on `readthedocs <http://zeo.readthedocs.io/en/lat
78
80
  Changelog
79
81
  =========
80
82
 
83
+ 6.3 (2026-11-28)
84
+ ----------------
85
+
86
+ - Switch to PyPI Trusted Publishing.
87
+
88
+ - Fix ``KeyError`` in ``ClientCache._makeroom`` after an invalidation with
89
+ the current tid
90
+ (`issue 254 <https://github.com/zopefoundation/ZEO/issues/254>`_).
91
+
92
+ - Add support for Python 3.15.
93
+
94
+ - Drop support for Python 3.10.
95
+
96
+
81
97
  6.2 (2026-04-13)
82
98
  ----------------
83
99
 
@@ -5,11 +5,11 @@ minversion = 3.18
5
5
  envlist =
6
6
  release-check
7
7
  lint
8
- py310
9
8
  py311
10
9
  py312
11
10
  py313
12
11
  py314
12
+ py315
13
13
  pypy3
14
14
  docs
15
15
  coverage
@@ -19,7 +19,7 @@ usedevelop = true
19
19
  package = wheel
20
20
  wheel_build_env = .pkg
21
21
  deps =
22
- setuptools >= 78.1.1,< 81
22
+ setuptools >= 78.1.1,< 82
23
23
  !zodbmaster: ZODB >= 4.2.0b1
24
24
  zodbmaster: git+https://github.com/zopefoundation/ZODB.git@master\#egg=ZODB
25
25
  uvloop: uvloop
@@ -46,12 +46,12 @@ description = ensure that the distribution is ready to release
46
46
  basepython = python3
47
47
  skip_install = true
48
48
  deps =
49
- setuptools >= 78.1.1,< 81
49
+ setuptools >= 78.1.1,< 82
50
50
  wheel
51
51
  twine
52
52
  build
53
53
  check-manifest
54
- check-python-versions >= 0.20.0
54
+ check-python-versions >= 0.24.2
55
55
  wheel
56
56
  commands_pre =
57
57
  commands =
zeo-6.2/COPYRIGHT.txt DELETED
@@ -1 +0,0 @@
1
- Zope Foundation and Contributors
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
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
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
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
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
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