-
Notifications
You must be signed in to change notification settings - Fork 77
/
pyproject.toml
130 lines (111 loc) · 3.32 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[tool.poetry]
name = "mephisto"
version = "1.1.2"
description = "Crowdsourcing made simpler."
license = "MIT"
authors = [
"Jack Urbanek <[email protected]>",
"Pratik Ringshia <[email protected]>"
]
readme = "README.md"
homepage = "https://mephisto.ai/"
repository = "https://github.com/facebookresearch/Mephisto"
documentation = "https://mephisto.ai/docs/reference/overview/"
keywords = ["crowdsourcing", "data", "collection", "review"]
classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Natural Language :: English",
]
packages = [
{ include = "mephisto" },
{ include = "hydra_plugins" },
]
include = [
"README.md",
"mephisto/__init__.py",
"mephisto/scripts/metrics/install_metrics.sh",
"mephisto/scripts/metrics/shutdown_metrics.py",
"mephisto/scripts/metrics/view_metrics.py",
"mephisto/scripts/metrics/README.md",
"mephisto/scripts/metrics/resources/*",
"hydra_configs/*",
]
exclude = [
"**/__pycache__/**/*.*",
"**/.mypy_cache/**/*",
"**/node_modules/*",
"**/node_modules/**/*",
"**/build/*",
"**/build/**/*",
"**/_generated/*",
"**/_generated/**/*",
"mephisto/scripts/metrics/grafana/*",
"mephisto/scripts/metrics/prometheus/*",
]
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.22"
sh = "^1.12"
hydra-core = "^1.2.0"
tqdm = "^4.50.2"
websockets = "^10.1"
pyyaml = ">=5.4,<7.0"
markupsafe = "2.1.5"
mdutils = "^1.4.0"
# worker_addons
detoxify = { version = "^0.5.0", optional = true }
# aws
boto3 = { version = "^1.17", optional = false }
botocore = { version = "^1.20.95", optional = false }
xmltodict = { version = ">=0.12,<0.14", optional = false }
# cli
click = { version = "^8.1.7", optional = false }
click_default_group = { version = "^1.2", optional = false }
tabulate = { version = ">=0.8.7,<0.10.0", optional = false }
rich = { version = "^12.5.1", optional = false }
rich-click = { version = "^1.5.1", optional = false }
# metrics
prometheus-client = { version = "^0.13.1", optional = false }
# flask_architect
flask = { version = "^3.0.3", optional = false }
flask-cors = { version = "^4.0.0", optional = false }
gevent-websocket = { version = "^0.10.1", optional = false }
werkzeug = { version = "^3.0.3", optional = false }
# mock_architect
tornado = { version = "^6.0", optional = false }
# parlai
parlai = { version = "^1.7.0", optional = true }
torch = { version = ">=1.4,<3.0", optional = true }
# jsonschema
jsonschema = { version = "^4.17.3", optional = false }
webvtt-py = "^0.5.1"
[tool.poetry.extras]
# Commented are currently non-optional
worker_addons = ["detoxify"]
# aws = ["boto3", "botocore", "xmltodict"]
# cli = ["click", "click_default_group", "tabulate", "rich", "rich-click"]
# metrics = ["prometheus-client"]
# flask_architect = ["flask", "gevent-websocket", "werkzeug"]
# mock_architect = ["tornado"]
parlai = ["parlai", "torch"]
[tool.poetry.group.dev.dependencies]
docutils = "^0.15"
pdoc = ">=10.0.3,<15.0.0"
pylint = "^2.4"
pytest = ">=5,<9"
pytest-cov = "^4.1.0"
mypy = ">=0.971,<1.11"
[tool.poetry.scripts]
'mephisto' = 'mephisto.client.cli:cli'
[tool.black]
line-length = 100
[build-system]
requires = [
"poetry>=1.2.0",
"poetry-core>=1.1.0",
"wheel",
]
build-backend = "poetry.core.masonry.api"
[mypy]
ignore_missing_imports = true