66# See https://aboutcode.org for more information about AboutCode FOSS projects.
77#
88
9- PYTHON_EXE =python3.14
109VENV_LOCATION =.venv
1110ACTIVATE? =. ${VENV_LOCATION}/bin/activate;
1211MANAGE =${VENV_LOCATION}/bin/python manage.py
1312# Do not depend on Python to generate the SECRET_KEY
1413GET_SECRET_KEY =` head -c50 /dev/urandom | base64 | head -c50 `
15- PIP_ARGS=--find-links =./thirdparty/dist/ --no-index --no-cache-dir
1614# Customize with `$ make envfile ENV_FILE=/etc/dejacode/.env`
1715ENV_FILE =.env
1816DOCS_LOCATION =./docs
3634endif
3735
3836virtualenv :
39- @echo " -> Bootstrap the virtualenv with PYTHON_EXE= ${PYTHON_EXE} "
40- ${PYTHON_EXE} -m venv ${VENV_LOCATION}
37+ @echo " -> Bootstrap the virtualenv with uv "
38+ uv venv --allow-existing ${VENV_LOCATION}
4139
4240conf : virtualenv
4341 @echo " -> Install dependencies"
44- @ ${ACTIVATE} pip install ${PIP_ARGS} --editable .
42+ uv sync --frozen
4543 @echo " -> Create the var/ directory"
4644 @mkdir -p var
4745
4846dev : virtualenv
4947 @echo " -> Configure and install development dependencies"
50- @ ${ACTIVATE} pip install ${PIP_ARGS} --editable .[ dev]
48+ uv sync --frozen --extra dev
5149
5250envfile :
5351 @echo " -> Create the .env file and generate a secret key"
@@ -61,7 +59,7 @@ envfile_dev: envfile
6159
6260doc_dependencies : virtualenv
6361 @echo " -> Configure and install documentation dependencies"
64- @ ${ACTIVATE} pip install --editable .[docs]
62+ uv sync --frozen --extra dev
6563
6664doc8 :
6765 @echo " -> Run documentation .rst validation"
176174createsuperuser :
177175 ${DOCKER_EXEC} web ./manage.py createsuperuser
178176
179- .PHONY : virtualenv conf dev envfile envfile_dev doc_dependencies check doc8 valid check-deploy clean initdb postgresdb postgresdb_clean migrate upgrade run test docs build psql bash shell log createsuperuser
177+ .PHONY : virtualenv conf dev envfile envfile_dev doc_dependencies check outdated doc8 valid check-deploy clean initdb postgresdb postgresdb_clean migrate upgrade run test docs build psql bash shell log createsuperuser
0 commit comments