-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 1.29 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
27
28
29
30
31
32
33
34
35
36
37
SHELL := /bin/bash
current_dir = $(shell pwd)
PYTHON = /usr/bin/env PYTHONPATH=. $(shell pwd)/.virtualenv/bin/python
DEFAULT: tasks
clean: nuke-pyc
developer-setup:
virtualenv --python=/usr/bin/python3 .virtualenv
source .virtualenv/bin/activate
.virtualenv/bin/pip install -r requirements.txt -r requirements-dev.txt
.virtualenv/bin/pip install -e .
make pip-compile: pip-compile-app pip-compile-dev
git diff --color=always --exit-code requirements.txt requirements-dev.txt
pip-compile-app: __pip-compile-app
git diff --color=always --exit-code requirements.txt
__pip-compile-app:
@.virtualenv/bin/pip-compile --verbose --allow-unsafe --no-emit-trusted-host --upgrade --output-file requirements.txt requirements.in
pip-compile-dev: __pip-compile-app
git diff --color=always --exit-code requirements-dev.txt
__pip-compile-dev:
@.virtualenv/bin/pip-compile --verbose --allow-unsafe --no-emit-trusted-host --upgrade --output-file requirements-dev.txt requirements-dev.in
nuke-pyc:
@find src -name '*.pyc' -exec unlink '{}' \;
tasks:
@echo 'clean Delete temp files'
@echo 'developer-setup Setup virtualenv and install dependencies'
@echo 'pip-compile Update versions of python dependencies in requirements.txt'