Update build-for-pypi.sh

This commit is contained in:
tzutalin 2017-07-07 13:19:18 +08:00
parent d9e16955f4
commit b0e7706de9
2 changed files with 14 additions and 6 deletions

View File

@ -89,8 +89,6 @@ Use Docker
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
.. code:: .. code::
docker pull tzutalin/py2qt4
docker run -it \ docker run -it \
--user $(id -u) \ --user $(id -u) \
-e DISPLAY=unix$DISPLAY \ -e DISPLAY=unix$DISPLAY \
@ -103,6 +101,8 @@ Use Docker
-v /tmp/.X11-unix:/tmp/.X11-unix \ -v /tmp/.X11-unix:/tmp/.X11-unix \
tzutalin/py2qt4 tzutalin/py2qt4
make all;./labelImg.py
You can pull the image which has all of the installed and required dependencies. `Watch a demo video <https://youtu.be/nw1GexJzbCI>`__ You can pull the image which has all of the installed and required dependencies. `Watch a demo video <https://youtu.be/nw1GexJzbCI>`__

View File

@ -1,7 +1,15 @@
#!/bin/sh #!/bin/sh
# Packaging # Packaging and Release
cd ..;sudo python setup.py sdist;sudo python setup.py install docker run --workdir=$(pwd)/ --volume="/home/$USER:/home/$USER" tzutalin/py2qt4 /bin/sh -c 'sudo python setup.py sdist;sudo python setup.py install'
# Release while true; do
read -p "Do you wish to deploy this to PyPI?" yn
case $yn in
[Yy]* ) docker run -it --rm --workdir=$(pwd)/ --volume="/home/$USER:/home/$USER" tzutalin/py2qt4; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
# python setup.py register # python setup.py register
# python setup.py sdist upload # python setup.py sdist upload
# Net pypi: twine upload dist/*