Provide distribution metadata as 'data' attributes on links in simple index

The discussions regarding backtracking in pip’s dependency resolution (and distantly related: sdist metadata) are showing up in my feed again (such as this one). So I thought I would give this idea a fresh boost, maybe catch some new eyes.

I think the advantages are obvious.

If data-requires-python is effectively used reliably by pip to exclude some distributions, why not extend the concept? But maybe pip does not actually uses this attribute, in which case this idea has not much value.

My impression is that PEP 503 is somehow on the way out, so people might be reluctant to add new data-attributes to it, if the whole thing is gonna be scraped soon anyway. Is that the case? What would be the other drawbacks of such a solution?

2 Likes