-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 746 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 746 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
PYTHON := python3
TOX := $(PYTHON) -m tox --sitepackages
DOCS_DIR = docs
.NOTPARALLEL:
.PHONY: all clean clean_socket cscope docs lint pep8 test
all: tox
echo "All tests passed"
clean_coverage:
rm -f .coverage .coverage.*
tox: clean_socket
$(TOX)
clean: clean_coverage
rm -fr build dist *.egg-info .tox MANIFEST .cache
find ./ -name '*.py[co]' -exec rm -f {} \;
find ./ -depth -name __pycache__ -exec rm -rf {} \;
README: README.md
echo -e '.. WARNING: AUTO-GENERATED FILE. DO NOT EDIT.\n' > $@
pandoc --from=markdown --to=rst $< >> $@
.PHONY: egg_info packages
egg_info:
$(PYTHON) setup.py egg_info
packages: egg_info README
$(PYTHON) setup.py packages
cd dist && for F in *.gz; do sha512sum $${F} > $${F}.sha512sum.txt; done