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