Skip to content

Commit

Permalink
- Add preliminary support for Python 3.12b4
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Aug 1, 2023
1 parent 6f88781 commit d9c889f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
6.0 (unreleased)
================

- Add preliminary support for Python 3.12b4.

- Drop support for Python 2.7, 3.5, 3.6.


Expand Down
2 changes: 1 addition & 1 deletion src/ZODB/ConflictResolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class may have its own comparison, and we have no idea what it is.
class PersistentReference:

weak = False
oid = database_name = klass = None
oid = database_name = None

def __init__(self, data):
self.data = data
Expand Down
2 changes: 0 additions & 2 deletions src/ZODB/FileStorage/FileStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,6 @@ def _lookup_pos(self, oid):
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
Expand Down
2 changes: 1 addition & 1 deletion src/ZODB/tests/StorageTestBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _dostore(self, oid=None, revid=None, data=None,
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)
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ envlist =
py39
py310
py311
py312
pypy3
docs
coverage
Expand All @@ -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 =
Expand Down

0 comments on commit d9c889f

Please sign in to comment.