Files
pyscrlink/release.sh
Shin'ichiro Kawasaki caaec40935 release.sh: update package build commands
Recent changes in python eco-system require different command to build
python packages. Update the commands to fit to the latest environment.

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

27 lines
337 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 -m build
;;
upload)
shift
python -m twine upload "$@"
;;
upload-testpypi)
shift
python -m twine upload --repository testpypi "$@"
;;
*)
usage
;;
esac