Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Add release / builds to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed Jul 8, 2015
1 parent 0029aab commit f40d45c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Makefile
Expand Up @@ -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

0 comments on commit f40d45c

Please sign in to comment.