Skip to content

Commit 81209ee

Browse files
goffrieConvex, Inc.
authored andcommitted
Migrate py_client to uv (#40917)
Use uv instead of poetry for dev workflows (e.g. to install maturin). GitOrigin-RevId: 624490238cb8a82dd91227cc1f58aba615d3e3c5
1 parent 4cdefa5 commit 81209ee

File tree

5 files changed

+781
-1419
lines changed

5 files changed

+781
-1419
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Please share any general questions, feature requests, or product feedback in our
77
excited to see what you build on Convex!
88

99
Please ensure that python code is formatted with
10-
[black](https://pypi.org/project/black/) and markdown files are formatted with
11-
[prettier](https://prettier.io/).
10+
[ruff](https://docs.astral.sh/ruff/formatter/) and markdown files are formatted
11+
with [prettier](https://prettier.io/).
1212

1313
Run tests with
1414

1515
```
16-
poetry install
17-
poetry run pytest
16+
uv run maturin dev --uv
17+
uv run pytest
1818
```
1919

2020
Convex is a fast moving project developed by a dedicated team. We're excited to
@@ -39,20 +39,17 @@ You'll need a Rust toolchain installed (e.g. through https://rustup.rs/) to
3939
build this library when developing locally.
4040

4141
```sh
42-
# install dependencies
43-
poetry install --no-root
44-
4542
# build _convex
4643
# This is requred to run tests and to use from other local installations (like smoke tests)
47-
poetry run maturin dev
44+
uv run maturin dev --uv
4845

4946
# run a test script
50-
poetry run python simple_example.py
47+
uv run python simple_example.py
5148

5249
# interactive shell
53-
poetry run python
50+
uv run python
5451
>>> from convex import ConvexClient
55-
>>> client = ConvexClint("https://flippant-cardinal-923.convex.cloud")
52+
>>> client = ConvexClient("https://flippant-cardinal-923.convex.cloud")
5653
>>> print(client.query("users:list"))
5754

5855
# The wrapped Rust client can also be run in an interactive shell

PUBLISHING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ python-client-build.yml and copy it into the dist directory.
2323
```
2424
# This is only required for distribution
2525
rm -r dist python/_convex/_convex.*.so
26-
poetry install
27-
poetry run maturin build --out dist
26+
uv run maturin build --out dist
2827
# test publish
2928
MATURIN_REPOSITORY=testpypi maturin upload dist/*
3029
# Now you can download thei convex package from test pypi

0 commit comments

Comments
 (0)