Skip to content

Commit

Permalink
1.0.9 versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mraineri committed Oct 19, 2020
1 parent b2337e8 commit de47d52
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [1.0.9] - 2020-10-19
- Added rf_event_service.py tool for managing event subscriptions and displaying event service information

## [1.0.8] - 2020-07-10
- Added option to the inventory script to save information to a spreadsheet

Expand Down
40 changes: 40 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

# Collect change log info
CHANGES="## [$1] - $(date +'%Y-%m-%d')"$'\n'
echo "Enter changes:"
while : ; do
read CHANGE
if [ "$CHANGE" = "" ]; then
break
fi

CHANGES="$CHANGES- $CHANGE"$'\n'
done

# Rebase
git checkout master
git fetch && git rebase origin

# Update the version number in setup.py
sed -i -E 's/ version = .+,/ version = "'$1'",/' setup.py

# Update the change log file
ex CHANGELOG.md <<eof
3 insert
$CHANGES
.
xit
eof

# Commit and push changes
git add CHANGELOG.md setup.py
git commit -m "$1 versioning"
git push origin master

# Release to pypi
python3 setup.py sdist && twine upload dist/*

# Make new release in GitHub
CHANGES="Changes since last release:"$'\n\n'"$CHANGES"
gh release create $1 -n "$CHANGES"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name = "redfish_utilities",
version = "1.0.8",
version = "1.0.9",
description = "Redfish Utilities",
long_description = long_description,
long_description_content_type = "text/markdown",
Expand Down

0 comments on commit de47d52

Please sign in to comment.