From 1c34bb0c0180337043a8d20adda2093871fea1a0 Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Fri, 8 Apr 2022 16:48:26 +0200 Subject: [PATCH] Devops: remove obsolete `release.sh` This ad-hoc release script has been replaced with a continuous deployment workflow on Github Action which was added some time ago. --- release.sh | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 release.sh diff --git a/release.sh b/release.sh deleted file mode 100755 index 4fd2ed61..00000000 --- a/release.sh +++ /dev/null @@ -1,53 +0,0 @@ -#/usr/bin/env bash -set -e - -# Install `twine` through `pip` if it hasn't been installed yet -command -v twine >/dev/null 2>&1 || pip install twine - -PACKAGE="plumpy" -VERSION_FILE=${PACKAGE}/version.py - -version=$1 -while true; do - read -p "Release version ${version}? " yn - case $yn in - [Yy]* ) break;; - [Nn]* ) exit;; - * ) echo "Please answer yes or no.";; - esac -done - -sed -i "1 s/__version__* =.*/__version__ = \"${version}\"/" $VERSION_FILE - -current_branch=`git rev-parse --abbrev-ref HEAD` - -tag="v${version}" -relbranch="release-${version}" - -echo Releasing version $version - -git checkout -b $relbranch -git add ${VERSION_FILE} -git commit --no-verify -m "Release ${version}" - -# Merge into master -git checkout master -git merge $relbranch - -# Tag the thing -git tag -a $tag -m "Version $version" - -git checkout $current_branch -git merge $relbranch - -git branch -d $relbranch - -# Push everything -git push --tags origin master $current_branch - -# Release on pypi -rm -r dist build *.egg-info -python setup.py sdist -python setup.py bdist_wheel --universal - -twine upload dist/*