28 lines
652 B
Makefile
28 lines
652 B
Makefile
all: test
|
|
|
|
filename=steadymark-`python -c 'import steadymark;print steadymark.version'`.tar.gz
|
|
|
|
export PYTHONPATH:= ${PWD}
|
|
|
|
test: clean unit functional
|
|
|
|
unit:
|
|
@echo "Running unit tests"
|
|
@nosetests --verbosity=2 -s tests/unit
|
|
|
|
functional:
|
|
@python steadymark/__init__.py
|
|
|
|
clean:
|
|
@printf "Cleaning up files that are already in .gitignore... "
|
|
@for pattern in `cat .gitignore`; do rm -rf $$pattern; find . -name "$$pattern" -exec rm -rf {} \;; done
|
|
@echo "OK!"
|
|
|
|
release: test publish
|
|
@printf "Exporting to $(filename)... "
|
|
@tar czf $(filename) steadymark setup.py README.md COPYING
|
|
@echo "DONE!"
|
|
|
|
publish:
|
|
@python setup.py sdist register upload
|