Skip to content

Commit

Permalink
Release 1.0
Browse files Browse the repository at this point in the history
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
geoffreywiseman committed Apr 10, 2018
1 parent b84e494 commit 8bdabe7
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ inclined, but feel free to vote for it.
Environment
-----------

All of these require you to have AWS credentials set up in advance, stored in ``~/.aws/credentials``,
and if you need to use a profile, you can configure it with ``AWS_PROFILE``. If you want to identify
the security group using a command-line variable so that you don't have to put it into each command
invocation, you can put it in ``AWSWL_SGID``.
All of these require you to have AWS credentials set up in advance, stored in
``~/.aws/credentials``, and if you need to use a profile, you can configure it with
``AWS_PROFILE``. If you want to identify the security group using a command-line variable so that
you don't have to put it into each command invocation, you can put it in ``AWSWL_SGID``.


Edge Cases
Expand Down
2 changes: 1 addition & 1 deletion awswl/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0b1
1.0.0
42 changes: 42 additions & 0 deletions scripts/release
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
1 change: 1 addition & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/usr/bin/env bash
python -m pytest

0 comments on commit 8bdabe7

Please sign in to comment.