Skip to content

Commit f29d5a4

Browse files
authored
config with pure python template 9832deed (#17)
* Drop support for Python 3.9. * Add support for Python 3.14. * Configuring for pure-python * Move package metadata from setup.py to pyproject.toml. * Move package metadata from setup.py to pyproject.toml.
1 parent ac127d2 commit f29d5a4

File tree

15 files changed

+141
-115
lines changed

15 files changed

+141
-115
lines changed

.editorconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
33
name: pre-commit
44

55
on:
@@ -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: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
33
name: tests
44

55
on:
@@ -24,36 +24,33 @@ 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"]
32-
- ["pypy-3.10", "pypy3"]
31+
- ["3.14", "py314"]
32+
- ["pypy-3.11", "pypy3"]
3333
- ["3.11", "coverage"]
3434

3535
runs-on: ${{ matrix.os[1] }}
3636
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3737
name: ${{ matrix.config[1] }}
3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@v6
4040
with:
4141
persist-credentials: false
4242
- name: Install uv + caching
43-
uses: astral-sh/setup-uv@v6
43+
# astral/setup-uv@7.5.0
44+
uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82
4445
with:
4546
enable-cache: true
4647
cache-dependency-glob: |
4748
setup.*
4849
tox.ini
49-
python-version: ${{ matrix.matrix.config[0] }}
50+
python-version: ${{ matrix.config[0] }}
5051
github-token: ${{ secrets.GITHUB_TOKEN }}
5152
- name: Test
52-
if: ${{ !startsWith(runner.os, 'Mac') }}
5353
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}
54-
- name: Test (macOS)
55-
if: ${{ startsWith(runner.os, 'Mac') }}
56-
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}-universal2
5754
- name: Coverage
5855
if: matrix.config[1] == 'coverage'
5956
run: |

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
33
*.dll
44
*.egg-info/
55
*.profraw
@@ -28,5 +28,6 @@ lib64
2828
log/
2929
parts/
3030
pyvenv.cfg
31+
share/
3132
testing.log
3233
var/

.meta.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
33
[meta]
44
template = "pure-python"
5-
commit-id = "7d59ab0f"
5+
commit-id = "9832deed"
66

77
[python]
88
with-macos = false
@@ -11,6 +11,7 @@ with-pypy = true
1111
with-future-python = false
1212
with-sphinx-doctests = false
1313
with-docs = false
14+
with-free-threaded-python = false
1415

1516
[tox]
1617
testenv-deps = [

.pre-commit-config.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
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,17 @@ 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.2
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
23+
language_version: python3.13
2324
- repo: https://github.com/PyCQA/flake8
24-
rev: "7.2.0"
25+
rev: "7.3.0"
2526
hooks:
2627
- id: flake8
2728
additional_dependencies:

CHANGES.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ Changes
44
5.1 (unreleased)
55
----------------
66

7-
- Nothing changed yet.
7+
- Move package metadata from setup.py to pyproject.toml.
8+
9+
- Add support for Python 3.14.
10+
11+
- Drop support for Python 3.9.
812

913

1014
5.0 (2025-06-18)

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
2-
Generated from:
3-
https://github.com/zopefoundation/meta/tree/master/config/pure-python
2+
Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
3+
https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
44
-->
55
# Contributing to zopefoundation projects
66

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
33
include *.md
44
include *.rst
55
include *.txt

pyproject.toml

Lines changed: 63 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,68 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
3-
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
43
[build-system]
54
requires = [
6-
"setuptools == 78.1.1",
5+
"setuptools >= 78.1.1,< 81",
76
"wheel",
87
]
98
build-backend = "setuptools.build_meta"
109

10+
11+
[project]
12+
name = "grokcore.site"
13+
version = "5.1.dev0"
14+
description = "Grok-like configuration for Zope local site and utilities"
15+
license = "ZPL-2.1"
16+
classifiers = [
17+
"Environment :: Web Environment",
18+
"Framework :: Zope :: 3",
19+
"Intended Audience :: Developers",
20+
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.14",
26+
"Programming Language :: Python :: Implementation :: CPython",
27+
"Programming Language :: Python :: Implementation :: PyPy",
28+
"Programming Language :: Python",
29+
]
30+
dynamic = ["readme"]
31+
requires-python = ">=3.10"
32+
authors = [
33+
{name = "Grok Team",email = "zope-dev@zope.dev"},
34+
]
35+
maintainers = [
36+
{name = "Plone Foundation and contributors",email = "zope-dev@zope.dev"},
37+
]
38+
dependencies = [
39+
"grokcore.component >= 2.1",
40+
"martian >= 0.13",
41+
"persistent",
42+
"zope.annotation",
43+
"zope.component",
44+
"zope.container",
45+
"zope.event",
46+
"zope.interface",
47+
"zope.lifecycleevent",
48+
"zope.schema",
49+
"zope.site >= 4.4",
50+
]
51+
52+
[project.optional-dependencies]
53+
test = [
54+
"zope.app.appsetup",
55+
"zope.component",
56+
"zope.configuration",
57+
"zope.testing",
58+
"grokcore.content",
59+
]
60+
61+
[project.urls]
62+
Source = "https://github.com/zopefoundation/grokcore.site"
63+
Issues = "https://github.com/zopefoundation/grokcore.site/issues"
64+
Changelog = "https://raw.githubusercontent.com/zopefoundation/grokcore.site/master/CHANGES.rst"
65+
1166
[tool.coverage.run]
1267
branch = true
1368
source = ["grokcore.site"]
@@ -30,3 +85,7 @@ exclude_lines = [
3085

3186
[tool.coverage.html]
3287
directory = "parts/htmlcov"
88+
89+
[tool.setuptools.dynamic]
90+
readme = {file = ["README.rst", "CHANGES.rst"]}
91+

0 commit comments

Comments
 (0)