mirror of
https://github.com/kawasaki/pyscrlink.git
synced 2025-09-04 16:50:11 +02:00
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>
27 lines
337 B
Bash
Executable File
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
|