Skip to content

Commit

Permalink
Now uploads documentation automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnooner256 committed May 15, 2016
1 parent c147550 commit f53f43f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions topypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ find . -name '*.pyc' | xargs rm -f
#Build documentation
pushd docs
make html

#Create the documentation zip file
pushd _build/html/
zip -r ../../../docs.zip *
popd
popd

#This script updates the library's PIPY page and
#uploads the code in tar.gz and .zip formats.
python setup.py register
python setup.py sdist --formats=gztar,zip upload
python setup.py upload_docs --upload-dir docs/_build/html

echo
echo "Be sure to change the version on PyPi's website!!!"
echo "Also, reupload the documentation zip file!"
echo
echo "Done"

0 comments on commit f53f43f

Please sign in to comment.