-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
26 lines (19 loc) · 1.08 KB
/
Makefile
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
# This Makefile is based on the Makefile defined in the Python Best Practices repository:
# https://git.datapunt.amsterdam.nl/Datapunt/python-best-practices/blob/master/dependency_management/
#
# VERSION = 2020.01.29
PYTHON = python3
dc = docker compose
run = $(dc) run --rm
manage = $(run) app python manage.py
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
pip-tools:
pip install pip-tools
install: pip-tools ## Install requirements and sync venv with expected state as defined in requirements.txt
pip-sync requirements.txt requirements_dev.txt
requirements: pip-tools ## Upgrade requirements (in requirements.in) to latest versions and compile requirements.txt
pip-compile --upgrade --output-file requirements.txt requirements.in
pip-compile --upgrade --output-file requirements_test.txt requirements_test.in
pip-compile --upgrade --output-file requirements_dev.txt requirements_dev.in
upgrade: requirements install ## Run 'requirements' and 'install' targets