From dcf011d3fa2cb131f7c45595a59137f582cbf418 Mon Sep 17 00:00:00 2001 From: Benoit Chevallier-Mames Date: Wed, 20 Sep 2023 10:13:12 +0200 Subject: [PATCH] chore: be sure to have keyring installed we have seen that, sometimes, keyring was not available, for no obvious reason closes #3950 --- script/make_utils/generate_authenticated_pip_urls.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/make_utils/generate_authenticated_pip_urls.sh b/script/make_utils/generate_authenticated_pip_urls.sh index d3b818590..33b94610f 100755 --- a/script/make_utils/generate_authenticated_pip_urls.sh +++ b/script/make_utils/generate_authenticated_pip_urls.sh @@ -20,6 +20,10 @@ SECRET_EXTRA_INDEX_URL="${SECRET_EXTRA_INDEX_URL//\'/}" # echo "pip extra-index-url: ${SECRET_EXTRA_INDEX_URL}" if [[ "${SECRET_EXTRA_INDEX_URL}" != "" ]]; then + # Sometimes, for no obvious reason, keyring is not installed, so let's reinstall it for more + # reliance + poetry run python -m pip install keyring + CRED_JSON="$(python script/make_utils/pip_auth_util.py \ --get-credentials-for "${SECRET_EXTRA_INDEX_URL}" \ --check-netrc-first \