logoalt Hacker News

lexicalitytoday at 12:51 PM2 repliesview on HN

14 days still seems way too long to me. As a user I thought releases on pypi were immutable!


Replies

kzrdudetoday at 2:04 PM

How it works in practice is that some release flows add wheels for different platforms, as they get ready, separately.

woodruffwtoday at 12:56 PM

Files are immutable on PyPI, releases are not (because releases are comprised of a set of files, and files are uploaded one by one).

This is unintuitive, but the TL;DR is that files will never change on PyPI, but (previously) a user could upload a new file to a release years after their last upload to that release. This has some legitimate use cases (like allowing people to support new Python versions without bumping a package’s version), but also makes introduces challenges around locking and release security that are elaborated in the thread linked by the blog post.

I agree this could probably be ratcheted down from 14 days over time, though.

show 2 replies