Skip to content

Commit c63f89b

Browse files
Add 3.14 and drop 3.9 support (#209)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8f33d9c commit c63f89b

File tree

10 files changed

+29
-32
lines changed

10 files changed

+29
-32
lines changed
File renamed without changes.
File renamed without changes.

.github/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot[bot]
5+
- pre-commit-ci[bot]

.github/release.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
env:
23+
- "3.14"
2324
- "3.13"
2425
- "3.12"
2526
- "3.11"
2627
- "3.10"
27-
- "3.9"
2828
os:
2929
- ubuntu-latest
3030
- macos-latest
@@ -44,9 +44,9 @@ jobs:
4444
shell: bash
4545
run: echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
4646
- name: Install tox
47-
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh@.
47+
run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv --with tox-gh@.
4848
- name: Install Python
49-
if: matrix.env != '3.13'
49+
if: matrix.env != '3.14'
5050
run: uv python install --python-preference only-managed ${{ matrix.env }}
5151
- name: Setup test suite
5252
run: tox run -vv --notest --skip-missing-interpreters false

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cache-dependency-glob: "pyproject.toml"
2121
github-token: ${{ secrets.GITHUB_TOKEN }}
2222
- name: Build package
23-
run: uv build --python 3.13 --python-preference only-managed --sdist --wheel . --out-dir dist
23+
run: uv build --python 3.14 --python-preference only-managed --sdist --wheel . --out-dir dist
2424
- name: Store the distribution packages
2525
uses: actions/upload-artifact@v4
2626
with:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ repos:
1313
rev: v2.4.1
1414
hooks:
1515
- id: codespell
16-
additional_dependencies: ["tomli>=2.0.1"]
16+
additional_dependencies: ["tomli>=2.3"]
1717
- repo: https://github.com/tox-dev/pyproject-fmt
18-
rev: "v2.7.0"
18+
rev: "v2.10.0"
1919
hooks:
2020
- id: pyproject-fmt
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.13.3"
22+
rev: "v0.14.0"
2323
hooks:
2424
- id: ruff-format
25-
- id: ruff
25+
- id: ruff-check
2626
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
2727
- repo: https://github.com/rbubley/mirrors-prettier
2828
rev: "v3.6.2"

pyproject.toml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[build-system]
22
build-backend = "hatchling.build"
33
requires = [
4-
"hatch-vcs>=0.4",
5-
"hatchling>=1.25",
4+
"hatch-vcs>=0.5",
5+
"hatchling>=1.27",
66
]
77

88
[project]
@@ -19,19 +19,19 @@ license = "MIT"
1919
maintainers = [
2020
{ name = "Bernát Gábor", email = "[email protected]" },
2121
]
22-
requires-python = ">=3.9"
22+
requires-python = ">=3.10"
2323
classifiers = [
2424
"Development Status :: 5 - Production/Stable",
2525
"Intended Audience :: Developers",
2626
"License :: OSI Approved :: MIT License",
2727
"Operating System :: OS Independent",
2828
"Programming Language :: Python",
2929
"Programming Language :: Python :: 3 :: Only",
30-
"Programming Language :: Python :: 3.9",
3130
"Programming Language :: Python :: 3.10",
3231
"Programming Language :: Python :: 3.11",
3332
"Programming Language :: Python :: 3.12",
3433
"Programming Language :: Python :: 3.13",
34+
"Programming Language :: Python :: 3.14",
3535
"Topic :: Internet",
3636
"Topic :: Software Development :: Libraries",
3737
"Topic :: System",
@@ -40,15 +40,15 @@ dynamic = [
4040
"version",
4141
]
4242
dependencies = [
43-
"tox>=4.18.1",
43+
"tox>=4.31",
4444
]
4545
optional-dependencies.testing = [
4646
"covdefaults>=2.3",
47-
"devpi-process>=1",
48-
"diff-cover>=9.2",
49-
"pytest>=8.3.2",
50-
"pytest-cov>=5",
51-
"pytest-mock>=3.14",
47+
"devpi-process>=1.0.2",
48+
"diff-cover>=9.7.1",
49+
"pytest>=8.4.2",
50+
"pytest-cov>=7",
51+
"pytest-mock>=3.15.1",
5252
]
5353
urls.Documentation = "https://github.com/tox-dev/tox-gh#tox-gh"
5454
urls.Homepage = "https://github.com/tox-dev/tox-gh"
@@ -109,9 +109,6 @@ builtin = "clear,usage,en-GB_to_en-US"
109109
write-changes = true
110110
count = true
111111

112-
[tool.pyproject-fmt]
113-
max_supported_python = "3.13"
114-
115112
[tool.coverage]
116113
html.show_contexts = true
117114
html.skip_covered = false

src/tox_gh/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import shutil
99
import sys
1010
import threading
11-
from typing import TYPE_CHECKING, Any, Dict # noqa: UP035
11+
from typing import TYPE_CHECKING, Any
1212

1313
from tox.config.loader.memory import MemoryLoader
1414
from tox.config.loader.section import Section
@@ -56,7 +56,7 @@ def register_config(self) -> None:
5656
"""Register the configurations."""
5757
self.add_config(
5858
"python",
59-
of_type=Dict[str, EnvList], # noqa: UP006
59+
of_type=dict[str, EnvList],
6060
default={},
6161
desc="python version to mapping",
6262
)

tox.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
requires = ["tox>=4.21.1", "tox-uv>=1.13"]
2-
env_list = ["fix", "3.13", "3.12", "3.11", "3.10", "3.9", "type", "pkg_meta"]
1+
requires = ["tox>=4.31", "tox-uv>=1.28.1"]
2+
env_list = ["fix", "3.14", "3.13", "3.12", "3.11", "3.10", "type", "pkg_meta"]
33
skip_missing_interpreters = true
44

55
[env_run_base]
@@ -84,8 +84,8 @@ extras = ["docs", "testing"]
8484
commands = [["uv", "pip", "tree"], ["python", "-c", 'print(r"{env_python}")']]
8585

8686
[gh.python]
87-
"3.13" = ["3.13", "type", "pkg_meta"]
87+
"3.14" = ["3.13", "type", "pkg_meta"]
88+
"3.13" = ["3.13"]
8889
"3.12" = ["3.12"]
8990
"3.11" = ["3.11"]
9091
"3.10" = ["3.10"]
91-
"3.9" = ["3.9"]

0 commit comments

Comments
 (0)