From 58c37c6fdfc1cabca09f956792caa5237164f4f5 Mon Sep 17 00:00:00 2001 From: Jack Danger Date: Wed, 10 Jan 2018 15:06:32 -0800 Subject: [PATCH] using bumpversion package for scripts/bumpversion --- scripts/bump_version | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/bump_version b/scripts/bump_version index b5dc43562..5315f26f0 100755 --- a/scripts/bump_version +++ b/scripts/bump_version @@ -10,10 +10,8 @@ main() { 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 + &>/dev/null which bumpversion || pip install bumpversion + bumpversion --new-version ${version} patch git checkout -b version-${version} # Commit the new version