-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a script to deploy to pypi. Changed the pypi project (not packa…
…ge) name because the name was too similar to an existing project.
- Loading branch information
1 parent
5145f4c
commit c9b1be6
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Deploy to PyPi Test and PyPi. | ||
# Assume pypi credentials exist in one of the standard locations. | ||
|
||
readonly THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
function main() { | ||
if [[ $# -ne 0 ]]; then | ||
echo "USAGE: $0" | ||
exit 1 | ||
fi | ||
|
||
set -e | ||
trap exit SIGINT | ||
|
||
cd "${THIS_DIR}" | ||
|
||
rm -rf "dist" | ||
|
||
python3 -m build | ||
python3 -m twine upload -r testpypi dist/* | ||
python3 -m twine upload dist/* | ||
} | ||
|
||
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters