-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile
32 lines (24 loc) · 936 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
TEST_OPTIONS=-m unittest discover --start-directory tests --top-level-directory .
CPU_COUNT=$(shell python -c "from multiprocessing import cpu_count; print(cpu_count())")
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " help to show this message"
@echo " test to run unit tests"
@echo " docs-html to generate HTML documentation"
@echo " docs-clean to remove documentation"
@echo " package to generate installable Python packages"
@echo " package-clean to remove generated Python packages"
@echo " publish to upload dist/* to PyPI"
docs-html:
@cd docs; $(MAKE) html
docs-clean:
@cd docs; $(MAKE) clean
test:
python $(TEST_OPTIONS)
package:
./setup.py sdist bdist_wheel --universal
package-clean:
rm -rf build dist nailgun.egg-info
publish: package
twine upload dist/*
.PHONY: help docs-html docs-clean test package package-clean publish