Skip to content

Commit 4ce5910

Browse files
author
Erick Friis
committed
multiple: fix uv path deps
1 parent 8d0e31c commit 4ce5910

File tree

2 files changed

+27
-35
lines changed

2 files changed

+27
-35
lines changed

libs/cli/pyproject.toml

+14-24
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ requires = ["pdm-backend"]
33
build-backend = "pdm.backend"
44

55
[project]
6-
authors = [
7-
{name = "Erick Friis", email = "[email protected]"},
8-
]
9-
license = {text = "MIT"}
6+
authors = [{ name = "Erick Friis", email = "[email protected]" }]
7+
license = { text = "MIT" }
108
requires-python = "<4.0,>=3.9"
119
dependencies = [
1210
"typer[all]<1.0.0,>=0.9.0",
@@ -31,33 +29,25 @@ langchain = "langchain_cli.cli:app"
3129
langchain-cli = "langchain_cli.cli:app"
3230

3331
[dependency-groups]
34-
dev = [
35-
"pytest<8.0.0,>=7.4.2",
36-
"pytest-watch<5.0.0,>=4.2.0",
37-
]
38-
lint = [
39-
"ruff<1.0,>=0.5",
40-
"mypy<2.0.0,>=1.13.0",
41-
]
42-
test = [
43-
"langchain @ file:///${PROJECT_ROOT}/../langchain",
44-
]
45-
typing = [
46-
"langchain @ file:///${PROJECT_ROOT}/../langchain",
47-
]
32+
dev = ["pytest<8.0.0,>=7.4.2", "pytest-watch<5.0.0,>=4.2.0"]
33+
lint = ["ruff<1.0,>=0.5", "mypy<2.0.0,>=1.13.0"]
34+
test = ["langchain"]
35+
typing = ["langchain"]
4836
test_integration = []
4937

38+
[tool.uv.sources]
39+
langchain = { path = "../langchain", editable = true }
5040

5141
[tool.ruff.lint]
5242
select = [
53-
"E", # pycodestyle
54-
"F", # pyflakes
55-
"I", # isort
56-
"T201", # print
43+
"E", # pycodestyle
44+
"F", # pyflakes
45+
"I", # isort
46+
"T201", # print
5747
]
5848

5949
[tool.mypy]
6050
exclude = [
61-
"langchain_cli/integration_template",
62-
"langchain_cli/package_template",
51+
"langchain_cli/integration_template",
52+
"langchain_cli/package_template",
6353
]

libs/community/pyproject.toml

+13-11
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ test = [
5151
"blockbuster<1.6,>=1.5.13",
5252
"cffi<1.17.1; python_version < \"3.10\"",
5353
"cffi; python_version >= \"3.10\"",
54-
"langchain-core @ file:///${PROJECT_ROOT}/../core",
55-
"langchain @ file:///${PROJECT_ROOT}/../langchain",
56-
"langchain-tests @ file:///${PROJECT_ROOT}/../standard-tests",
54+
"langchain-core",
55+
"langchain",
56+
"langchain-tests",
5757
"toml>=0.10.2",
5858
]
5959
codespell = ["codespell<3.0.0,>=2.2.0"]
@@ -63,11 +63,7 @@ lint = [
6363
"cffi<1.17.1; python_version < \"3.10\"",
6464
"cffi; python_version >= \"3.10\"",
6565
]
66-
dev = [
67-
"jupyter<2.0.0,>=1.0.0",
68-
"setuptools<68.0.0,>=67.6.1",
69-
"langchain-core @ file:///${PROJECT_ROOT}/../core",
70-
]
66+
dev = ["jupyter<2.0.0,>=1.0.0", "setuptools<68.0.0,>=67.6.1", "langchain-core"]
7167
typing = [
7268
"mypy<2.0,>=1.12",
7369
"types-pyyaml<7.0.0.0,>=6.0.12.2",
@@ -77,11 +73,17 @@ typing = [
7773
"types-chardet<6.0.0.0,>=5.0.4.6",
7874
"types-redis<5.0.0.0,>=4.3.21.6",
7975
"mypy-protobuf<4.0.0,>=3.0.0",
80-
"langchain-core @ file:///${PROJECT_ROOT}/../core",
81-
"langchain-text-splitters @ file:///${PROJECT_ROOT}/../text-splitters",
82-
"langchain @ file:///${PROJECT_ROOT}/../langchain",
76+
"langchain-core",
77+
"langchain-text-splitters",
78+
"langchain",
8379
]
8480

81+
[tool.uv.sources]
82+
langchain-core = { path = "../core", editable = true }
83+
langchain = { path = "../langchain", editable = true }
84+
langchain-tests = { path = "../standard-tests", editable = true }
85+
langchain-text-splitters = { path = "../text-splitters", editable = true }
86+
8587

8688
[tool.ruff]
8789
target-version = "py39"

0 commit comments

Comments
 (0)