diff --git a/script/release b/script/release index 988376f..971a4e7 100755 --- a/script/release +++ b/script/release @@ -33,7 +33,7 @@ fi # Set so that setup.py will create a public release style version number export OCTODNS_RELEASE=1 -VERSION="$(grep "^__VERSION__" "$ROOT/octodns_powerdns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")" +VERSION="$(grep "^__version__" "$ROOT/octodns_powerdns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")" git tag -s "v$VERSION" -m "Release $VERSION" git push origin "v$VERSION" diff --git a/script/sdist b/script/sdist deleted file mode 100755 index b7639d2..0000000 --- a/script/sdist +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -e -set -o pipefail - -cd "$(dirname "$0")"/.. -ROOT=$(pwd) - -if ! git diff-index --quiet HEAD --; then - echo "Changes in local directory, commit or clear" >&2 - exit 1 -fi - -VERSION="$(grep __VERSION__ "$ROOT/octodns_powerdns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")" -SHA=$(git rev-parse HEAD) -python setup.py sdist -TARBALL="dist/octodns-powerdns-$SHA.tar.gz" -mv dist/octodns-powerdns-$VERSION.tar.gz "$TARBALL" - -echo "Created $TARBALL"