Skip to content

Commit

Permalink
fix test-release after recent MPs broke it
Browse files Browse the repository at this point in the history
  • Loading branch information
tartley committed Oct 19, 2022
1 parent 832f14c commit cb83041
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test-release
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb83041

Please sign in to comment.