Skip to content

Commit

Permalink
Updated Makefile for distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Jul 15, 2019
1 parent 72008d0 commit cdeb8e3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,25 @@ doctest:
dist: clean doctest unittest doc
@# Make sure README.rst are consistent
cmp -s README.rst buildingspy/README.rst
python setup.py sdist --formats=zip
python setup.py bdist_egg
python setup.py sdist bdist_wheel
rm -rf build
rm -rf buildingspy.egg-info
@echo "Source distribution is in directory dist"
@echo "To post to server, run postBuildingsPyToWeb.sh"
@echo "To upload to PyPi, run 'twine upload dist/*'"



upload-test:
@# Make sure README.rst are consistent
cmp -s README.rst buildingspy/README.rst
python setup.py sdist --formats=gztar,zip bdist_egg upload -r https://testpypi.python.org/pypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# python setup.py sdist --formats=gztar,zip bdist_egg upload -r https://testpypi.python.org/pypi

upload:
@# Make sure README.rst are consistent
cmp -s README.rst buildingspy/README.rst
twine upload dist/*


clean-dist:
rm -rf build
Expand Down

0 comments on commit cdeb8e3

Please sign in to comment.