Dustin Ingram
Dustin Ingram
How is pypa/warehouse#726 related to metadata strictness here?
I think it's probably worth making a distinction here: two-phase upload could help prevent metadata that is "not the author's intention, but technically compliant" (such as typos, incorrect `python_requires`, etc)...
Is this a duplicate of #9400?
Reopening because this is distinct from #9400 per https://github.com/pypi/warehouse/issues/9400#issuecomment-2318213129.
@bskinn Most of the bandwidth is consumed by distributions (files), not JSON. And even then, 90-something percent of it is cached by our CDN -- so don't feel bad 🙂...
I imagine that they'd be 404 instead in that case, same as if the project didn't actually exist. Another question, should any of these include yanked releases? I think not.
That would make sense to me!
As far as I can tell, it should never actually return NULL. It's a column property: https://github.com/pypa/warehouse/blob/bd2b3a22f4f84072eb03abb771a88ddab1489e7a/warehouse/packaging/models.py#L357 defined by this function: https://github.com/pypa/warehouse/blob/1fbb4ac752e68b5840b9e09b68e44a165569bfa6/warehouse/migrations/versions/e7b09b5c089d_add_pep440_is_prerelease.py#L29-L34 but `Release.version` can't be NULL: https://github.com/pypa/warehouse/blob/bd2b3a22f4f84072eb03abb771a88ddab1489e7a/warehouse/packaging/models.py#L355
Looks like it was added in https://github.com/pypa/warehouse/pull/3470/
Ah, thats unfortunate. Thanks for the pointer, I'll leave this open until we can resolve it by dropping support for 3.9.