forked from mgedmin/check-manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·47 lines (37 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
47
.PHONY: all
all:
@echo "Nothing to build. Try 'make test' perhaps?"
.PHONY: test
test: ##: run tests
tox -p auto
.PHONY: check
check: ##: run tests without skipping any
# 'make check' is defined in release.mk and here's how you can override it
define check_recipe =
SKIP_NO_TESTS=1 tox
endef
.PHONY: coverage
coverage: ##: measure test coverage
tox -e coverage
.PHONY: diff-cover
diff-cover: coverage ##: show untested code in this branch
coverage xml
diff-cover coverage.xml
.PHONY: distcheck
distcheck: distcheck-self # also release.mk will add other checks
.PHONY: distcheck-self
distcheck-self:
tox -e check-manifest
.PHONY: releasechecklist
releasechecklist: check-readme # also release.mk will add other checks
.PHONY: check-readme
check-readme:
@rev_line=' rev: "'"`$(PYTHON) setup.py --version`"'"' && \
grep -q "^$$rev_line$$" README.rst || { \
echo "README.rst doesn't specify $$rev_line"; \
echo "Please run make update-readme"; exit 1; }
.PHONY: update-readme
update-readme:
sed -i -e 's/rev: ".*"/rev: "$(shell $(PYTHON) setup.py --version)"/' README.rst
FILE_WITH_VERSION = check_manifest.py
include release.mk