PyPI not showing latest version?
I just uploaded python-gnupg 0.4.3 to PyPI using Twine. Search still shows the previous version: https://pypi.org/search/?q=python-gnupg => 0.4.2 However, clicking on the link brings up the page for the latest version: https://pypi.org/project/python-gnupg/ => 0.4.3 But pip install is also wrongly picking up 0.4.2. What's the expected delay between uploading a new version and having it be available via pip? I would have expected more or less immediately. All systems are showing as operational. Regards, Vinay Sajip
On June 13, 2018 at 11:03:05 AM, Vinay Sajip via Distutils-SIG (distutils-sig@python.org) wrote: I just uploaded python-gnupg 0.4.3 to PyPI using Twine. Search still shows the previous version: https://pypi.org/search/?q=python-gnupg => 0.4.2 Search index updates are not immediate and are only used by the web search form and pip search. pip installs use the simple index. However, clicking on the link brings up the page for the latest version: https://pypi.org/project/python-gnupg/ => 0.4.3 This indicates that the cache purge for the project worked, which should also purge https://pypi.org/simple/python-gnupg/ But pip install is also wrongly picking up 0.4.2. What's the expected delay between uploading a new version and having it be available via pip? I would have expected more or less immediately. All systems are showing as operational. Indeed, new uploads should be available for pip install very quickly. I’m seeing 0.4.3 when I request the simple index. Can you provide the output of `curl -I https://pypi.org/simple/python-gnupg/` It is possible that you are hitting a stale cache in PyPI's CDN. Regards, Vinay Sajip -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/mm3/archives/list/distutils-sig@python.org/message/H...
On Wed, Jun 13, 2018 at 5:01 PM, Vinay Sajip via Distutils-SIG < distutils-sig@python.org> wrote:
I just uploaded python-gnupg 0.4.3 to PyPI using Twine. Search still shows the previous version:
https://pypi.org/search/?q=python-gnupg => 0.4.2
However, clicking on the link brings up the page for the latest version:
https://pypi.org/project/python-gnupg/ => 0.4.3
But pip install is also wrongly picking up 0.4.2. What's the expected delay between uploading a new version and having it be available via pip? I would have expected more or less immediately. All systems are showing as operational.
Sounds like caching invalidation lag and/or CDN propagation delay to me. For use on macOS for jolting the caching, I have the had the following bash function, which depends on (at least!) both GNU sort and pup: function pypi-versions () { records=() records+=($(dig CNAME +short pypi.python.org)) records+=($(dig A +short pypi.python.org)) records+=($(dig AAAA +short pypi.python.org)) records=($(printf '%s\n' "${records[@]}" | sort -u)) for address in "${records[@]}" do URL="https://$address/simple/$1/" curl -s -H 'Host: pypi.python.org' --insecure -XPURGE "$URL" &>/dev/null done URL="https://pypi.python.org/simple/$1/" curl -s -L "$URL" | pup 'a text{}' | gsort -V | less } I'm providing this purely for reference as it predates warehouse and the current infrastructure: Is such trickery still required with warehouse and the new infrastructure? -- Joni Orponen
It's coming up correctly on both the search page and in pip install now :-)
$ curl -I https://pypi.org/simple/python-gnupg/HTTP/1.1 200 OKCache-Control: max-age=600, publicContent-Security-Policy: default-src 'none'; sandbox allow-top-navigationContent-Type: text/html; charset=UTF-8ETag: "YEnWUk5DPw++o3kMUQi+rQ"Referrer-Policy: origin-when-cross-originServer: nginx/1.13.9X-PyPI-Last-Serial: 3957873Content-Length: 5154Accept-Ranges: bytesDate: Wed, 13 Jun 2018 15:20:21 GMTAge: 1804Connection: keep-aliveX-Served-By: cache-iad2131-IAD, cache-lhr6324-LHRX-Cache: HIT, MISSX-Cache-Hits: 1, 0X-Timer: S1528903221.367847,VS0,VE80Vary: Accept-Encoding, Accept-EncodingStrict-Transport-Security: max-age=31536000; includeSubDomains; preloadX-Frame-Options: denyX-XSS-Protection: 1; mode=blockX-Content-Type-Options: nosniffX-Permitted-Cross-Domain-Policies: none
Regards,
Vinay Sajip
On Wednesday, 13 June 2018, 16:07:33 BST, Ernest W. Durbin III
Since the old PyPI was shut down, I have noticed that it takes a few minutes for new package updates to show up. I assume that the new site is more heavily cached. On Wed, Jun 13, 2018, at 4:01 PM, Vinay Sajip via Distutils-SIG wrote:
I just uploaded python-gnupg 0.4.3 to PyPI using Twine. Search still shows the previous version:> https://pypi.org/search/?q=python-gnupg => 0.4.2
However, clicking on the link brings up the page for the latest version:> https://pypi.org/project/python-gnupg/ => 0.4.3
But pip install is also wrongly picking up 0.4.2. What's the expected delay between uploading a new version and having it be available via pip? I would have expected more or less immediately. All systems are showing as operational.> Regards,
Vinay Sajip
-- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/mm3/archives/list/distutils-sig@python.org/message/H...
participants (4)
-
Ernest W. Durbin III
-
Joni Orponen
-
Thomas Kluyver
-
Vinay Sajip