Updating CONTRIBUTING with release instructions
This commit is contained in:
parent
e227a30aa9
commit
172396e6a8
3 changed files with 46 additions and 3 deletions
22
scripts/bump_version
Executable file
22
scripts/bump_version
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
main() {
|
||||
local version=$1
|
||||
if [[ -z "${version}" ]]; then
|
||||
echo "USAGE: $0 1.3.2"
|
||||
echo "Provide a new version number as an argument to bump the version"
|
||||
echo -n "Current:"
|
||||
grep version= setup.py
|
||||
return 1
|
||||
fi
|
||||
sed -i '' "s/version=.*$/version='${version}',/g" setup.py
|
||||
git checkout -b version-${version}
|
||||
# Commit the new version
|
||||
git commit setup.py -m "bumping to version ${version}"
|
||||
# Commit an updated IMPLEMENTATION_COVERAGE.md
|
||||
make implementation_coverage || true
|
||||
# Open a PR
|
||||
open https://github.com/spulec/moto/compare/master...version-${version}
|
||||
}
|
||||
|
||||
main $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue