Skip to content

Commit

Permalink
Merge pull request #97 from zopefoundation/config-with-pure-python-te…
Browse files Browse the repository at this point in the history
…mplate-e7051a16

Support Python 3.13
  • Loading branch information
tseaver authored May 18, 2024
2 parents abf6f26 + 4657f98 commit 9d27e16
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.12", "py312"]
- ["3.13", "py313"]
- ["pypy-3.10", "pypy3"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
Expand All @@ -41,6 +42,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config[0] }}
allow-prereleases: true
- name: Pip cache
uses: actions/cache@v4
with:
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 = "7713fd86"
commit-id = "e7051a16"

[python]
with-windows = false
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 @@
4.2 (unreleased)
================

- Add support for Python 3.13.


4.1 (2024-05-03)
================
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Operating System :: OS Independent',
Expand Down
15 changes: 13 additions & 2 deletions src/ZConfig/components/logger/tests/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,19 @@ def test_filehandler_reopen_thread_safety(self):
h = self.handler_factory(fn)

calls = []
h.acquire = lambda: calls.append("acquire")
h.release = lambda: calls.append("release")

class _LockMockup:
def acquire(*args, **kw):
calls.append("acquire")

__enter__ = acquire

def release(*args, **kw):
calls.append("release")

__exit__ = release

h.lock = _LockMockup()

h.reopen()
self.assertEqual(calls, ["acquire", "release"])
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ envlist =
py310
py311
py312
py313
pypy3
docs
coverage
Expand All @@ -19,6 +20,7 @@ envlist =
usedevelop = true
package = wheel
wheel_build_env = .pkg
pip_pre = py313: true
deps =
setenv =
py312: VIRTUALENV_PIP=23.1.2
Expand Down

0 comments on commit 9d27e16

Please sign in to comment.