Skip to content

Commit f1a6403

Browse files
authored
Drop Python 3.9 (#330)
# 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 38585bd + ddbfaa2 commit f1a6403

6 files changed

Lines changed: 80 additions & 542 deletions

File tree

.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.14']
12+
python-version: ['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
@@ -33,6 +33,14 @@ You can test the unpublished version of cihai-cli before its released, see
3333

3434
- _Changes for the upcoming release go here._
3535

36+
### Breaking changes
37+
38+
- Drop support for Python 3.9; the new minimum is Python 3.10 (#330).
39+
40+
See also:
41+
- [Python 3.9 EOL timeline](https://devguide.python.org/versions/#:~:text=Release%20manager-,3.9,-PEP%20596)
42+
- [PEP 596](https://peps.python.org/pep-0596/)
43+
3644
### Development
3745

3846
- Add Python 3.14 to test matrix (#329)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ $ cd cihai-cli
161161
- [Quickstart](https://cihai-cli.git-pull.com/quickstart.html)
162162
- Python [API](https://cihai-cli.git-pull.com/api.html)
163163
- [2017 roadmap](https://cihai.git-pull.com/design-and-planning/2017/spec.html)
164-
- Python support: >= 3.9, pypy
164+
- Python support: >= 3.10, pypy
165165
- Source: <https://github.com/cihai/cihai-cli>
166166
- Docs: <https://cihai-cli.git-pull.com>
167167
- Changelog: <https://cihai-cli.git-pull.com/history.html>

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cihai-cli"
33
version = "0.30.0"
44
description = "Command line frontend for the cihai CJK language library"
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 = "tony@git-pull.com"}
@@ -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.12",
@@ -141,7 +140,7 @@ build-backend = "hatchling.build"
141140

142141
[tool.mypy]
143142
strict = true
144-
python_version = "3.9"
143+
python_version = "3.10"
145144
files = [
146145
"src/",
147146
"tests/",
@@ -154,7 +153,7 @@ module = [
154153
ignore_missing_imports = true
155154

156155
[tool.ruff]
157-
target-version = "py39"
156+
target-version = "py310"
158157

159158
[tool.ruff.lint]
160159
select = [

src/cihai_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def command_info(c: Cihai, char: str, show_all: bool) -> None:
127127
query = c.unihan.lookup_char(char).first()
128128
attrs = {}
129129
if not query:
130-
log.info(f"No records found for {char}")
130+
log.info("No records found for %s", char)
131131
sys.exit()
132132
for col, _, _ in query.__table__.columns._collection:
133133
value = getattr(query, col)
@@ -159,7 +159,7 @@ def command_reverse(c: Cihai, char: str, show_all: bool) -> None:
159159
"""Lookup a word or phrase by searching definitions."""
160160
query = c.unihan.reverse_char([char])
161161
if not query.count():
162-
log.info(f"No records found for {char}")
162+
log.info("No records found for %s", char)
163163
sys.exit()
164164
for k in query:
165165
attrs = {}

0 commit comments

Comments
 (0)