Skip to content

Commit 34e31af

Browse files
authored
Allow to use the package with Python 3.13 (#265)
See #264.
1 parent c4adc51 commit 34e31af

File tree

5 files changed

+27
-14
lines changed

5 files changed

+27
-14
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
- ["3.9", "py39"]
2828
- ["3.10", "py310"]
2929
- ["3.11", "py311"]
30-
- ["3.12.0-rc.3", "py312"]
30+
- ["3.12", "py312"]
31+
- ["3.13.0-alpha - 3.13.0", "py313"]
3132
- ["3.9", "docs"]
3233
- ["3.9", "coverage"]
3334
- ["3.9", "py39-datetime"]

.meta.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
33
[meta]
44
template = "pure-python"
5-
commit-id = "b21fbbf2"
5+
commit-id = "13b9049c"
66

77
[python]
88
with-pypy = false

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Backwards incompatible changes
1212
Features
1313
++++++++
1414

15-
- Allow to use the package with Python 3.12 -- Caution: No security audit has
16-
been done so far.
15+
- Allow to use the package with Python 3.12 and 3.13 -- Caution: No security
16+
audit has been done so far.
1717

1818
Fixes
1919
+++++

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def read(*rnames):
6767
package_dir={'': 'src'},
6868
install_requires=[
6969
],
70-
python_requires=">=3.7, <3.13",
70+
python_requires=">=3.7, <3.14",
7171
tests_require=tests_require,
7272
extras_require={
7373
'test': tests_require,

tox.ini

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
[tox]
44
minversion = 3.18
55
envlist =
6+
release-check
67
lint
78
py37
89
py38
910
py39
1011
py310
1112
py311
1213
py312
14+
py313
1315
docs
1416
coverage
1517
py39-datetime
@@ -19,7 +21,7 @@ envlist =
1921
usedevelop = true
2022
package = wheel
2123
wheel_build_env = .pkg
22-
pip_pre = py312: true
24+
pip_pre = py313: true
2325
deps =
2426
datetime: DateTime
2527
-cconstraints.txt
@@ -53,21 +55,31 @@ commands =
5355
coverage html
5456
coverage report -m --fail-under=100
5557
depends = py37,py38,py39,py39-datetime,py310,py311,py312coverage
56-
57-
[testenv:lint]
58+
[testenv:release-check]
59+
description = ensure that the distribution is ready to release
5860
basepython = python3
5961
skip_install = true
62+
deps =
63+
twine
64+
build
65+
check-manifest
66+
check-python-versions >= 0.20.0
67+
wheel
6068
commands =
61-
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py {toxinidir}/tests
62-
flake8 src setup.py tests
6369
check-manifest
6470
check-python-versions
71+
python -m build --sdist --no-isolation
72+
twine check dist/*
73+
74+
[testenv:lint]
75+
basepython = python3
76+
skip_install = true
6577
deps =
66-
check-manifest
67-
check-python-versions >= 0.19.1
68-
wheel
69-
flake8
7078
isort
79+
flake8
80+
commands =
81+
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py {toxinidir}/tests
82+
flake8 src setup.py tests
7183

7284
[testenv:isort-apply]
7385
basepython = python3

0 commit comments

Comments
 (0)