Skip to content

Commit e8119e7

Browse files
committed
Drop Python 3.8 support
1 parent 1563c65 commit e8119e7

File tree

5 files changed

+4
-15
lines changed

5 files changed

+4
-15
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
16+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1717

1818
steps:
1919
- uses: actions/checkout@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Lang(name='French', pt1='fr', pt2b='fre', pt2t='fra', pt3='fra', pt5='')
1818
```console
1919
$ pip install iso639-lang
2020
```
21-
`iso639-lang` supports Python 3.8+.
21+
`iso639-lang` supports Python 3.9+.
2222

2323
## Usage
2424

iso639/datafile.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import json
2+
from importlib.resources import files
23
from typing import Any
34

4-
try:
5-
from importlib.resources import files # type: ignore[attr-defined, import-not-found]
6-
except ImportError:
7-
# Compatibility for Python <3.9
8-
from importlib_resources import files # type: ignore[no-redef, import-not-found]
9-
10-
115
FILENAMES = {
126
"mapping_data": "data/iso-639.json",
137
"mapping_scope": "data/iso-639_scope.json",

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ classifiers = [
1616
"License :: OSI Approved :: MIT License",
1717
"Operating System :: OS Independent",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
@@ -26,10 +25,7 @@ classifiers = [
2625
"Topic :: Software Development :: Localization",
2726
"Topic :: Text Processing :: Linguistic",
2827
]
29-
requires-python = ">=3.8"
30-
dependencies = [
31-
"importlib-resources;python_version<'3.9'",
32-
]
28+
requires-python = ">=3.9"
3329

3430
[project.urls]
3531
Homepage = "https://github.com/LBeaudoux/iso639"

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)