Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (76 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (76 loc) · 2.68 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
# Workspace root — not a package. Controls uv workspace and shared dev tooling.
# uv users: `uv sync` installs all packages in editable mode.
# pip users: `pip install -e coordinode/` installs individual packages.
[project]
name = "coordinode-workspace"
version = "4.0.1"
license = { text = "Apache-2.0" }
authors = [{ name = "Dmitry Prudnikov", email = "mail@polaz.com" }]
requires-python = ">=3.11"
dependencies = [
"googleapis-common-protos>=1.74.0",
]
[tool.uv]
package = false # virtual root — not installed as a package
# CI and the release run `--no-build`, relying on uv exempting this
# workspace's own packages from it; older uv applied it to them too and
# refused to install or build them. Verified on 0.12.12 and 0.12.18.
required-version = ">=0.12.12"
[tool.uv.workspace]
members = [
"coordinode",
"langchain-coordinode",
"llama-index-coordinode",
]
[tool.uv.sources]
# Local editable installs for workspace members
coordinode = { workspace = true }
langchain-coordinode = { workspace = true }
llama-index-graph-stores-coordinode = { workspace = true }
[dependency-groups]
# The three workspace members are listed here on purpose. Declaring them in
# [tool.uv.workspace] alone makes them resolvable, not installed, so `uv sync`
# left the environment without them and every test importing coordinode failed
# on a machine that had not installed them by hand at some point.
dev = [
"coordinode",
"langchain-coordinode",
"llama-index-graph-stores-coordinode",
"grpcio-tools>=1.84.0",
"ipykernel>=7.3.0",
"langchain>=1.0",
"langchain-community>=0.3",
"langchain-core>=1.6.10",
"langchain-openai>=1.7.1",
"langgraph>=1.2.15",
"llama-index-core>=0.14",
"nbconvert>=7.17.2",
"nest-asyncio>=1.6.0",
"pytest>=9",
"pytest-asyncio>=1.4",
"pytest-timeout>=2.4",
"ruff>=0.17.0",
]
# What the demo image installs, exported from this lock at build time. The
# three workspace members bring their own dependencies in (the export leaves
# the members themselves out; the image installs them from the mounted
# checkout), so grpcio and protobuf are exactly the versions the tests run.
# hatchling, hatch-vcs and editables (hatchling's editable-wheel helper) build
# those editable installs without the index.
demo = [
"coordinode",
"langchain-coordinode",
"llama-index-graph-stores-coordinode",
"editables>=0.5",
"grpcio-tools>=1.84.0",
"hatch-vcs>=0.5",
"hatchling>=1.27",
"langchain>=1.0",
"langchain-community>=0.3",
"langchain-openai>=1.7.1",
"langgraph>=1.2.15",
"llama-index-core>=0.14",
"llama-index-embeddings-openai>=0.7",
"llama-index-llms-openai>=0.8.3",
"nest-asyncio>=1.6.0",
]