-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (70 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (70 loc) · 2.04 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
[build-system]
requires = [ "setuptools>=61" ]
[project]
name = "doc-api"
version = "0.0.0"
description = "DocAPI"
authors = [
{name = "Jan Kohút", email = "ikohut@fit.vut.cz"},
{name = "Martin Kišš", email = "ikiss@fit.vut.cz"},
{name = "Michal Hradiš", email = "ihradis@fit.vut.cz"}
]
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.10"
# Everything a consumer reaches through the shared layer: doc_api.connector,
# doc_api.adapter and doc_api.api.schemas. Installing doc-api on its own gives a
# usable worker or client without pulling in the service stack.
# Everything the shared layer imports: doc_api.connector, doc_api.adapter and
# doc_api.api.schemas. Installing doc-api on its own gives a usable worker or
# client without pulling in the service stack.
dependencies = [
"fastapi",
"numpy",
"opencv_python",
"pydantic",
"Requests"
]
[project.optional-dependencies]
# Running the API service itself. SQLAlchemy's postgresql_asyncpg extra covers
# the asyncpg driver named in the DATABASE_URL and the greenlet its async engine
# runs on; neither is imported directly, and greenlet is otherwise only
# installed on some architectures. python-multipart is likewise never imported
# -- FastAPI needs it to parse uploads.
server = [
"aiofiles",
"alembic",
"defusedxml",
"mailinglogger",
"natsort",
"python-multipart",
"SQLAlchemy[postgresql_asyncpg]",
"starlette",
"uvicorn"
]
# doc_worker needs nothing beyond the base. Declared so that consumers can
# depend on doc-api[worker] and keep working if that stops being true.
worker = []
client = [
"natsort"
]
dev = [
"httpx",
"pytest",
"pytest_asyncio"
]
all = [
"doc-api[server,worker,client,dev]"
]
[project.urls]
repository = "https://github.com/DCGM/DocAPI"
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"*" = ["*.*"]
[tool.setuptools.package-dir]
"doc_api" = "doc_api"
"doc_client" = "doc_client"
"doc_worker" = "doc_worker"
[project.scripts]
doc_api = "doc_api.run:main"