blob: cfb7416fa77ede8d15cdb880d7d8924e9a1e6201 [file] [log] [blame]
dfilppi9981f552017-08-07 20:10:53 +00001.PHONY: release install files test docs prepare publish
2
3all:
4 @echo "make release - prepares a release and publishes it"
5 @echo "make dev - prepares a development environment"
6 @echo "make install - install on local system"
7 @echo "make files - update changelog and todo files"
8 @echo "make test - run tox"
9 @echo "make docs - build docs"
10 @echo "prepare - prepare module for release (CURRENTLY IRRELEVANT)"
11 @echo "make publish - upload to pypi"
12
13release: test docs publish
14
15dev:
16 pip install -rdev-requirements.txt
17 python setup.py develop
18
19install:
20 python setup.py install
21
22files:
23 grep '# TODO' -rn * --exclude-dir=docs --exclude-dir=build --exclude=TODO.md | sed 's/: \+#/: # /g;s/:#/: # /g' | sed -e 's/^/- /' | grep -v Makefile > TODO.md
24 git log --oneline --decorate --color > CHANGELOG
25
26test:
27 pip install tox
28 tox
29
30docs:
31 pip install sphinx sphinx-rtd-theme
32 cd docs && make html
33 pandoc README.md -f markdown -t rst -s -o README.rst
34
35prepare:
36 python scripts/make-release.py
37
38publish:
39 python setup.py sdist upload