Skip to content

Commit 5043fc2

Browse files
committed
build: Drop Python 3.7 and 3.8 support
We drop support for Python 3.7 and 3.8 because `typing.Annotated` is only available in Python 3.9.
1 parent 48dea50 commit 5043fc2

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SHELL := bash
33

44
DUTY = $(shell [ -n "${VIRTUAL_ENV}" ] || echo pdm run) duty
5+
PYTHON_VERSIONS = 3.9 3.10 3.11
56

67
args = $(foreach a,$($(subst -,_,$1)_args),$(if $(value $a),$a="$($a)"))
78
check_quality_args = files
@@ -41,7 +42,7 @@ setup:
4142

4243
.PHONY: check
4344
check:
44-
@pdm multirun duty check-quality check-types check-docs
45+
@pdm multirun -i 3.9,3.10,3.11 duty check-quality check-types check-docs
4546
@$(DUTY) check-dependencies
4647

4748
.PHONY: $(BASIC_DUTIES)
@@ -50,4 +51,4 @@ $(BASIC_DUTIES):
5051

5152
.PHONY: $(QUALITY_DUTIES)
5253
$(QUALITY_DUTIES):
53-
@pdm multirun duty $@ $(call args,$@)
54+
@pdm multirun -i 3.9,3.10,3.11 duty $@ $(call args,$@)

pyproject.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "Griffe extension for @tiangolo's `typing.doc` PEP."
88
authors = [{name = "Timothée Mazzucotelli", email = "pawamoy@pm.me"}]
99
license = "ISC"
1010
readme = "README.md"
11-
requires-python = ">=3.7"
11+
requires-python = ">=3.9"
1212
keywords = []
1313
dynamic = ["version"]
1414
classifiers = [
@@ -17,8 +17,6 @@ classifiers = [
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3 :: Only",
20-
"Programming Language :: Python :: 3.7",
21-
"Programming Language :: Python :: 3.8",
2220
"Programming Language :: Python :: 3.9",
2321
"Programming Language :: Python :: 3.10",
2422
"Programming Language :: Python :: 3.11",
@@ -70,10 +68,6 @@ maintain = [
7068
"git-changelog>=1.0",
7169
]
7270
quality = [
73-
# TODO: remove once importlib-metadata version conflict is resolved
74-
"importlib-metadata<5; python_version < '3.8'",
75-
"flake8>=4; python_version >= '3.8'",
76-
7771
"darglint>=1.8",
7872
"flake8-bandit>=2.1",
7973
"flake8-black>=0.2",

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
PYTHON_VERSIONS="${PYTHON_VERSIONS-3.7 3.8 3.9 3.10 3.11}"
4+
PYTHON_VERSIONS="${PYTHON_VERSIONS-3.9 3.10 3.11}"
55

66
if ! command -v pdm &>/dev/null; then
77
if ! command -v pipx &>/dev/null; then

0 commit comments

Comments
 (0)