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:
55
55
docker compose exec minio /usr/bin/mc mb local/tansu
56
56
```
57
57
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 :
59
59
60
60
``` 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
70
62
```
71
63
72
64
Run the example:
73
65
74
66
``` shell
75
- python example.py
67
+ uv run example.py
76
68
```
77
69
78
70
You 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
5
5
mc ready local
6
6
mc alias set local http://localhost:9000 minioadmin minioadmin
7
7
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
You can’t perform that action at this time.
0 commit comments