Skip to content

Commit

Permalink
✨ chore(workflows): update Python support to 3.13 in CI config
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sudoskys committed Jan 28, 2025
1 parent f812dd4 commit 2f82a1a
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.9', '3.10', '3.11' ,'3.12', '3.13' ]
os: [ macos-latest , ubuntu-latest ] # , ubuntu-latest, windows-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

**`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.

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

Expand Down
51 changes: 49 additions & 2 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fast-langdetect"
version = "0.2.4"
version = "0.2.5"
description = "Quickly detect text language and segment language"
authors = [
{ name = "sudoskys", email = "coldlando@hotmail.com" },
Expand All @@ -10,7 +10,7 @@ dependencies = [
"requests>=2.32.3",
"fasttext-predict>=0.9.2.4",
]
requires-python = ">=3.9,<3.13"
requires-python = ">=3.9"
readme = "README.md"
license = { text = "MIT" }

Expand Down
1 change: 1 addition & 0 deletions tests/test_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def test_muti_detect():
from fast_langdetect import detect_multilingual
result = detect_multilingual("hello world", low_memory=True, use_strict_mode=True)
assert result[0].get("lang") == "en", "ft_detect error"
return True


def test_large():
Expand Down

0 comments on commit 2f82a1a

Please sign in to comment.