Skip to content

Commit da6f12d

Browse files
goffrieConvex, Inc.
authored andcommitted
Migrate remaining poetry users to uv (#40927)
GitOrigin-RevId: 5277ebcc91cf5d8543cdfffa49031d490ff1acb2
1 parent 6e00a4b commit da6f12d

File tree

8 files changed

+187
-271
lines changed

8 files changed

+187
-271
lines changed

npm-packages/private-demos/text-importer/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ which was MIT licensed at the time it was downloaded.
1010
Download the file from drive or kaggle, extract the archive into a .jsonl file,
1111
then run the script with:
1212

13-
1. `poetry install`
14-
2. `just rush update`
15-
3. `npx convex dev --once`
16-
4. `poetry run python main.py <path_to_jsonl>`
13+
1. `just rush update`
14+
2. `npx convex dev --once`
15+
3. `uv run main <path_to_jsonl>`
1716

1817
You can adapt the python code to parse other formats if you'd like. The main
1918
purpose of this is to test bulk imports, particularly with vectors.

npm-packages/private-demos/text-importer/poetry.lock

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
[tool.poetry]
1+
[project]
22
name = "text-importer"
33
version = "0.1.0"
44
description = "Vector importer script"
5-
authors = ["Convex, Inc. <no-reply@convex.dev>"]
6-
5+
authors = [{ name = "Convex, Inc.", email = "no-reply@convex.dev" }]
6+
requires-python = "~=3.13.0"
7+
dependencies = [
8+
"python-dotenv>=1.0.0,<2",
9+
"convex>=0.6.0,<0.7",
10+
]
711

8-
[tool.poetry.dependencies]
9-
python-dotenv = "^1.0.0"
10-
python = "~3.9"
11-
convex = "^0.6.0"
12+
[project.scripts]
13+
main = "main:main"
1214

1315
[build-system]
1416
requires = ["poetry-core>=1.0.0"]
1517
build-backend = "poetry.core.masonry.api"
1618

17-
venv = ".venv"
18-
19-
[tool.poetry.scripts]
20-
main = "text-importer.main:main"
21-
19+
[tool.poetry]
20+
packages = [{ include = "main.py" }]

npm-packages/private-demos/text-importer/uv.lock

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm-packages/private-demos/vector-importer/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ which was MIT licensed at the time it was downloaded.
1010
Download the file from drive or kaggle, extract the archive into a .jsonl file,
1111
then run the script with:
1212

13-
1. `poetry install`
14-
2. `just rush update`
15-
3. `npx convex dev --once`
16-
4. `poetry run python main.py <path_to_jsonl>`
13+
1. `just rush update`
14+
2. `npx convex dev --once`
15+
3. `uv run main <path_to_jsonl>`
1716

1817
You can adapt the python code to parse other formats if you'd like. The main
1918
purpose of this is to test bulk imports, particularly with vectors.

0 commit comments

Comments
 (0)