-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (26 loc) · 807 Bytes
/
Makefile
File metadata and controls
40 lines (26 loc) · 807 Bytes
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
38
39
40
# convenience makefile to run buildout and tests
.DEFAULT_GOAL := build
run:
@env/bin/python3 -m src.basic
build:
virtualenv -p python3 env
@env/bin/pip install -r requirements.txt
@if [ -f requirements-dev.txt ]; then env/bin/pip install -r requirements-dev.txt; fi;
package: pip-compile pipdeptree
pip-compile:
@env/bin/pip-compile --output-file requirements.txt setup.py requirements-dev.in
pip-upgrade:
@env/bin/pip-compile --upgrade --output-file requirements.txt setup.py requirements-dev.in
pipdeptree:
@env/bin/pipdeptree > requirements-tree.txt
pip-sync:
@env/bin/pip-sync
clean:
@rm -rf env
@rm -rf __pycache__
@rm -rf .cache
sort:
@env/bin/isort -rc -fas -sl src
tests:
@env/bin/pytest --cov=src --cov-report=html --cov-fail-under=100 tests/* -v
.PHONY: all tests clean