release.sh: Add helper script for easier package release work

Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
This commit is contained in:
Shin'ichiro Kawasaki
2020-10-10 17:11:53 +09:00
parent 559beb8802
commit 86ed7ebf91

22
release.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/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-testpypi)
shift
python -m twine upload --repository testpypi "$@"
;;
*)
usage
;;
esac