Skip to content

Commit

Permalink
makefile 👍
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo O Vieira committed Apr 25, 2015
1 parent 8a68532 commit 7695b59
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit 7695b59

Please sign in to comment.