-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
44 lines (33 loc) · 879 Bytes
/
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
38
39
40
41
42
43
44
TESTARGS := ${testargs}
SHELL := /bin/bash
.PHONY: docs
all: format mypy test
format:
venv/bin/black dwork/
venv/bin/black examples/
mypy:
venv/bin/mypy dwork/
venv/bin/mypy dwork_tests/
test:
venv/bin/py.test dwork_tests ${TESTARGS}
setup: venv requirements
docs-setup: venv docs-requirements
teardown:
rm -rf venv
rm -rf docs/build/*
venv:
virtualenv --python python3 venv
docs-requirements:
venv/bin/pip install -r docs/requirements.txt
requirements:
venv/bin/pip install -r requirements.txt
venv/bin/pip install -r requirements-optional.txt
venv/bin/pip install -r requirements-test.txt
update:
venv/bin/pip install pur
venv/bin/pur -r requirements.txt
venv/bin/pur -r requirements-test.txt
release: venv
venv/bin/pip install twine
venv/bin/python setup.py sdist
venv/bin/twine upload --skip-existing dist/* -u ${TWINE_USER} -p ${TWINE_PASSWORD}