From cb83041b25a6962d8124647e8741cfa0ab139994 Mon Sep 17 00:00:00 2001 From: Jonathan Hartley Date: Wed, 19 Oct 2022 13:50:08 -0500 Subject: [PATCH] fix test-release after recent MPs broke it --- test-release | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test-release b/test-release index e89d5dac..d7bf091a 100644 --- a/test-release +++ b/test-release @@ -24,16 +24,18 @@ $bin/twine upload --repository testpypi dist/colorama-* \ # cd elsewhere so we cannot import from local source. mkdir -p $sandbox ( - cd $sandbox - # Create a temporary disposable virtualenv. - $syspython -m venv --clear venv + $syspython -m venv --clear $sandbox/venv # voodoo sleep. I saw the following install fail, due to expected version # not being listed at test.pypi.org, but then a few seconds later, re-run - # manually. it worked fine. + # manually, it worked fine. sleep 5 + version=$(grep __version__ colorama/__init__.py | cut -d' ' -f3 | tr -d "'") + + cd $sandbox + # Install the package we just uploaded. # (--extra-index-url for this project's requirements) venv/bin/python -m pip --quiet install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple colorama==$version