HOWTO.txt
1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ATTENTION (for developpers only) :
HOW TO UPDATE THE requirements.txt file ?
---------------------------------------
Do not modify the requirements.txt file directly,
as it is generated by pip-tools.
pip install pip-tools
Modify instead the requirements.in file
and then, execute this command to synchronize (update) the requirements.txt file :
python -m piptools compile requirements.in
Do exactly the same for the requirements_dev.txt file, do not modify it
directly, but requirements_dev.in instead, then update it with :
python -m piptools compile requirements_dev.in
HOW TO SYNC (install or update) YOUR PYTHON ENVIRONMENT WITH THE requirements.txt file ?
--------------------------------------------------------------------------------------
- for « non dev » :
python -m piptools sync requirements.txt
OR
- for « dev » :
python -m piptools sync requirements.txt requirements_dev.txt
NB: You could also do it the traditional way :
- for « non dev » :
python -m pip install -r requirements.txt
- for « dev » : execute the previous command AND this one :
python -m pip install -r requirements_dev.txt