Commit 0632974d authored by Jens Vagelpohl's avatar Jens Vagelpohl Committed by GitHub

Merge pull request #388 from zopefoundation/config-with-pure-python-template-6f887812

parents 6f887812 d9c889f7
......@@ -27,6 +27,7 @@ jobs:
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.12.0-beta.4", "py312"]
- ["pypy-3.9", "pypy3"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
......
......@@ -2,12 +2,12 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = "pure-python"
commit-id = "b99ba750"
commit-id = "49beb029"
[python]
with-windows = true
with-pypy = true
with-future-python = false
with-future-python = true
with-docs = true
with-sphinx-doctests = false
with-macos = false
......
......@@ -5,6 +5,8 @@
6.0 (unreleased)
================
- Add preliminary support for Python 3.12b4.
- Drop support for Python 2.7, 3.5, 3.6.
......
......@@ -123,7 +123,7 @@ class IPersistentReference(zope.interface.Interface):
class PersistentReference:
weak = False
oid = database_name = klass = None
oid = database_name = None
def __init__(self, data):
self.data = data
......
......@@ -535,8 +535,6 @@ class FileStorage(
except TypeError:
raise TypeError("invalid oid {!r}".format(oid))
load = load_current # Keep load for now for old clients
def load(self, oid, version=''):
"""Return pickle data and serial number."""
assert not version
......
......@@ -150,7 +150,7 @@ class StorageTestBase(ZODB.tests.util.TestCase):
revid = ZERO
if data is None:
data = MinPO(7)
if type(data) == int:
if isinstance(data, int):
data = MinPO(data)
if not already_pickled:
data = zodb_pickle(data)
......
......@@ -9,6 +9,7 @@ envlist =
py39
py310
py311
py312
pypy3
docs
coverage
......@@ -18,9 +19,12 @@ envlist =
usedevelop = true
package = wheel
wheel_build_env = .pkg
pip_pre = py312: true
deps =
setenv =
ZOPE_INTERFACE_STRICT_IRO=1
py312: VIRTUALENV_PIP=23.1.2
py312: PIP_REQUIRE_VIRTUALENV=0
commands =
zope-testrunner --test-path=src -a 1000 {posargs:-vc}
extras =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment