Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (59 loc) · 1.9 KB
/
Copy pathpyproject.toml
File metadata and controls
70 lines (59 loc) · 1.9 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
[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[project]
name = "clams-python"
dynamic = ["version"]
description = "A collection of APIs to develop CLAMS app for python"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Flask",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"mmif-python==1.5.4",
"Flask>=2",
"Flask-RESTful>=0.3.9",
"gunicorn>=20",
"lapps>=0.0.2",
"pydantic>=2",
"jsonschema>=3",
]
[project.scripts]
clams = "clams:cli"
[project.urls]
homepage = "https://clams.ai"
source = "https://github.com/clamsproject/clams-python"
[project.optional-dependencies]
dev = ["mypy", "pytest", "pytest-cov", "pillow", "setuptools"]
docs = ["sphinx>=7.0,<8.0", "furo", "m2r2", "sphinx-jsonschema"]
test = ["mypy", "pytest", "pytest-cov", "pillow"]
# Required for apps using the HuggingFace transformers backend
# (clams.backends.hf). Heavy deps; opt-in only.
hf = ["torch", "transformers", "pillow", "tqdm"]
[tool.setuptools.packages.find]
where = ["."]
include = ["clams*"]
[tool.setuptools.package-data]
clams = ["develop/templates/**/*", "develop/templates/**/.*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=clams --cov-report=xml"
[tool.mypy]
files = ["clams"]
exclude = ["clams/develop/templates/"]
check_untyped_defs = true
[[tool.mypy.overrides]]
# dependencies that ship neither inline types nor a py.typed marker
module = ["mmif.*", "flask_restful.*", "gunicorn.*", "jsonschema.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
# optional backends (the `hf` extra) and the `metadata.py` of a running app
module = ["torch.*", "transformers.*", "metadata"]
ignore_missing_imports = true