diff --git a/script/release b/script/release index 865d5c3..958fda8 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_dnsmadeeasy/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")" +VERSION="$(grep "^__version__" "$ROOT/octodns_dnsmadeeasy/__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 d72e77d..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_dnsmadeeasy/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")" -SHA=$(git rev-parse HEAD) -python setup.py sdist -TARBALL="dist/octodns-dnsmadeeasy-$SHA.tar.gz" -mv dist/octodns-dnsmadeeasy-$VERSION.tar.gz "$TARBALL" - -echo "Created $TARBALL"