11# Use python executables inside venv
2- export PATH := ./ venv/bin:$(PATH )
2+ export PATH := .venv/bin:$(PATH )
33export PYTHONPATH =.
44
55# 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
88
99# 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
1111 pip install --quiet --upgrade ' pip==23.3.1' ' pip-tools==7.3'
1212
1313# 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
1515 pip-compile \
1616 --quiet --generate-hashes --max-rounds=20 --strip-extras \
1717 --resolver=backtracking \
1818 --output-file dev-requirements.txt \
19- dev-requirements.in setup.cfg
19+ dev-requirements.in pyproject.toml
2020
2121# upgrades the dependencies to their latest/matching version
22- upgrade : venv
22+ upgrade : . venv
2323 pip-compile \
2424 --quiet --generate-hashes --max-rounds=20 --strip-extras \
2525 --upgrade \
@@ -30,8 +30,8 @@ upgrade: venv
3030
3131# creates the venv if not present then install the dependencies, the package and pre-commit
3232.PHONY : install
33- install : venv
34- pip-sync dev-requirements.txt
33+ install : . venv
34+ pip-sync dev-requirements.txt
3535 # install pylint_pytest (deps are already handled by the line before)
3636 pip install --no-deps -e .
3737 # install pre-commit hooks
0 commit comments