upload-pypi 251 B

123456789101112131415161718
  1. #!/bin/bash
  2. R=$1
  3. if [ "$R" = "" ]; then
  4. echo "Usage: upload-pypi 1.2.3 [test]"
  5. exit
  6. fi
  7. if [ "$2" = "test" ]; then
  8. export TWINE_REPOSITORY=testpypi
  9. else
  10. export TWINE_REPOSITORY=pypi
  11. fi
  12. D=dist/borgbackup-$R.tar.gz
  13. twine upload "$D"