Skip to content

Commit d606ed8

Browse files
authored
Drop Python 3.9 (#351)
# Changes ## Drop Python 3.9 EOL of 2025-10-31. See also: - https://devguide.python.org/versions/#:~:text=Release%20manager-,3.9,-PEP%20596 - https://peps.python.org/pep-0596/
2 parents 331bf79 + 5de5133 commit d606ed8

File tree

5 files changed

+73
-515
lines changed

5 files changed

+73
-515
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ['3.9', '3.10', '3.14']
12+
python-version: ['3.10', '3.14']
1313
steps:
1414
- uses: actions/checkout@v4
1515

CHANGES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ $ pip install --user --upgrade --pre unihan-db
1515

1616
<!-- Maintainers, insert changes / features for the next release here -->
1717

18+
### Breaking changes
19+
20+
- Drop support for Python 3.9; the new minimum is Python 3.10 (#351).
21+
22+
See also:
23+
- [Python 3.9 EOL timeline](https://devguide.python.org/versions/#:~:text=Release%20manager-,3.9,-PEP%20596)
24+
- [PEP 596](https://peps.python.org/pep-0596/)
25+
1826
### Development
1927

2028
- Add Python 3.14 to test matrix (#350)

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "unihan_db"
33
version = "0.18.0"
44
description = "SQLAlchemy models for UNIHAN CJK database"
5-
requires-python = ">=3.9,<4.0"
5+
requires-python = ">=3.10,<4.0"
66
license = { text = "MIT" }
77
authors = [
88
{name = "Tony Narlock", email = "[email protected]"}
@@ -14,7 +14,6 @@ classifiers = [
1414
"Intended Audience :: Developers",
1515
"Programming Language :: Python",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.9",
1817
"Programming Language :: Python :: 3.10",
1918
"Programming Language :: Python :: 3.11",
2019
"Programming Language :: Python :: 3.13",
@@ -124,14 +123,14 @@ build-backend = "hatchling.build"
124123

125124
[tool.mypy]
126125
strict = true
127-
python_version = "3.9"
126+
python_version = "3.10"
128127
files = [
129128
"src/",
130129
"tests/",
131130
]
132131

133132
[tool.ruff]
134-
target-version = "py39"
133+
target-version = "py310"
135134

136135
[tool.ruff.lint]
137136
select = [

tests/test_example.py

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

33
from __future__ import annotations
44

5-
import importlib
65
import importlib.util
76
import sys
87
import typing as t

0 commit comments

Comments
 (0)