Skip to content

Commit dc7cbd2

Browse files
authored
Drop 3.9 support (#512)
1 parent f234e76 commit dc7cbd2

19 files changed

+49
-49
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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ jobs:
2020
matrix:
2121
env:
2222
- "pypy-3.10"
23-
- "pypy-3.9"
2423
- "3.14"
2524
- "3.13"
2625
- "3.12"
2726
- "3.11"
2827
- "3.10"
29-
- "3.9"
3028
- type
3129
- dev
3230
- pkg_meta
@@ -43,9 +41,9 @@ jobs:
4341
cache-dependency-glob: "pyproject.toml"
4442
github-token: ${{ secrets.GITHUB_TOKEN }}
4543
- name: Install tox
46-
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
44+
run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv
4745
- name: Install Python
48-
if: (startsWith(matrix.env, '3.') || startsWith(matrix.env, 'pypy-')) && matrix.env != '3.13'
46+
if: (startsWith(matrix.env, '3.') || startsWith(matrix.env, 'pypy-')) && matrix.env != '3.14'
4947
run: uv python install --python-preference only-managed ${{ matrix.env }}
5048
- name: Setup test suite
5149
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ 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/tox-toml-fmt
18-
rev: "v1.0.0"
18+
rev: "v1.2.0"
1919
hooks:
2020
- id: tox-toml-fmt
2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: "v2.7.0"
22+
rev: "v2.10.0"
2323
hooks:
2424
- id: pyproject-fmt
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.13.3"
26+
rev: "v0.14.0"
2727
hooks:
2828
- id: ruff-format
29-
- id: ruff
29+
- id: ruff-check
3030
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
3131
- repo: https://github.com/rbubley/mirrors-prettier
3232
rev: "v3.6.2"
3333
hooks:
3434
- id: prettier
3535
additional_dependencies:
36-
- prettier@3.3.3
37-
- "@prettier/[email protected].1"
36+
- prettier@3.6.2
37+
- "@prettier/[email protected].2"
3838
- repo: meta
3939
hooks:
4040
- id: check-hooks-apply

pyproject.toml

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

@@ -24,15 +24,14 @@ maintainers = [
2424
{ name = "Bernát Gábor", email = "[email protected]" },
2525
{ name = "Vineet Naik", email = "[email protected]" },
2626
]
27-
requires-python = ">=3.9"
27+
requires-python = ">=3.10"
2828
classifiers = [
2929
"Development Status :: 5 - Production/Stable",
3030
"Environment :: Console",
3131
"Intended Audience :: Developers",
3232
"Operating System :: OS Independent",
3333
"Programming Language :: Python",
3434
"Programming Language :: Python :: 3 :: Only",
35-
"Programming Language :: Python :: 3.9",
3635
"Programming Language :: Python :: 3.10",
3736
"Programming Language :: Python :: 3.11",
3837
"Programming Language :: Python :: 3.12",
@@ -43,19 +42,19 @@ dynamic = [
4342
"version",
4443
]
4544
dependencies = [
46-
"packaging>=24.1",
47-
"pip>=24.2",
45+
"packaging>=25",
46+
"pip>=25.2",
4847
]
4948
optional-dependencies.graphviz = [
50-
"graphviz>=0.20.3",
49+
"graphviz>=0.21",
5150
]
5251
optional-dependencies.test = [
5352
"covdefaults>=2.3",
54-
"diff-cover>=9.1.1",
55-
"pytest>=8.3.2",
56-
"pytest-cov>=5",
57-
"pytest-mock>=3.14",
58-
"virtualenv>=20.31.1,<21",
53+
"diff-cover>=9.7.1",
54+
"pytest>=8.4.2",
55+
"pytest-cov>=7",
56+
"pytest-mock>=3.15.1",
57+
"virtualenv<21,>=20.34",
5958
]
6059
urls.Changelog = "https://github.com/tox-dev/pipdeptree/releases"
6160
urls.Documentation = "https://github.com/tox-dev/pipdeptree/blob/main/README.md#pipdeptree"

src/pipdeptree/_detect_env.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
import subprocess # noqa: S404
66
import sys
77
from pathlib import Path
8-
from typing import Callable
8+
from typing import TYPE_CHECKING
9+
10+
if TYPE_CHECKING:
11+
from collections.abc import Callable
912

1013

1114
def detect_active_interpreter() -> str:

src/pipdeptree/_warning.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import sys
44
from enum import Enum
5-
from typing import Callable
5+
from typing import TYPE_CHECKING
6+
7+
if TYPE_CHECKING:
8+
from collections.abc import Callable
69

710

811
class WarningType(Enum):

0 commit comments

Comments
 (0)