using bumpversion package for scripts/bumpversion

This commit is contained in:
Jack Danger 2018-01-10 15:06:32 -08:00
parent 24fee6726a
commit 58c37c6fdf

View File

@ -10,10 +10,8 @@ main() {
return 1 return 1
fi fi
# TODO: replace this with the bumpversion pip package, I couldn't &>/dev/null which bumpversion || pip install bumpversion
# figure out how to use that for these files bumpversion --new-version ${version} patch
sed -i '' "s/version=.*$/version='${version}',/g" setup.py
sed -i '' "s/__version__ = .*$/__version__ = '${version}',/g" moto/__init__.py
git checkout -b version-${version} git checkout -b version-${version}
# Commit the new version # Commit the new version