-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A little bit of work to the project scripts to make uploading a release a little less painful. Changed the VERSION file and tweaked the line wrapping of the README. Signed-off-by: Geoffrey Wiseman <geoffrey.wiseman@codiform.com>
- Loading branch information
1 parent
b84e494
commit 8bdabe7
Showing
4 changed files
with
48 additions
and
5 deletions.
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.0.0b1 | ||
1.0.0 |
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,42 @@ | ||
#!/usr/bin/env bash | ||
readonly ERR_RM=1 | ||
readonly ERR_SDIST=2 | ||
readonly ERR_WHEEL=3 | ||
readonly ERR_UL=4 | ||
readonly ERR_ABORT=5 | ||
|
||
readonly VERSION=$(cat awswl/VERSION) | ||
|
||
release() { | ||
printf "Removing past distribution files from dist/.\\n\\n" | ||
if ! rm -v dist/* ; then | ||
printf "Couldn't remove past distribution files.\\n" | ||
exit $ERR_RM; | ||
fi | ||
|
||
printf "\\nCreating source distribution:\\n\\n" | ||
if ! python setup.py sdist; then | ||
printf "Couldn't create source distribution.\\n" | ||
exit $ERR_SDIST | ||
fi | ||
|
||
printf "\\nCreating universal wheel...\\n\\n" | ||
if ! python setup.py bdist_wheel --universal; then | ||
printf "Couldn't create universal wheel.\\n" | ||
exit $ERR_WHEEL | ||
fi | ||
|
||
printf "\\nUploading with twine...\\n\\n" | ||
if ! twine upload dist/*; then | ||
printf "Couldn't upload distribution files.\\n\\n" | ||
exit $ERR_UL | ||
fi | ||
|
||
printf "\\nRelease complete.\\n" | ||
} | ||
|
||
read -p "Release v$VERSION of awswl module? [yN]: " response | ||
case $response in | ||
[Yy] | Yes | yes) release;; | ||
*) printf "Ok, aborting.\\n\\n"; exit $ERR_ABORT;; | ||
esac |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
#!/usr/bin/env bash | ||
python -m pytest |