Skip to content

Commit 284ed9d

Browse files
committed
small fixes in release script, adjust to branch based release process
1 parent 63d72f0 commit 284ed9d

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

tasks/pra.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ dispatch () {
2929
fi
3030
prep
3131
elif [ "$1" == "upload" ]; then
32-
devpi_upload $2
32+
devpi_upload $2
3333
elif [ "$1" == "test" ]; then
34-
devpi_cloud_test
34+
devpi_cloud_test
3535
elif [ "$1" == "release" ]; then
3636
pypi_release
3737
else
@@ -70,25 +70,34 @@ devpi_upload () {
7070
}
7171

7272
devpi_cloud_test () {
73+
dctPath=../devpi-cloud-test
7374
cloudTestPath=../devpi-cloud-test-tox
7475
if [ ! -d "$cloudTestPath" ]; then
7576
echo "needs $cloudTestPath"
7677
exit 1
7778
fi
79+
pip install -e ${dctPath}
7880
_confirm "trigger devpi cloud tests for ${VERSION}?"
7981
cd ${cloudTestPath}
8082
dct trigger ${VERSION}
8183
xdg-open https://github.com/tox-dev/devpi-cloud-test-tox
8284
cd ../tox
8385
}
8486

85-
# TODO get devpi push to work again
8687
pypi_release () {
8788
PACKAGES=$(ls dist/*)
8889
_confirm "upload to pypi: $PACKAGES?"
90+
# TODO get devpi push to work again
91+
# get rid of this ...
8992
twine upload ${PACKAGES}
90-
git push upstream master
91-
git push upstream ${VERSION}
93+
# ... and do this when this is fixed:
94+
# https://github.com/devpi/devpi/issues/449
95+
# devpi push tox==${VERSION} pypi:pypi
96+
97+
# TODO do the right thing here when using a release branch
98+
# promote changes in code and tag to repo
99+
# git push upstream master
100+
# git push upstream ${VERSION}
92101
}
93102

94103
_confirm () {

0 commit comments

Comments
 (0)