Skip to content

Commit 082d397

Browse files
gijzelaerrclaude
andauthored
Fix TestPyPI workflow: add --index-strategy unsafe-best-match (#601)
uv's default index strategy finds packages like pytest on TestPyPI first (e.g. pytest v0.0.0.dev1), then tries to resolve all its dependencies from TestPyPI too, which fails. Adding unsafe-best-match lets uv pick the best version across all indexes. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f99a35d commit 082d397

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-test-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ jobs:
7070
- name: Install and test python-snap7
7171
run: |
7272
uv venv
73-
uv pip install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]
73+
uv pip install --index-strategy unsafe-best-match --extra-index-url https://test.pypi.org/simple/ python-snap7[test]
7474
uv run python -c "import snap7; print('snap7 imported successfully')"

0 commit comments

Comments
 (0)