Skip to content

Commit 92b715e

Browse files
authored
config with pure python template 27ca14d4 (#17)
* Drop support for Python 3.9. * Add support for Python 3.14. * Configuring for pure-python * Update Python version support. * Move package metadata from setup.py to pyproject.toml. * Move package metadata from setup.py to pyproject.toml. * Refactor documentation configuration to use importlib.metadata and update copyright year dynamically
1 parent 9e537f7 commit 92b715e

15 files changed

Lines changed: 126 additions & 128 deletions

.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,37 +24,34 @@ 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", "docs"]
3434
- ["3.11", "coverage"]
3535

3636
runs-on: ${{ matrix.os[1] }}
3737
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3838
name: ${{ matrix.config[1] }}
3939
steps:
40-
- uses: actions/checkout@v4
40+
- uses: actions/checkout@v6
4141
with:
4242
persist-credentials: false
4343
- name: Install uv + caching
44-
uses: astral-sh/setup-uv@v6
44+
# astral/setup-uv@8.0.0
45+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57
4546
with:
4647
enable-cache: true
4748
cache-dependency-glob: |
4849
setup.*
4950
tox.ini
50-
python-version: ${{ matrix.matrix.config[0] }}
51+
python-version: ${{ matrix.config[0] }}
5152
github-token: ${{ secrets.GITHUB_TOKEN }}
5253
- name: Test
53-
if: ${{ !startsWith(runner.os, 'Mac') }}
5454
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}
55-
- name: Test (macOS)
56-
if: ${{ startsWith(runner.os, 'Mac') }}
57-
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}-universal2
5855
- name: Coverage
5956
if: matrix.config[1] == 'coverage'
6057
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 & 6 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 = "d03bba5c"
5+
commit-id = "27ca14d4"
66

77
[python]
88
with-windows = false
@@ -11,9 +11,7 @@ with-future-python = false
1111
with-docs = true
1212
with-sphinx-doctests = false
1313
with-macos = false
14-
15-
[tox]
16-
use-flake8 = true
14+
with-free-threaded-python = false
1715

1816
[coverage]
1917
fail-under = 99

.pre-commit-config.yaml

Lines changed: 6 additions & 5 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: "8.0.1"
77
hooks:
88
- id: isort
99
- repo: https://github.com/hhatto/autopep8
@@ -12,14 +12,15 @@ repos:
1212
- id: autopep8
1313
args: [--in-place, --aggressive, --aggressive]
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.20.0
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
2425
rev: "7.3.0"
2526
hooks:

.readthedocs.yaml

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
# Read the Docs configuration file
44
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
55

CHANGES.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
6.1 (unreleased)
66
================
77

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

1014

1115
6.0 (2025-09-12)

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

0 commit comments

Comments
 (0)