We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f125d08 commit 22a9bd9Copy full SHA for 22a9bd9
1 file changed
bin/release.sh
@@ -206,11 +206,9 @@ wait_for_pypi() {
206
local package_name="$1"
207
local expected_version="$2"
208
local attempts=0
209
- local published_version
210
211
while :; do
212
- published_version="$(curl -fsSL "https://pypi.org/pypi/${package_name}/json" | jq -r '.info.version')"
213
- if [[ "${published_version}" == "${expected_version}" ]]; then
+ if curl -fsSL "https://pypi.org/pypi/${package_name}/json" | jq -e --arg version "${expected_version}" '.releases[$version] | length > 0' >/dev/null; then
214
return 0
215
fi
216
attempts=$((attempts + 1))
0 commit comments