Files
pyscrlink/release.sh
Shin'ichiro Kawasaki 751190935a release.sh: add example command lines
I tend to forget the command lines to release new packages. Record it in
the release script.

Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
2022-07-18 11:12:46 +09:00

31 lines
446 B
Bash
Executable File

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