uv icon indicating copy to clipboard operation
uv copied to clipboard

UV doesn't find new package from PyPI

Open JoshuaPurtell opened this issue 1 year ago • 1 comments

I maintain a few packages mostly for personal use.

After upload to pypi via

pip install build twine
python -m build
twine upload dist/*

I can immediately download the package via pip like

pip install package-name

However, it takes between 2 and 45 minutes to be able to successfully run

uv pip install package-name

Sometimes restarting my computer appears to help, which may relate to some cacheing?

JoshuaPurtell avatar Sep 09 '24 00:09 JoshuaPurtell

Does adding --refresh help? We cache PyPI responses for 10 minutes per the HTTP caching headers.

charliermarsh avatar Sep 09 '24 00:09 charliermarsh

Solution: uv add --refresh cratedb-async==0.0.6

surister avatar Apr 05 '25 14:04 surister

You can also --refresh-package <name> to avoid refreshing other cache entries.

zanieb avatar Apr 05 '25 16:04 zanieb

Only --refresh-package package-name worked for me to refresh the actual cached package. The general refresh didn't work in gathering the latest upload from the PyPI.

E.g.

uv add python-package-folder==1.4.0 --group build --refresh-package python-package-folder

Worked before the 10 minutes cache time, whilst:

uv add python-package-folder==1.4.0 --group build --refresh

didn't.

alelom avatar Nov 24 '25 17:11 alelom