dfilppi | 9981f55 | 2017-08-07 20:10:53 +0000 | [diff] [blame] | 1 | .PHONY: release install files test docs prepare publish |
| 2 | |
| 3 | all: |
| 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 | |
| 13 | release: test docs publish |
| 14 | |
| 15 | dev: |
| 16 | pip install -rdev-requirements.txt |
| 17 | python setup.py develop |
| 18 | |
| 19 | install: |
| 20 | python setup.py install |
| 21 | |
| 22 | files: |
| 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 | |
| 26 | test: |
| 27 | pip install tox |
| 28 | tox |
| 29 | |
| 30 | docs: |
| 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 | |
| 35 | prepare: |
| 36 | python scripts/make-release.py |
| 37 | |
| 38 | publish: |
| 39 | python setup.py sdist upload |