-
-
Notifications
You must be signed in to change notification settings - Fork 421
/
Makefile
35 lines (28 loc) · 808 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
.PHONY: clean test lint
TEST_PATH=./
help:
@echo " clean"
@echo " Remove python artifacts and build artifacts."
@echo " lint"
@echo " Check style with flake8."
@echo " test"
@echo " Run py.test"
@echo " check-readme"
@echo " Check if the readme can be converted from md to rst for pypi"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf docs/_build
lint:
py.test --pep8 -m pep8
test: clean
py.test tests --verbose --pep8 --color=yes $(TEST_PATH)
livedocs:
cd docs && make livehtml
check-readme:
# if this runs through we can be sure the readme is properly shown on pypi
python setup.py check --restructuredtext --strict