zykrix
Re-added phidata as a normal folder (final fix)
c96b98a
Raw
History Blame Contribute Delete
887 Bytes
#!/bin/bash
############################################################################
#
# Release phidata to pypi
# Usage:
# ./scripts/release.sh
#
# Note:
# build & twine must be available in the venv
############################################################################
CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$( dirname ${CURR_DIR} )"
source ${CURR_DIR}/_utils.sh
main() {
print_heading "Releasing *phidata*"
cd ${REPO_ROOT}
print_heading "pwd: $(pwd)"
print_heading "Proceed?"
space_to_continue
print_heading "Building phidata"
python3 -m build
print_heading "Release phidata to testpypi?"
space_to_continue
python3 -m twine upload --repository testpypi ${REPO_ROOT}/dist/*
print_heading "Release phidata to pypi"
space_to_continue
python3 -m twine upload --repository pypi ${REPO_ROOT}/dist/*
}
main "$@"