1
1
# Use python executables inside venv
2
- export PATH := ./ venv/bin:$(PATH )
2
+ export PATH := .venv/bin:$(PATH )
3
3
export PYTHONPATH =.
4
4
5
5
# creates the venv
6
- venv/bin/python3.11 :
7
- python3.11 -m venv venv
6
+ . venv/bin/python3.11 :
7
+ python3.11 -m venv . venv
8
8
9
9
# makes sures the venv contains a given version of pip and pip-tools
10
- venv : venv/bin/python3.11
10
+ . venv : . venv/bin/python3.11
11
11
pip install --quiet --upgrade ' pip==23.3.1' ' pip-tools==7.3'
12
12
13
13
# generates a lock file with pinned version of all dependencies to be used by the CI and local devs
14
- dev-requirements.txt : venv dev-requirements.in setup.py
14
+ dev-requirements.txt : . venv dev-requirements.in pyproject.toml
15
15
pip-compile \
16
16
--quiet --generate-hashes --max-rounds=20 --strip-extras \
17
17
--resolver=backtracking \
18
18
--output-file dev-requirements.txt \
19
- dev-requirements.in setup.cfg
19
+ dev-requirements.in pyproject.toml
20
20
21
21
# upgrades the dependencies to their latest/matching version
22
- upgrade : venv
22
+ upgrade : . venv
23
23
pip-compile \
24
24
--quiet --generate-hashes --max-rounds=20 --strip-extras \
25
25
--upgrade \
@@ -30,8 +30,8 @@ upgrade: venv
30
30
31
31
# creates the venv if not present then install the dependencies, the package and pre-commit
32
32
.PHONY : install
33
- install : venv
34
- pip-sync dev-requirements.txt
33
+ install : . venv
34
+ pip-sync dev-requirements.txt
35
35
# install pylint_pytest (deps are already handled by the line before)
36
36
pip install --no-deps -e .
37
37
# install pre-commit hooks
0 commit comments