Skip to content

Commit bbc320d

Browse files
committed
use uv run/sync
1 parent 0609779 commit bbc320d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,16 @@ Finally, create a bucket on MinIO for Tansu:
5555
docker compose exec minio /usr/bin/mc mb local/tansu
5656
```
5757

58-
Using [uv](https://docs.astral.sh/uv/), setup a virtual Python development environment:
58+
Using [uv](https://docs.astral.sh/uv/), sync the project:
5959

6060
```shell
61-
mkdir -p venvs
62-
test -d venvs/dev || uv venv -p 3.12 venvs/dev
63-
source venvs/dev/bin/activate
64-
```
65-
66-
Install [kafka-python](https://github.com/dpkp/kafka-python):
67-
68-
```shell
69-
uv pip install kafka-python
61+
uv sync --all-groups
7062
```
7163

7264
Run the example:
7365

7466
```shell
75-
python example.py
67+
uv run example.py
7668
```
7769

7870
You should see the following output:

bin/up

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ docker compose --progress plain up --no-color --quiet-pull --detach --remove-orp
55
mc ready local
66
mc alias set local http://localhost:9000 minioadmin minioadmin
77
mc mb local/tansu
8-
uv --color never --no-progress venv -p 3.12
9-
echo "source .venv/bin/activate" >> /root/.bashrc
10-
source .venv/bin/activate
11-
uv --color never --no-progress pip install --link-mode=copy kafka-python
8+
uv sync --all-groups

0 commit comments

Comments
 (0)