Skip to content

Commit

Permalink
Add dist make command to build Py 2/3 packages
Browse files Browse the repository at this point in the history
Previously it would only build for the currently selected version,
as well as source, hoping that this will take both to PyPi on Snap.
  • Loading branch information
gaqzi committed Nov 2, 2015
1 parent e24631f commit febe6db
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Makefile
@@ -1,4 +1,4 @@
.PHONY: develop docs test coverage clean lint pre-commit upload-package
.PHONY: develop docs test coverage clean lint pre-commit upload-package dist

default: coverage

Expand Down Expand Up @@ -58,9 +58,25 @@ lint: lint-rst lint-pep8

pre-commit: coverage lint

upload-package: lint clean
pip install twine wheel
python setup.py sdist bdist_wheel
develop-dist:
pip2 install wheel
pip3 install wheel

sdist:
python setup.py sdist

bdist_py2:
python2 setup.py bdist_wheel

bdist_py3:
python3 setup.py bdist_wheel

bdist: bdist_py2 bdist_py3

dist: develop-dist sdist bdist

upload-package: lint clean dist
pip install twine
twine upload dist/*

rpm: clean
Expand Down

0 comments on commit febe6db

Please sign in to comment.