Skip to content

Commit 2f82a1a

Browse files
committed
✨ chore(workflows): update Python support to 3.13 in CI config
Expanded the Python version matrix to include 3.12 and 3.13 in the GitHub Actions workflow. This ensures that the project is tested against the latest Python versions, improving compatibility and future-proofing the codebase.
1 parent f812dd4 commit 2f82a1a

File tree

5 files changed

+54
-6
lines changed

5 files changed

+54
-6
lines changed

.github/workflows/python_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
17+
python-version: [ '3.9', '3.10', '3.11' ,'3.12', '3.13' ]
1818
os: [ macos-latest , ubuntu-latest ] # , ubuntu-latest, windows-latest
1919

2020
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
**`fast-langdetect`** is an ultra-fast and highly accurate language detection library based on FastText, a library developed by Facebook. Its incredible speed and accuracy make it 80x faster than conventional methods and deliver up to 95% accuracy.
1010

11-
- Supported Python `3.9` to `3.12`.
11+
- Supported Python `3.9` to `3.13`.
1212
- Works offline in low memory mode
1313
- No `numpy` required (thanks to @dalf).
1414

pdm.lock

Lines changed: 49 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fast-langdetect"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
description = "Quickly detect text language and segment language"
55
authors = [
66
{ name = "sudoskys", email = "coldlando@hotmail.com" },
@@ -10,7 +10,7 @@ dependencies = [
1010
"requests>=2.32.3",
1111
"fasttext-predict>=0.9.2.4",
1212
]
13-
requires-python = ">=3.9,<3.13"
13+
requires-python = ">=3.9"
1414
readme = "README.md"
1515
license = { text = "MIT" }
1616

tests/test_detect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def test_muti_detect():
99
from fast_langdetect import detect_multilingual
1010
result = detect_multilingual("hello world", low_memory=True, use_strict_mode=True)
1111
assert result[0].get("lang") == "en", "ft_detect error"
12+
return True
1213

1314

1415
def test_large():

0 commit comments

Comments
 (0)