forked from borh-lab/natsume-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (58 loc) · 2.07 KB
/
pyproject.toml
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
[project]
name = "natsume-simple"
version = "0.1.0"
description = "simple dependency relation search engine for Japanese"
authors = [{ name = "Bor Hodošček", email = "<[email protected]>" }]
license = "MIT"
# Above and below correspond to PDM and Poetry configs, respectively.
[tool.poetry]
name = "natsume-simple"
version = "0.1.0"
description = "simple dependency relation search engine for Japanese"
authors = ["Bor Hodošček <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
numpy = { version = "^1.25.0", python = ">=3.11,<3.14" }
datasets = "^2.14.5"
fastapi = "^0.103.2"
uvicorn = "^0.23.2"
# We keep GiNZA pinned to have reproducible results
ginza = "5.1.3"
ja_ginza = "5.1.3"
ja_ginza_bert_large = { url = "https://github.com/megagonlabs/ginza/releases/download/v5.1.3/ja_ginza_bert_large-5.1.3b1-py3-none-any.whl" }
# Transformers-based models (electra -E flag):
# ja_ginza_electra = { version = "5.1.3", optional = true }
torch = { version = "^2.1.0", optional = true }
spacy = { version = "^3.6.1", optional = true }
# # CUDA (cuda -E flag):
# cupy-cuda12x = { version = "^12.2.0", optional = true }
# ROCm (rocm -E flag)
# torch-rocm = { optional = true, url = "https://download.pytorch.org/whl/rocm5.2/torch-1.13.0%2Brocm5.2-cp310-cp310-linux_x86_64.whl" }
# pandas = "^2.1.1"
# duckdb = "^0.9.1"
[tool.poetry.extras]
cuda = ["cupy-cuda12x", "torch", "spacy"]
rocm = ["cupy-rocm-5-0", "torch", "spacy"]
[[tool.poetry.source]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[tool.poetry.group.dev.dependencies]
ipykernel = { version = "^6.25.2" }
ipywidgets = "^8.1.1"
pytest = "^7.2.0"
pytest-watch = "^4.2.0"
pytest-testmon = { version = "^1.4.1", python = ">=3.8,<3.12" }
hypothesis = "^6.56.4" # pytest dependency
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = ["tests", "integration"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# Uncomment below to use PDM:
# [build-system]
# requires = ["pdm-pep517>=1.0.0"]
# build-backend = "pdm.pep517.api"