File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -55,24 +55,16 @@ Finally, create a bucket on MinIO for Tansu:
5555docker 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
7264Run the example:
7365
7466``` shell
75- python example.py
67+ uv run example.py
7668```
7769
7870You should see the following output:
Original file line number Diff line number Diff line change @@ -5,7 +5,4 @@ docker compose --progress plain up --no-color --quiet-pull --detach --remove-orp
55mc ready local
66mc alias set local http://localhost:9000 minioadmin minioadmin
77mc 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
You can’t perform that action at this time.
0 commit comments