Skip to content

Commit a4f6e61

Browse files
authored
Add support for 3.14 and drop 3.9|3.8 (#188)
1 parent c796918 commit a4f6e61

File tree

13 files changed

+34
-107
lines changed

13 files changed

+34
-107
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
env:
22+
- "3.14"
2223
- "3.13"
2324
- "3.12"
2425
- "3.11"
2526
- "3.10"
26-
- "3.9"
27-
- "3.8"
2827
- type
2928
- dev
3029
- pkg_meta
@@ -39,9 +38,9 @@ jobs:
3938
cache-dependency-glob: "pyproject.toml"
4039
github-token: ${{ secrets.GITHUB_TOKEN }}
4140
- name: Install tox
42-
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
41+
run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv
4342
- name: Install Python
44-
if: startsWith(matrix.env, '3.') && matrix.env != '3.13'
43+
if: startsWith(matrix.env, '3.') && matrix.env != '3.14'
4544
run: uv python install --python-preference only-managed ${{ matrix.env }}
4645
- name: Setup test suite
4746
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}

.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ repos:
1313
rev: v2.4.1
1414
hooks:
1515
- id: codespell
16-
additional_dependencies: ["tomli>=2.0.1"]
16+
additional_dependencies: ["tomli>=2.2.1"]
1717
- repo: https://github.com/tox-dev/tox-ini-fmt
1818
rev: "1.6.0"
1919
hooks:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "v2.7.0"
23+
rev: "v2.10.0"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.13.3"
27+
rev: "v0.14.0"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

CHANGELOG.md

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

pyproject.toml

Lines changed: 6 additions & 9 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]
@@ -17,16 +17,14 @@ license.file = "LICENSE"
1717
maintainers = [
1818
{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" },
1919
]
20-
requires-python = ">=3.8"
20+
requires-python = ">=3.10"
2121
classifiers = [
2222
"Development Status :: 5 - Production/Stable",
2323
"Intended Audience :: Developers",
2424
"License :: OSI Approved :: MIT License",
2525
"Operating System :: OS Independent",
2626
"Programming Language :: Python",
2727
"Programming Language :: Python :: 3 :: Only",
28-
"Programming Language :: Python :: 3.8",
29-
"Programming Language :: Python :: 3.9",
3028
"Programming Language :: Python :: 3.10",
3129
"Programming Language :: Python :: 3.11",
3230
"Programming Language :: Python :: 3.12",
@@ -38,12 +36,12 @@ dynamic = [
3836
"version",
3937
]
4038
dependencies = [
41-
"pytest>=8.3.2",
39+
"pytest>=8.4.2",
4240
]
4341
optional-dependencies.test = [
4442
"covdefaults>=2.3",
45-
"coverage>=7.6.1",
46-
"pytest-mock>=3.14",
43+
"coverage>=7.10.7",
44+
"pytest-mock>=3.15.1",
4745
]
4846
urls.Homepage = "https://github.com/pytest-dev/pytest-print"
4947
urls.Source = "https://github.com/pytest-dev/pytest-print"
@@ -54,7 +52,6 @@ entry-points.pytest11.print = "pytest_print"
5452
version.source = "vcs"
5553

5654
[tool.ruff]
57-
target-version = "py38"
5855
line-length = 120
5956
format.preview = true
6057
format.docstring-code-line-length = 100

src/pytest_print/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
from dataclasses import dataclass, replace
77
from timeit import default_timer
8-
from typing import TYPE_CHECKING, Optional, Protocol, TypeVar, cast
8+
from typing import TYPE_CHECKING, Protocol, TypeVar, cast
99

1010
import pytest
1111

@@ -179,10 +179,10 @@ def indent(self, *, icon: str) -> PrettyPrinter:
179179

180180
def _create(request: SubRequest, of_type: type[_OfType], formatter: Formatter) -> _OfType:
181181
return of_type(
182-
reporter=cast("Optional[TerminalReporter]", request.config.pluginmanager.getplugin("terminalreporter"))
182+
reporter=cast("TerminalReporter | None", request.config.pluginmanager.getplugin("terminalreporter"))
183183
if request.config.getoption("pytest_print_on") or cast("int", request.config.getoption("verbose")) > 0
184184
else None,
185-
capture_manager=cast("Optional[CaptureManager]", request.config.pluginmanager.getplugin("capturemanager")),
185+
capture_manager=cast("CaptureManager | None", request.config.pluginmanager.getplugin("capturemanager")),
186186
formatter=formatter,
187187
start=default_timer() if request.config.getoption("pytest_print_relative_time") else None,
188188
level=0,

0 commit comments

Comments
 (0)