-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #605 from NatLibFi/issue601-poetry
Switch to Poetry for dependency management
- Loading branch information
Showing
9 changed files
with
180 additions
and
152 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 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 |
---|---|---|
|
@@ -9,6 +9,6 @@ __pycache__ | |
*.pyc | ||
data | ||
docs/_build/ | ||
Pipfile.lock | ||
poetry.lock | ||
projects.cfg | ||
venv/ |
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
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,93 @@ | ||
[tool.poetry] | ||
name = "annif" | ||
version = "0.59.0-dev" | ||
description = "Automated subject indexing and classification tool" | ||
authors = ["National Library of Finland <finto-posti@helsinki.fi>"] | ||
maintainers = [ | ||
"Osma Suominen <osma.suominen@helsinki.fi>", | ||
"Juho Inkinen <juho.inkinen@helsinki.fi>", | ||
"Mona Lehtinen <mona.lehtinen@helsinki.fi>", | ||
] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
homepage = "https://annif.org" | ||
repository = "https://github.com/NatLibFi/Annif" | ||
documentation = "https://github.com/NatLibFi/Annif/wiki" | ||
keywords = [ | ||
"machine-learning", | ||
"text-classification", | ||
"rest-api", | ||
"code4lib", | ||
"subject-indexing" | ||
] | ||
|
||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent" | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.11" | ||
|
||
connexion = {version = "2.14.*", extras = ["swagger-ui"]} | ||
swagger_ui_bundle = "*" | ||
flask = ">=1.0.4,<3" | ||
flask-cors = "*" | ||
click = "8.1.*" | ||
click-log = "*" | ||
joblib = "1.1.0" | ||
nltk = "*" | ||
gensim = "4.2.*" | ||
scikit-learn = "1.1.1" | ||
scipy = "1.8.*" | ||
rdflib = ">=4.2,<7.0" | ||
gunicorn = "*" | ||
numpy = "1.23.*" | ||
optuna = "2.10.*" | ||
stwfsapy = "0.3.*" | ||
python-dateutil = "*" | ||
tomli = "2.0.*" | ||
simplemma = "0.8.*" | ||
|
||
fasttext-wheel = {version = "0.9.2", optional = true} | ||
voikko = {version = "*", optional = true} | ||
tensorflow-cpu = {version = "2.9.1", optional = true} | ||
lmdb = {version = "1.3.0", optional = true} | ||
omikuji = {version = "0.5.*", optional = true} | ||
yake = {version = "0.4.5", optional = true} | ||
pycld3 = {version = "*", optional = true} | ||
spacy = {version = "3.3.*", optional = true} | ||
|
||
[tool.poetry.dev-dependencies] | ||
py = "*" | ||
pytest = "*" | ||
requests = "*" | ||
codecov = "*" | ||
coverage = "<=6.2" | ||
pytest-cov = "*" | ||
pytest-watch = "*" | ||
pytest-flask = "*" | ||
pytest-flake8 = "*" | ||
flake8 = "4.*" | ||
bumpversion = "*" | ||
autopep8 = "*" | ||
|
||
[tool.poetry.extras] | ||
fasttext = ["fasttext-wheel"] | ||
voikko = ["voikko"] | ||
nn = ["tensorflow-cpu", "lmdb"] | ||
omikuji = ["omikuji"] | ||
yake = ["yake"] | ||
pycld3 = ["pycld3"] | ||
spacy = ["spacy"] | ||
|
||
[tool.poetry.scripts] | ||
annif = "annif.cli:cli" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--flake8" |
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
Oops, something went wrong.