forked from phidatahq/phidata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
executable file
·38 lines (29 loc) · 887 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/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 "$@"