summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bestwalter <oliver.bestwalter@avira.com>2018-03-22 20:53:18 +0100
committerOliver Bestwalter <oliver.bestwalter@avira.com>2018-03-23 22:02:54 +0100
commit4802b97371ef7584df0556c1dfab049197013037 (patch)
treed576a180e0fbe7c0f30436b990b2c3368e253066
parent4e1d482c1c3eb52066134720d2b79070ee1e7fc3 (diff)
downloadtox-git-4802b97371ef7584df0556c1dfab049197013037.tar.gz
small fixes in release script, adjust to branch based release process
(cherry picked from commit 284ed9d)
-rwxr-xr-xtasks/pra.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/tasks/pra.sh b/tasks/pra.sh
index 9cb1afee..e8ee1ff0 100755
--- a/tasks/pra.sh
+++ b/tasks/pra.sh
@@ -29,9 +29,9 @@ dispatch () {
fi
prep
elif [ "$1" == "upload" ]; then
- devpi_upload $2
+ devpi_upload $2
elif [ "$1" == "test" ]; then
- devpi_cloud_test
+ devpi_cloud_test
elif [ "$1" == "release" ]; then
pypi_release
else
@@ -70,11 +70,13 @@ devpi_upload () {
}
devpi_cloud_test () {
+ dctPath=../devpi-cloud-test
cloudTestPath=../devpi-cloud-test-tox
if [ ! -d "$cloudTestPath" ]; then
echo "needs $cloudTestPath"
exit 1
fi
+ pip install -e ${dctPath}
_confirm "trigger devpi cloud tests for ${VERSION}?"
cd ${cloudTestPath}
dct trigger ${VERSION}
@@ -82,13 +84,20 @@ devpi_cloud_test () {
cd ../tox
}
-# TODO get devpi push to work again
pypi_release () {
PACKAGES=$(ls dist/*)
_confirm "upload to pypi: $PACKAGES?"
+ # TODO get devpi push to work again
+ # get rid of this ...
twine upload ${PACKAGES}
- git push upstream master
- git push upstream ${VERSION}
+ # ... and do this when this is fixed:
+ # https://github.com/devpi/devpi/issues/449
+ # devpi push tox==${VERSION} pypi:pypi
+
+ # TODO do the right thing here when using a release branch
+ # promote changes in code and tag to repo
+ # git push upstream master
+ # git push upstream ${VERSION}
}
_confirm () {