@@ -32,8 +32,8 @@ where the exciting stuff is.
32
32
- ** git** : You need it for cloning the repository.
33
33
Install it [ from the git-scm website] ( https://git-scm.com/download ) .
34
34
35
- - ** Poetry ** : it is a package manager for Python dependencies. Follow the instructions on the
36
- [ Poetry website] ( https://python-poetry.org/docs/master/# installation ) to install the latest version.
35
+ - ** uv ** : it is a package manager for Python dependencies. Follow the instructions on the
36
+ [ uv website] ( https://docs.astral.sh/uv/getting-started/ installation/ ) to install the latest version.
37
37
38
38
- ** pre-commit** : We are using [ pre-commit] ( https://pre-commit.com/ ) to run
39
39
checks like linters, type checks and formatting issues.
@@ -72,16 +72,10 @@ You need to setup Git LFS once, before you will be able to run the whole test su
72
72
73
73
The recommended way to develop Python projects in a semi-isolated way is to use ` virtualenv ` .
74
74
75
- If you don't want to manage it separately, you can rely on ` Poetry ` to automatically
75
+ If you don't want to manage it separately, you can rely on ` uv ` to automatically
76
76
create a virtualenv for you on install.
77
77
78
- If you don't want Poetry to automatically create a virtualenv, you can turn it off with this command:
79
-
80
- ``` shell
81
- poetry config virtualenvs.create false
82
- ```
83
-
84
- Or instead of Poetry you can use ` pyenv ` . You can set the Python interpreter
78
+ Or instead of uv you can use ` pyenv ` . You can set the Python interpreter
85
79
version for the local folder only with:
86
80
87
81
```
@@ -90,29 +84,29 @@ pyenv local 3.12.7
90
84
91
85
### Installing Python dependencies
92
86
93
- We are using [ poetry ] ( https://python-poetry.org / ) to manage our Python
87
+ We are using [ uv ] ( https://docs.astral.sh/uv / ) to manage our Python
94
88
dependencies. To install all required dependencies for development, you can run
95
89
the following command:
96
90
97
91
```
98
- poetry install --with dev
92
+ uv install
99
93
```
100
94
101
95
Please note that it installs dependencies within the dedicated virtual
102
96
environment. So if you want to run ` unblob ` or ` pytest ` , you need to do it from
103
97
within the virtual environment:
104
98
105
- Using poetry run:
99
+ Using uv run:
106
100
107
101
```
108
- poetry run unblob
109
- poetry run pytest tests -v
102
+ uv run unblob
103
+ uv run pytest tests -v
110
104
```
111
105
112
106
By dropping into the virtual environment:
113
107
114
108
```
115
- poetry shell
109
+ uv run $SHELL
116
110
unblob
117
111
pytest tests -v
118
112
```
0 commit comments