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
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@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/BSXCEGEMKFGBAZYMRGNS3TFQR5FOFLNT/

Reply via email to