From fd99f542b0084af5287e49ff53acb0d01ae68ade Mon Sep 17 00:00:00 2001 From: Viktor Peller Date: Wed, 29 Jul 2026 17:46:29 +0000 Subject: [PATCH] Prevent TestPyPI dependency confusion --- vsts_ci/release.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsts_ci/release.ps1 b/vsts_ci/release.ps1 index dfaf500..aa79b2c 100644 --- a/vsts_ci/release.ps1 +++ b/vsts_ci/release.ps1 @@ -19,7 +19,7 @@ if ($env:BUILD_SOURCEBRANCH -match "^refs/tags/[\s\S]+$") { } else { echo "Uploading to test pypi" twine upload -r pypitest "$env:SYSTEM_ARTIFACTSDIRECTORY/$env:RELEASE_PRIMARYARTIFACTSOURCEALIAS/$artifact_name/$drop_file_name"-u $(pytestusername) -p $(pytestuserpassword) --repository-url $(pytestrepourl) - pip install --no-cache --upgrade "$tool_name==$tool_version" --index-url "https://test.pypi.org/simple/" --extra-index-url "https://pypi.org/simple" + pip --isolated install --no-cache-dir --upgrade "$env:SYSTEM_ARTIFACTSDIRECTORY/$env:RELEASE_PRIMARYARTIFACTSOURCEALIAS/$artifact_name/$drop_file_name" --index-url "https://pypi.org/simple" } } else { echo "The current branch is not a tag"