-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
46 lines (35 loc) · 852 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
45
46
DISTFILES := $(shell find dist -name 'donuts*' | grep -v asc)
FULLTEST_CACHE_DIR := /tmp/donutscache
all: help
help:
@echo "Tasks:"
@echo "- test"
@echo "- fulltest"
@echo "- coverage"
@echo "- package"
@echo "- build-docs"
@echo "- build"
@echo "- tox"
@echo "- sign"
@echo "- upload"
test:
python setup.py test
fulltest:
mkdir -p $(FULLTEST_CACHE_DIR)
python setup.py test -a "--cache-dir=$(FULLTEST_CACHE_DIR)" --remote-data
coverage:
python setup.py test -a "--cache-dir=$(FULLTEST_CACHE_DIR) --cov donuts --cov-report html --cov-report term" --remote-data
build-docs:
python setup.py build_docs
tox:
ctox
package:
@-rm -r dist 2>/dev/null
@mkdir -p dist
python setup.py sdist bdist_wheel
upload:
twine upload dist/*
sign:
for file in $(DISTFILES); do gpg --detach-sign -a $$file; done
build:
python setup.py build