Skip to content

Commit ee3c53b

Browse files
committed
Migrate from Poetry to UV per getzep#420
1 parent 7d82c62 commit ee3c53b

File tree

3 files changed

+3921
-27
lines changed

3 files changed

+3921
-27
lines changed

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
# Define variables
44
PYTHON = python3
5-
POETRY = poetry
6-
PYTEST = $(POETRY) run pytest
7-
RUFF = $(POETRY) run ruff
8-
MYPY = $(POETRY) run mypy
5+
UV = uv
6+
PYTEST = $(UV) run pytest
7+
RUFF = $(UV) run ruff
8+
MYPY = $(UV) run mypy
99

1010
# Default target
1111
all: format lint test
1212

1313
# Install dependencies
1414
install:
15-
$(POETRY) install --with dev
15+
$(UV) sync --group dev
1616

1717
# Format code
1818
format:

pyproject.toml

+21-22
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,32 @@ anthropic = ["anthropic>=0.49.0"]
3030
groq = ["groq>=0.2.0"]
3131
google-genai = ["google-genai>=1.8.0"]
3232

33-
[tool.poetry.group.dev.dependencies]
34-
mypy = ">=1.11.1"
35-
groq = ">=0.2.0"
36-
anthropic = ">=0.49.0"
37-
google-genai = ">=1.8.0"
38-
ipykernel = ">=6.29.5"
39-
jupyterlab = ">=4.2.4"
40-
diskcache-stubs = ">=5.6.3.6.20240818"
41-
langgraph = ">=0.2.15"
42-
langchain-anthropic = ">=0.2.4"
43-
langsmith = ">=0.1.108"
44-
langchain-openai = ">=0.2.6"
45-
sentence-transformers = ">=3.2.1"
46-
transformers = ">=4.45.2"
47-
voyageai = ">=0.2.3"
48-
pytest = ">=8.3.3"
49-
pytest-asyncio = ">=0.24.0"
50-
pytest-xdist = ">=3.6.1"
51-
ruff = ">=0.7.1"
33+
[dependency-groups]
34+
dev = [
35+
"mypy>=1.11.1",
36+
"groq>=0.2.0",
37+
"anthropic>=0.49.0",
38+
"google-genai>=1.8.0",
39+
"ipykernel>=6.29.5",
40+
"jupyterlab>=4.2.4",
41+
"diskcache-stubs>=5.6.3.6.20240818",
42+
"langgraph>=0.2.15",
43+
"langchain-anthropic>=0.2.4",
44+
"langsmith>=0.1.108",
45+
"langchain-openai>=0.2.6",
46+
"sentence-transformers>=3.2.1",
47+
"transformers>=4.45.2",
48+
"voyageai>=0.2.3",
49+
"pytest>=8.3.3",
50+
"pytest-asyncio>=0.24.0",
51+
"pytest-xdist>=3.6.1",
52+
"ruff>=0.7.1"
53+
]
5254

5355
[build-system]
5456
requires = ["poetry-core"]
5557
build-backend = "poetry.core.masonry.api"
5658

57-
[tool.poetry]
58-
requires-poetry = ">=2.0"
59-
6059
[tool.pytest.ini_options]
6160
pythonpath = ["."]
6261

0 commit comments

Comments
 (0)