From 7695b5956727a68e7300e1abcd4d137dfe7d456e Mon Sep 17 00:00:00 2001 From: Pablo O Vieira Date: Sat, 25 Apr 2015 14:03:18 -0300 Subject: [PATCH] makefile :thumbsup: --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4c0107 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +VERSION := $(shell python -c "import noipy; print 'v%s' % noipy.__version__") + +.PHONY: all +all: clean tests dist + @echo "=> All set up." + @echo "=> execute *make publish* to upload to PyPI repository." + +dist: + @echo "=> Building packages" + python setup.py sdist bdist_wheel + +devdeps: + @echo "=> Installing dev dependencies" + pip install -r dev-requirements.txt + +.PHONY: tests +tests: devdeps + @echo "=> Running tests" + tox + +.PHONY: clean +clean: + @echo "=> Cleaning..." + find . -type f -name "*.pyc" -delete + rm -rf dist/ + rm -rf build/ + +.PHONY: publish +publish: + @echo "=> Publishing [noipy $(VERSION)] on PyPI repository" + twine upload -r pypi dist/*