forked from saffsd/langid.py
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update setup, switch to Python 3.8+ and pyproject.toml (#11)
* update setup, switch to Python 3.8+ and pyproject.toml * specify numpy version * fix syntax
- Loading branch information
Showing
4 changed files
with
75 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/ | ||
[build-system] | ||
requires = ["setuptools>=61.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 = { text = "BSD" } | ||
dynamic = ["version"] | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{name = "Marco Lui"}, | ||
{name = "Adrien Barbaresi", email = "[email protected]"} | ||
] | ||
keywords=[ | ||
"language detection", | ||
"language identification", | ||
"langid", | ||
"langid.py" | ||
] | ||
classifiers = [ | ||
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
'Development Status :: 5 - Production/Stable', | ||
#'Development Status :: 6 - Mature', | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Topic :: Text Processing :: Linguistic", | ||
] | ||
dependencies = [ | ||
"numpy >= 2.0.0 ; python_version >= '3.9'", | ||
"numpy >= 1.24.3 ; python_version == '3.8'", | ||
] | ||
|
||
# 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.plzma"] | ||
|
||
[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" | ||
|
||
# Development extras | ||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest", | ||
"pytest-cov", | ||
] |