Files
pyscrlink/release.sh
Shin'ichiro Kawasaki 22dbd5e092 release.sh: Add upload command
To upload the release package to pypi.org, add upload command.

Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
2020-10-23 18:06:55 +09:00

27 lines
355 B
Bash
Executable File

#!/bin/bash
usage() {
echo "Usage: ${0} COMMAND"
echo -e "COMMAND:"
echo -e "\tbuild"
echo -e "\tupload-testpypi FILES"
exit 1
}
case ${1} in
build)
python setup.py sdist bdist_wheel
;;
upload)
shift
python -m twine upload "$@"
;;
upload-testpypi)
shift
python -m twine upload --repository testpypi "$@"
;;
*)
usage
;;
esac