Skip to content

Commit 2f4329a

Browse files
authored
Merge pull request #69 from zopefoundation/config-with-zope-product-template-9fcd3d67
Drop Python 3.9, add Python 3.14, convert to PEP 420
2 parents b224ada + 56d774f commit 2f4329a

File tree

11 files changed

+28
-30
lines changed

11 files changed

+28
-30
lines changed

.editorconfig

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/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

.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@v5
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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,29 @@ jobs:
2424
config:
2525
# [Python version, tox env]
2626
- ["3.11", "release-check"]
27-
- ["3.9", "py39"]
2827
- ["3.10", "py310"]
2928
- ["3.11", "py311"]
3029
- ["3.12", "py312"]
3130
- ["3.13", "py313"]
31+
- ["3.14", "py314"]
3232
- ["3.11", "coverage"]
3333

3434
runs-on: ${{ matrix.os[1] }}
3535
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3636
name: ${{ matrix.config[1] }}
3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v5
3939
with:
4040
persist-credentials: false
4141
- name: Install uv + caching
42-
uses: astral-sh/setup-uv@v5
42+
43+
uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3
4344
with:
4445
enable-cache: true
4546
cache-dependency-glob: |
4647
setup.*
4748
tox.ini
48-
python-version: ${{ matrix.matrix.config[0] }}
49+
python-version: ${{ matrix.config[0] }}
4950
github-token: ${{ secrets.GITHUB_TOKEN }}
5051
- name: Test
5152
if: ${{ !startsWith(runner.os, 'Mac') }}

.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/zope-product
33
[meta]
44
template = "zope-product"
5-
commit-id = "a0de4e93"
5+
commit-id = "9fcd3d67"
66

77
[python]
88
with-pypy = false

.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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ Changelog
44
5.2 (unreleased)
55
----------------
66

7+
- Switch to PEP 420 native namespace.
8+
9+
- Add support for Python 3.14.
10+
11+
- Drop support for Python 3.8 and 3.9.
712

8-
- Drop support for Python 3.8.
913

1014
5.1 (2024-10-16)
1115
----------------

pyproject.toml

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

55
[build-system]
66
requires = [
7-
"setuptools == 75.8.2",
7+
"setuptools >= 78.1.1,< 81",
88
"wheel",
99
]
1010
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#
1313
##############################################################################
1414

15-
from setuptools import find_packages
1615
from setuptools import setup
1716

1817

@@ -32,9 +31,6 @@
3231
author_email='[email protected]',
3332
long_description=('{}\n{}'.format(open('README.rst').read(),
3433
open('CHANGES.rst').read())),
35-
packages=find_packages('src'),
36-
namespace_packages=['Products'],
37-
package_dir={'': 'src'},
3834
classifiers=[
3935
'Development Status :: 6 - Mature',
4036
'Environment :: Web Environment',
@@ -44,16 +40,15 @@
4440
'Operating System :: OS Independent',
4541
'Programming Language :: Python',
4642
'Programming Language :: Python :: 3',
47-
'Programming Language :: Python :: 3.9',
4843
'Programming Language :: Python :: 3.10',
4944
'Programming Language :: Python :: 3.11',
5045
'Programming Language :: Python :: 3.12',
5146
'Programming Language :: Python :: 3.13',
47+
'Programming Language :: Python :: 3.14',
5248
'Programming Language :: Python :: Implementation :: CPython',
5349
],
54-
python_requires='>=3.9',
50+
python_requires='>=3.10',
5551
install_requires=[
56-
'setuptools',
5752
'AccessControl',
5853
'Acquisition',
5954
'DateTime',
@@ -62,11 +57,10 @@
6257
'zExceptions',
6358
'Zope >= 4.1.2',
6459
],
65-
include_package_data=True,
66-
zip_safe=False,
6760
entry_points={
6861
'zodbupdate.decode': [
6962
'decodes = Products.PythonScripts:zodbupdate_decode_dict',
7063
],
7164
},
65+
include_package_data=True,
7266
)

src/Products/PythonScripts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def initialize(context):
4343
icon='www/pyscript.gif',
4444
)
4545

46-
global _m
46+
global _m # noqa: F824
4747
_m['recompile'] = recompile
4848
_m['recompile__roles__'] = ('Manager',)
4949

src/Products/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)