-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
49 lines (37 loc) · 1.34 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
49
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " help to show this message"
@echo " all to to execute test-coverage and lint"
@echo " docs-clean to remove documentation"
@echo " docs-html to generate HTML documentation"
@echo " install to install in editable mode"
@echo " install-dev to install in editable modeplus the dev packages"
@echo " lint to run flake8"
@echo " package to generate installable Python packages"
@echo " package-clean to remove generated Python packages"
@echo " package-upload to upload dist/* to PyPI"
@echo " test to run unit tests"
@echo " test-coverage to run unit tests and measure test coverage"
all: test-coverage lint
docs-clean:
@cd docs; $(MAKE) clean
docs-html:
@cd docs; $(MAKE) html
install:
pip install -e .
install-dev:
pip install -e .[dev]
lint:
flake8 .
package: package-clean
python setup.py --quiet sdist bdist_wheel
package-clean:
rm -rf build dist pytest_fauxfactory.egg-info
package-upload: package
twine upload dist/* --sign
test:
coverage run --source pytest_fauxfactory -m py.test -v
test-coverage: test
coverage report -m
.PHONY: all docs-clean docs-html install install-dev lint package \
package-clean package-upload test test-coverage