From f40d45ce4d10f8798f48a5222c83e27c0b3974ac Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Wed, 8 Jul 2015 00:33:05 -0500 Subject: [PATCH] Add release / builds to Makefile --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Makefile b/Makefile index 45ec80a..07f428b 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,28 @@ $(BIN)/activate: requirements.txt test -d $(VENV) || virtualenv -p pypy3 $(VENV) $(ACTIVATE); pip install -r requirements.txt touch $(BIN)/activate + +dist/*.whl: setup.py photorepl/*.py + python setup.py bdist_wheel + +dist/*.tar.gz: setup.py photorepl/*.py + python setup.py sdist bdist + +.PHONY: wheel +wheel: dist/*.whl + +.PHONY: dist +dist: dist/*.tar.gz + +.PHONY: upload +upload: clean + python setup.py sdist bdist bdist_wheel upload + +.PHONY: clean +clean: + find . -iname '*.pyc' | xargs rm -f + find . -iname '__pycache__' -type d | xargs rm -rf + rm -rf build + rm -rf dist + rm -rf $(VENV) + rm -rf *.egg-info