diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-11-30 23:38:21 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-11-30 23:38:21 +0000 |
| commit | 7457fb5d5b38a971806ed979461626d0d8dc921f (patch) | |
| tree | 82b9722a9ffb5b9196c037aa5c00348e52bc64b9 /makefile | |
Add basic project structure
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..431a1cc --- /dev/null +++ b/makefile @@ -0,0 +1,35 @@ +.PHONY: test upload clean bootstrap setup + +test: + sh -c '. _virtualenv/bin/activate; nosetests tests' + +upload: setup assert-converted-readme + python setup.py sdist upload + make clean + +register: setup + python setup.py register + +README: README.md + pandoc --from=markdown --to=rst README.md > README || cp README.md README + +assert-converted-readme: + test "`cat README`" != "`cat README.md`" + +clean: + rm -f README + rm -f MANIFEST + rm -rf dist + +bootstrap: _virtualenv setup + _virtualenv/bin/pip install -e . +ifneq ($(wildcard test-requirements.txt),) + _virtualenv/bin/pip install -r test-requirements.txt +endif + make clean + +setup: README + +_virtualenv: + virtualenv _virtualenv + _virtualenv/bin/pip install 'distribute>=0.6.45' |
