WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 285164d

Browse files
authored
Update Python version support. (#22)
* Drop support for Python 3.9. * Add support for Python 3.14. * Configuring for pure-python * Update Python version support.
1 parent fd26596 commit 285164d

File tree

13 files changed

+74
-71
lines changed

13 files changed

+74
-71
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: 16 additions & 24 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,48 +24,40 @@ 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
42-
- name: Set up Python
43-
uses: actions/setup-python@v5
42+
- name: Install uv + caching
43+
44+
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244
4445
with:
46+
enable-cache: true
47+
cache-dependency-glob: |
48+
setup.*
49+
tox.ini
4550
python-version: ${{ matrix.config[0] }}
46-
allow-prereleases: true
47-
- name: Pip cache
48-
uses: actions/cache@v4
49-
with:
50-
path: ~/.cache/pip
51-
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
52-
restore-keys: |
53-
${{ runner.os }}-pip-${{ matrix.config[0] }}-
54-
${{ runner.os }}-pip-
55-
- name: Install dependencies
56-
run: |
57-
python -m pip install --upgrade pip
58-
pip install tox
51+
github-token: ${{ secrets.GITHUB_TOKEN }}
5952
- name: Test
6053
if: ${{ !startsWith(runner.os, 'Mac') }}
61-
run: tox -e ${{ matrix.config[1] }}
54+
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}
6255
- name: Test (macOS)
6356
if: ${{ startsWith(runner.os, 'Mac') }}
64-
run: tox -e ${{ matrix.config[1] }}-universal2
57+
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}-universal2
6558
- name: Coverage
6659
if: matrix.config[1] == 'coverage'
6760
run: |
68-
pip install coveralls
69-
coveralls --service=github
61+
uvx coveralls --service=github
7062
env:
7163
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

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
*.dll
44
*.egg-info/
55
*.profraw

.meta.toml

Lines changed: 6 additions & 11 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 = "82ed9fd9"
5+
commit-id = "76e81852"
66

77
[python]
88
with-macos = false
@@ -13,23 +13,18 @@ with-sphinx-doctests = false
1313
with-docs = false
1414

1515
[tox]
16-
use-flake8 = true
17-
testenv-deps = [
18-
"zope.testrunner",
19-
]
16+
testenv-deps = ["zope.testrunner"]
2017

2118
[coverage]
2219
fail-under = 98.5
2320

2421
[manifest]
25-
additional-rules = [
26-
"recursive-include src *.rst",
27-
]
22+
additional-rules = ["recursive-include src *.rst"]
2823

2924
[flake8]
3025
additional-config = [
3126
"# F401 imported but unused",
3227
"per-file-ignores =",
3328
" src/hurry/query/__init__.py: F401",
3429
" src/hurry/query/tests/__init__.py: F401",
35-
]
30+
]

.pre-commit-config.yaml

Lines changed: 6 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.0"
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.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
2323
- repo: https://github.com/PyCQA/flake8
24-
rev: "7.1.1"
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 @@ CHANGES
44
5.1 (unreleased)
55
----------------
66

7+
- Add support for Python 3.14.
8+
9+
- Drop support for Python 3.9.
10+
711
- Simplify usage of PEP-420 namespace.
812

913

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: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
#
2-
# Generated from:
3-
# 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
43

54
[build-system]
6-
requires = ["setuptools <= 75.6.0"]
5+
requires = [
6+
"setuptools >= 78.1.1,< 81",
7+
"wheel",
8+
]
79
build-backend = "setuptools.build_meta"
810

911
[tool.coverage.run]
@@ -15,7 +17,16 @@ fail_under = 98.5
1517
precision = 2
1618
ignore_errors = true
1719
show_missing = true
18-
exclude_lines = ["pragma: no cover", "pragma: nocover", "except ImportError:", "raise NotImplementedError", "if __name__ == '__main__':", "self.fail", "raise AssertionError", "raise unittest.Skip"]
20+
exclude_lines = [
21+
"pragma: no cover",
22+
"pragma: nocover",
23+
"except ImportError:",
24+
"raise NotImplementedError",
25+
"if __name__ == '__main__':",
26+
"self.fail",
27+
"raise AssertionError",
28+
"raise unittest.Skip",
29+
]
1930

2031
[tool.coverage.html]
2132
directory = "parts/htmlcov"

0 commit comments

Comments
 (0)