forked from Unbabel/OpenKiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (77 loc) · 2.34 KB
/
pyproject.toml
File metadata and controls
90 lines (77 loc) · 2.34 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
# Configuration file as per PEP 518
# https://www.python.org/dev/peps/pep-0518/
[tool.poetry]
name = "openkiwi"
version = "0.1.1"
description = "Machine Translation Quality Estimation Toolkit"
authors = ["AI Research, Unbabel <openkiwi@unbabel.com>"]
license = "AGPL-3.0"
readme = 'README.md'
homepage = 'https://github.com/Unbabel/OpenKiwi'
repository = 'https://github.com/Unbabel/OpenKiwi'
documentation = 'https://unbabel.github.io/OpenKiwi/'
keywords = ['OpenKiwi', 'Quality Estimation', 'Machine Translation', 'Unbabel']
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
packages = [
{include = "kiwi"},
]
include = ['pyproject.toml', 'CHANGELOG', 'LICENSE', 'CONTRIBUTING.md']
[tool.poetry.scripts]
kiwi = 'kiwi.__main__:main'
[tool.poetry.dependencies]
python = "^3.5"
torch = ">= 0.4.1"
torchtext = "^0.3.1"
tqdm = "^4.29"
configargparse = "^0.14.0"
numpy = "^1.16"
more-itertools = "^5.0"
scipy = "^1.2"
pyyaml = "^3.13"
pathlib2 = {version = "^2.3",python = "3.5"}
mlflow = {version = "~0.8",optional = true}
seaborn = {version = "^0.9.0",optional = true}
polyglot = {version = "^16.7",optional = true}
[tool.poetry.dev-dependencies]
bump2version = "^0.5.10"
tox = "^3.7"
pytest = "^4.1"
flake8 = "^3.6"
isort = "^4.3"
coverage = "^4.5"
sphinx = "^1.8"
sphinx-argparse = "^0.2.5"
m2r = "^0.2.1"
sphinx_rtd_theme = "^0.4.3"
yapf = {version = "^0.25.0",allows-prereleases = true,python = "~3.5"}
black = {version = "^18.9-beta.0",allows-prereleases = true,python = "^3.6"}
[tool.poetry.extras]
embeddings = ["polyglot"]
plots = ["seaborn"]
mlflow = ["mlflow"]
[tool.black]
line-length = 80 # Changed from default 88
# You probably noticed the peculiar default line length. Black defaults
# to 88 characters per line, which happens to be 10% over 80. This number was
# found to produce significantly shorter files than sticking with 80 (the most
# popular), or even 79 (used by the standard library). In general, 90-ish
# seems like the wise choice: https://youtu.be/wf-BqAjZb8M?t=260.
skip-string-normalization = true # Don't switch to double quotes
py36 = false
exclude = '''
/(
\.git
| \.tox
| \.venv
| build
| dist
)/
'''
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"