Skip to content

Commit cdeb8e3

Browse files
committed
Updated Makefile for distribution
1 parent 72008d0 commit cdeb8e3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,25 @@ doctest:
4343
dist: clean doctest unittest doc
4444
@# Make sure README.rst are consistent
4545
cmp -s README.rst buildingspy/README.rst
46-
python setup.py sdist --formats=zip
47-
python setup.py bdist_egg
46+
python setup.py sdist bdist_wheel
4847
rm -rf build
4948
rm -rf buildingspy.egg-info
5049
@echo "Source distribution is in directory dist"
5150
@echo "To post to server, run postBuildingsPyToWeb.sh"
5251
@echo "To upload to PyPi, run 'twine upload dist/*'"
5352

5453

55-
5654
upload-test:
5755
@# Make sure README.rst are consistent
5856
cmp -s README.rst buildingspy/README.rst
59-
python setup.py sdist --formats=gztar,zip bdist_egg upload -r https://testpypi.python.org/pypi
57+
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
58+
# python setup.py sdist --formats=gztar,zip bdist_egg upload -r https://testpypi.python.org/pypi
59+
60+
upload:
61+
@# Make sure README.rst are consistent
62+
cmp -s README.rst buildingspy/README.rst
63+
twine upload dist/*
64+
6065

6166
clean-dist:
6267
rm -rf build

0 commit comments

Comments
 (0)