diff options
author | Robert Collins <robertc@robertcollins.net> | 2012-10-27 22:27:55 +1300 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2012-10-27 22:27:55 +1300 |
commit | f8e93227207a1eddef02cb306651074172f64188 (patch) | |
tree | 1130670ee05bf24efccc0ce81f8bba6bb8fb5052 /Makefile | |
parent | 87a05a447f982e4ddc954fb2c72fa59637c4bd58 (diff) | |
download | python-test-extras-f8e93227207a1eddef02cb306651074172f64188.tar.gz |
Initial extraction of code from testtools.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9d5b515 --- /dev/null +++ b/Makefile @@ -0,0 +1,56 @@ +# See README.rst for copyright and licensing details. + +PYTHON=python +SOURCES=$(shell find extras -name "*.py") + +check: + PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run extras.tests.test_suite + +TAGS: ${SOURCES} + ctags -e -R extras/ + +tags: ${SOURCES} + ctags -R extras/ + +clean: clean-sphinx + rm -f TAGS tags + find extras -name "*.pyc" -exec rm '{}' \; + +prerelease: + # An existing MANIFEST breaks distutils sometimes. Avoid that. + -rm MANIFEST + +release: + ./setup.py sdist upload --sign + $(PYTHON) scripts/_lp_release.py + +snapshot: prerelease + ./setup.py sdist + +### Documentation ### + +apidocs: + # pydoctor emits deprecation warnings under Ubuntu 10.10 LTS + PYTHONWARNINGS='ignore::DeprecationWarning' \ + pydoctor --make-html --add-package extras \ + --docformat=restructuredtext --project-name=extras \ + --project-url=https://launchpad.net/extras + +doc/news.rst: + ln -s ../NEWS doc/news.rst + +docs: doc/news.rst docs-sphinx + rm doc/news.rst + +docs-sphinx: html-sphinx + +# Clean out generated documentation +clean-sphinx: + cd doc && make clean + +# Build the html docs using Sphinx. +html-sphinx: + cd doc && make html + +.PHONY: apidocs docs-sphinx clean-sphinx html-sphinx docs +.PHONY: check clean prerelease release |