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/*