Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (84 loc) · 2.71 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (84 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
[build-system]
requires = ["setuptools>=77.0"]
build-backend = "setuptools.build_meta"
[project]
name = "py3langid"
description = "Fork of the language identification tool langid.py, featuring a modernized codebase and faster execution times."
readme = "README.rst"
license = "BSD-3-Clause"
dynamic = ["version"]
requires-python = ">=3.10"
authors = [
{name = "Marco Lui"},
{name = "Adrien Barbaresi"}
]
keywords=[
"language detection",
"language identification",
"langid",
"langid.py"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Linguistic",
"Typing :: Typed",
]
dependencies = [
"numpy >= 2.0.0",
]
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[tool.setuptools]
packages = ["py3langid"]
# https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
[tool.setuptools.dynamic]
version = {attr = "py3langid.__version__"}
[tool.setuptools.package-data]
py3langid = ["data/model.npz.xz", "py.typed"]
[project.scripts]
langid = "py3langid.langid:main"
[project.urls]
"Homepage" = "https://github.com/adbar/py3langid"
"Blog" = "https://adrien.barbaresi.eu/blog/language-detection-langid-py-faster.html"
"Tracker" = "https://github.com/adbar/py3langid/issues"
# https://peps.python.org/pep-0735/ (installed by `uv sync` without extra flags)
[dependency-groups]
dev = [
"mypy==2.4.0",
"pytest==9.2.0",
"pytest-cov==7.1.0",
"ruff==0.17.3",
]
[tool.pytest.ini_options]
testpaths = ["tests", "README.rst"]
addopts = "--doctest-glob=README.rst"
doctest_optionflags = "NUMBER"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-select = ["I", "UP"]
[tool.mypy]
files = ["py3langid", "tests"]
strict = true
[[tool.mypy.overrides]]
module = ["datasets", "huggingface_hub"] # optional training dependencies
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["tests.*"] # test functions stay unannotated
disallow_untyped_defs = false
disallow_untyped_calls = false