Debian Codegraph @

scripts/upload-pypi

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