Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 726 Bytes
.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'