-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (47 loc) · 1.65 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
50
51
52
53
54
55
56
57
58
59
60
.PHONY: clean-pyc clean-build docs requirements
all: help
help:
@echo "django-menuhin version 0.1.0"
@echo
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "requirements - collect all subrequirements files"
@echo "test - run tests quickly with the current Python"
@echo "test-all - run tests on every Python version with tox"
@echo "test-project - launch the test project"
@echo "check - basic sanity checking of the package"
@echo "docs - build the sphinx documentation into HTML and JSON"
@echo "release - package a release"
release: clean requirements
wget http://b.repl.ca/v1/version-0.1.0-lightgrey.png --output-document=docs/version.png
python setup.py sdist bdist_wheel
bumpversion --patch
twine upload dist/*
clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} \;
find . -name '*.pyo' -exec rm -f {} \;
find . -name '*~' -exec rm -f {} \;
test: requirements
python -B -tt -W once setup.py test --failfast
test-all: requirements
tox
test-project:
pip install -r test_project/requirements.txt
python -B -tt -W once test_project
shell:
python -B -tt -W once test_project shell
check:
rm -f LONGDESC.html
python setup.py --long-description | rst2html.py > LONGDESC.html
@echo
@echo "Long description written to LONGDESC.html"
docs:
cd docs && sphinx-build -b html -d _build/doctrees . _build/html
cd docs && sphinx-build -b json -d _build/doctrees . _build/json
@echo
@echo "Sphinx docs generated into HTML and JSON in the _build directory"