Implement pep440 style public and local version numbers

This commit is contained in:
Ross McFarland
2022-03-27 07:34:08 -07:00
parent b4d66c3f91
commit d207df9e40
2 changed files with 20 additions and 5 deletions
+3
View File
@@ -16,6 +16,9 @@ if [ ! -f "$ACTIVATE" ]; then
fi
. "$ACTIVATE"
# Set so that setup.py will create a public release style version number
export OCTODNS_RELEASE=1
VERSION="$(grep __VERSION__ "$ROOT/octodns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")"
git tag -s "v$VERSION" -m "Release $VERSION"