diff --git a/scripts/bump_version b/scripts/bump_version index 53030700e..fe7ec1970 100755 --- a/scripts/bump_version +++ b/scripts/bump_version @@ -9,7 +9,12 @@ main() { grep version= setup.py return 1 fi + + # TODO: replace this with the bumpversion pip package, I couldn't + # figure out how to use that for these files sed -i '' "s/version=.*$/version='${version}',/g" setup.py + sed -i '' "s/__version__ = .*$/__version__ = '${version}',/g" moto/__init__.py + git checkout -b version-${version} # Commit the new version git commit setup.py -m "bumping to version ${version}"