-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
48 lines (35 loc) · 1.08 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
48
# make pep8 to check for basic Python code compliance
# make pylint to check Python code for enhanced compliance including naming
# and documentation
# make coverage-report to check coverage of the python scripts by the tests
PYSOURCES=$(wildcard screed/*.py)
TESTSOURCES=$(wildcard screed/tests/*.py)
SOURCES=$(PYSOURCES) setup.py
VERSION=$(shell git describe --tags --dirty | sed s/v//)
all:
./setup.py build
install: FORCE
./setup.py build install
install-dependencies: FORCE
pip install -e .[all]
develop: FORCE
./setup.py develop
dist: dist/screed-$(VERSION).tar.gz
dist/screed-$(VERSION).tar.gz: $(SOURCES)
./setup.py sdist
clean: FORCE
./setup.py clean --all || true
rm -rf build/
rm -rf coverage-debug .coverage coverage.xml
rm -rf doc/_build
rm -rf .eggs/ *.egg-info/ .cache/ __pycache__/ *.pyc */*.pyc */*/*.pyc
pep8: $(PYSOURCES) $(TESTSOURCES)
pycodestyle --exclude=_version.py setup.py screed/
pylint: FORCE
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
setup.py screed || true
doc: FORCE
cd doc && make html
test: FORCE
pytest
FORCE: