Skip to content

Commit d53bac4

Browse files
authored
Update Python version support. (#69)
* Drop support for Python 3.9. * Add support for Python 3.14. * Configuring for zope-product * Update Python version support.
1 parent b8f078c commit d53bac4

File tree

9 files changed

+28
-26
lines changed

9 files changed

+28
-26
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
33
#
44
# EditorConfig Configuration file, for more details see:
5-
# http://EditorConfig.org
5+
# https://EditorConfig.org
66
# EditorConfig is a convention description, that could be interpreted
77
# by multiple editors to enforce common coding conventions for specific
88
# file types
@@ -12,7 +12,7 @@
1212
root = true
1313

1414

15-
[*] # For All Files
15+
[*]
1616
# Unix-style newlines with a newline ending every file
1717
end_of_line = lf
1818
insert_final_newline = true

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
name: linting
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-python@v5
24+
- uses: actions/checkout@v6
25+
- uses: actions/setup-python@v6
2626
with:
27-
python-version: 3.x
27+
python-version: '3.13'
2828
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd #v3.0.1
2929
with:
3030
extra_args: --all-files --show-diff-on-failure

.github/workflows/tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
config:
2626
# [Python version, tox env]
2727
- ["3.11", "release-check"]
28-
- ["3.9", "py39"]
2928
- ["3.10", "py310"]
3029
- ["3.11", "py311"]
3130
- ["3.12", "py312"]
3231
- ["3.13", "py313"]
3332
- ["3.14", "py314"]
34-
- ["pypy-3.10", "pypy3"]
33+
- ["3.15", "py315"]
34+
- ["pypy-3.11", "pypy3"]
3535
- ["3.11", "coverage"]
3636
exclude:
3737
- { os: ["windows", "windows-latest"], config: ["3.11", "release-check"] }
@@ -41,17 +41,18 @@ jobs:
4141
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
4242
name: ${{ matrix.os[0] }}-${{ matrix.config[1] }}
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v6
4545
with:
4646
persist-credentials: false
4747
- name: Install uv + caching
48-
uses: astral-sh/setup-uv@v5
48+
# astral/setup-uv@7.1.3
49+
uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3
4950
with:
5051
enable-cache: true
5152
cache-dependency-glob: |
5253
setup.*
5354
tox.ini
54-
python-version: ${{ matrix.matrix.config[0] }}
55+
python-version: ${{ matrix.config[0] }}
5556
github-token: ${{ secrets.GITHUB_TOKEN }}
5657
- name: Test
5758
if: ${{ !startsWith(runner.os, 'Mac') }}

.meta.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
33
[meta]
44
template = "zope-product"
5-
commit-id = "a0de4e93"
5+
commit-id = "08e52d38"
66

77
[python]
88
with-pypy = true
@@ -19,6 +19,3 @@ fail-under = 88
1919
additional-rules = [
2020
"recursive-include src *.txt",
2121
]
22-
23-
[tox]
24-
use-flake8 = true

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
minimum_pre_commit_version: '3.6'
44
repos:
55
- repo: https://github.com/pycqa/isort
6-
rev: "6.0.1"
6+
rev: "7.0.0"
77
hooks:
88
- id: isort
99
- repo: https://github.com/hhatto/autopep8
@@ -12,16 +12,16 @@ repos:
1212
- id: autopep8
1313
args: [--in-place, --aggressive, --aggressive]
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.19.1
15+
rev: v3.21.0
1616
hooks:
1717
- id: pyupgrade
18-
args: [--py39-plus]
18+
args: [--py310-plus]
1919
- repo: https://github.com/isidentical/teyit
2020
rev: 0.4.3
2121
hooks:
2222
- id: teyit
2323
- repo: https://github.com/PyCQA/flake8
24-
rev: "7.1.2"
24+
rev: "7.3.0"
2525
hooks:
2626
- id: flake8
2727
additional_dependencies:

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Changelog
44
6.0 (unreleased)
55
----------------
66

7+
- Add support for Python 3.14.
8+
9+
- Drop support for Python 3.9.
10+
711
- Drop support for Python 3.8.
812

913
- Remove setuptools fossils.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[build-system]
55
requires = [
6-
"setuptools == 75.8.2",
6+
"setuptools >= 78.1.1,< 81",
77
"wheel",
88
]
99
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,20 @@
5050
classifiers=[
5151
"Development Status :: 6 - Mature",
5252
"Environment :: Web Environment",
53-
"Framework :: Zope :: 4",
53+
"Framework :: Zope :: 5",
5454
"License :: OSI Approved :: Zope Public License",
5555
"Operating System :: OS Independent",
5656
"Programming Language :: Python",
5757
"Programming Language :: Python :: 3",
58-
"Programming Language :: Python :: 3.9",
5958
"Programming Language :: Python :: 3.10",
6059
"Programming Language :: Python :: 3.11",
6160
"Programming Language :: Python :: 3.12",
6261
"Programming Language :: Python :: 3.13",
62+
"Programming Language :: Python :: 3.14",
6363
"Programming Language :: Python :: Implementation :: CPython",
6464
"Programming Language :: Python :: Implementation :: PyPy",
6565
],
66-
python_requires='>=3.9',
66+
python_requires='>=3.10',
6767
install_requires=[
6868
'zope.interface',
6969
'pytz',

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ minversion = 3.18
55
envlist =
66
release-check
77
lint
8-
py39
98
py310
109
py311
1110
py312
1211
py313
1312
py314
13+
py315
1414
pypy3
1515
coverage
1616

1717
[testenv]
1818
skip_install = true
1919
deps =
20-
setuptools == 75.8.2
20+
setuptools >= 78.1.1,< 81
2121
zc.buildout
2222
wheel
2323
setenv =
@@ -39,7 +39,7 @@ description = ensure that the distribution is ready to release
3939
basepython = python3
4040
skip_install = true
4141
deps =
42-
setuptools == 75.8.2
42+
setuptools >= 78.1.1,< 81
4343
wheel
4444
twine
4545
build
@@ -49,7 +49,7 @@ deps =
4949
commands_pre =
5050
commands =
5151
check-manifest
52-
check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
52+
check-python-versions --only pyproject.toml,setup.py,tox.ini,.github/workflows/tests.yml
5353
python -m build --sdist --no-isolation
5454
twine check dist/*
5555

0 commit comments

Comments
 (0)