Skip to content

Commit caa1c0d

Browse files
committed
fix(ci): use unsafe-best-match for TestPyPI verification
Now that jsonlt-python exists on PyPI, uv's dependency confusion protection prevents it from checking TestPyPI for dev versions. Add --index-strategy unsafe-best-match to allow checking all indexes.
1 parent 0326a5a commit caa1c0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ verify-testpypi version:
217217
uv venv --directory "${tmp_dir}" --python 3.10 --no-project --no-cache --default-index "https://test.pypi.org/simple/" --extra-index-url "https://pypi.org/simple/"
218218
for i in 1 2 3 4 5; do
219219
echo "Attempt $i: Installing {{package}}=={{version}} from TestPyPI..."
220-
if uv pip install --directory "${tmp_dir}" --no-cache --strict --default-index "https://test.pypi.org/simple/" --extra-index-url "https://pypi.org/simple/" "{{package}}=={{version}}"; then
220+
if uv pip install --directory "${tmp_dir}" --no-cache --strict --index-strategy unsafe-best-match --default-index "https://test.pypi.org/simple/" --extra-index-url "https://pypi.org/simple/" "{{package}}=={{version}}"; then
221221
break
222222
fi
223223
if [ "$i" -lt 5 ]; then

0 commit comments

Comments
 (0)