mirror of
https://github.com/kawasaki/pyscrlink.git
synced 2025-09-07 18:20:07 +02:00
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:
22
release.sh
Executable file
22
release.sh
Executable 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
|
Reference in New Issue
Block a user