Skip to content

Commit

Permalink
Allow to use the package with Python 3.13
Browse files Browse the repository at this point in the history
See #264.
  • Loading branch information
icemac committed Oct 20, 2023
1 parent c4adc51 commit d569319
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.12.0-rc.3", "py312"]
- ["3.12", "py312"]
- ["3.13.0-alpha - 3.13.0", "py313"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
- ["3.9", "py39-datetime"]
Expand Down
2 changes: 1 addition & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = "pure-python"
commit-id = "b21fbbf2"
commit-id = "13b9049c"

[python]
with-pypy = false
Expand Down
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Backwards incompatible changes
Features
++++++++

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

Fixes
+++++
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def read(*rnames):
package_dir={'': 'src'},
install_requires=[
],
python_requires=">=3.7, <3.13",
python_requires=">=3.7, <3.14",
tests_require=tests_require,
extras_require={
'test': tests_require,
Expand Down
30 changes: 21 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
[tox]
minversion = 3.18
envlist =
release-check
lint
py37
py38
py39
py310
py311
py312
py313
docs
coverage
py39-datetime
Expand All @@ -19,7 +21,7 @@ envlist =
usedevelop = true
package = wheel
wheel_build_env = .pkg
pip_pre = py312: true
pip_pre = py313: true
deps =
datetime: DateTime
-cconstraints.txt
Expand Down Expand Up @@ -53,21 +55,31 @@ commands =
coverage html
coverage report -m --fail-under=100
depends = py37,py38,py39,py39-datetime,py310,py311,py312coverage

[testenv:lint]
[testenv:release-check]
description = ensure that the distribution is ready to release
basepython = python3
skip_install = true
deps =
twine
build
check-manifest
check-python-versions >= 0.20.0
wheel
commands =
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py {toxinidir}/tests
flake8 src setup.py tests
check-manifest
check-python-versions
python -m build --sdist --no-isolation
twine check dist/*

[testenv:lint]
basepython = python3
skip_install = true
deps =
check-manifest
check-python-versions >= 0.19.1
wheel
flake8
isort
flake8
commands =
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py {toxinidir}/tests
flake8 src setup.py tests

[testenv:isort-apply]
basepython = python3
Expand Down

0 comments on commit d569319

Please sign in to comment.