Skip to content

Commit cc45860

Browse files
jeromechooclaude
andcommitted
Refresh uv's index cache in the verify-release targets
Right after an upload, uv still held the version list it cached before the release, so verify-release failed with "no version of diffbot==X" even though the release was live. Both verify targets now pass --refresh-package so they re-fetch the list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 4b75bc7 commit cc45860

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ verify-release-test:
9090
@VERSION=$$(grep '^version' $(PYPROJECT) | head -1 | cut -d'"' -f2) && \
9191
TMP=$$(mktemp -d) && \
9292
uv venv --python 3.12 $$TMP/.venv >/dev/null 2>&1 && \
93-
uv pip install --quiet --python $$TMP/.venv/bin/python \
93+
uv pip install --quiet --refresh-package $(PKG) --python $$TMP/.venv/bin/python \
9494
--index-url https://test.pypi.org/simple/ \
9595
--extra-index-url https://pypi.org/simple/ --index-strategy unsafe-best-match \
9696
"$(PKG)==$$VERSION" && \
@@ -101,6 +101,6 @@ verify-release:
101101
@VERSION=$$(grep '^version' $(PYPROJECT) | head -1 | cut -d'"' -f2) && \
102102
TMP=$$(mktemp -d) && \
103103
uv venv --python 3.12 $$TMP/.venv >/dev/null 2>&1 && \
104-
uv pip install --quiet --python $$TMP/.venv/bin/python "$(PKG)==$$VERSION" && \
104+
uv pip install --quiet --refresh-package $(PKG) --python $$TMP/.venv/bin/python "$(PKG)==$$VERSION" && \
105105
(cd $$TMP && $$TMP/.venv/bin/python -c "import diffbot; print('PyPI install OK:', diffbot.__version__)") && \
106106
rm -rf $$TMP

0 commit comments

Comments
 (0)