-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
84 lines (75 loc) · 2.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
[tool.poetry]
name = "vectorapi"
version = "0.1.0"
description = "Vector API for embeddings."
authors = ["Grafana ML <[email protected]>"]
readme = "README.md"
include = ["README.md"]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
asyncpg = "0.28.0"
datasets = "2.14.6"
fastapi = "0.104.1"
fastapi-route-logger-middleware = "0.2.3"
loguru = "0.7.2"
opentelemetry-api = "1.20.0"
opentelemetry-exporter-otlp-proto-grpc = "1.20.0"
opentelemetry-instrumentation-asyncpg = "0.41b0"
opentelemetry-instrumentation-fastapi = "0.41b0"
opentelemetry-instrumentation-sqlalchemy = "0.41b0"
opentelemetry-propagator-jaeger = "1.20.0"
opentelemetry-sdk = "1.20.0"
orjson = "3.9.10"
pgvector = "0.2.3"
pydantic-settings = "2.0.3"
sentence-transformers = "2.2.2"
sqlalchemy = { extras = ["asyncio"], version = "2.0.22" }
starlette-exporter = "0.16.0"
uvicorn = { extras = ["standard"], version = "0.23.2" }
# force torch cpu install
torch = [
{ markers = "sys_platform == 'linux' and platform_machine == 'x86_64'", source = "pytorch-cpu", version = "2.1.1+cpu" },
{ markers = "sys_platform == 'linux' and platform_machine == 'aarch64'", url = "https://download.pytorch.org/whl/cpu/torch-2.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl" },
{ version = "2.1.1", source = "pypi", platform = "darwin" },
]
[tool.poetry.group.dev.dependencies]
black = "23.10.1"
coverage = "7.3.2"
flake8 = "6.1.0"
httpx = "0.25.0"
mypy = "1.6.1"
pytest = "7.4.3"
pytest-asyncio = "0.22.0"
pytest-benchmark = "4.0.0"
pytest-httpx = "0.26.0"
ruff = "0.1.3"
types-orjson = "3.6.2"
[[tool.poetry.source]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[tool.black]
line-length = 100
target-version = ['py310', 'py311']
[tool.ruff]
line-length = 100
target-version = 'py310'
[tool.mypy]
plugins = ["pydantic.mypy"]
follow_imports = "silent"
explicit_package_bases = true
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
markers = ["Integration: marks tests as integration tests"]