caniusepython3 icon indicating copy to clipboard operation
caniusepython3 copied to clipboard

Identify supported versions from wheel format

Open chhantyal opened this issue 11 years ago • 2 comments

Just wondering if it's possible to detect supported version from wheel format.

For example, this https://pypi.python.org/pypi/reportlab doesn't show version in classifier but uploaded wheel shows what versions of Python are supported.

chhantyal avatar Jan 28 '15 16:01 chhantyal

It's not only possible but I once had code to do it when http://py3ksupport.appspot.com/ was running. But I also found it wasn't worth the hassle and extra overhead. I have gone ahead and updated the overrides file for reportlab and filed a ticket on Warehouse -- next version of PyPI -- to automatically set the trove classifier when the wheel file specifies it.

I'll leave this open if someone really wants to code up the support and can show it won't lead to a doubling of network requests (if I remember correctly it will, though, simply to get the file listing).

brettcannon avatar Jan 29 '15 12:01 brettcannon

A potential downside to this approach is that projects with an inaccurate setup.cfg such as pyrax would incorrectly be seen as supporting Python 3. I think having Warehouse handle it is an excellent idea.

vaibhavsagar avatar Jan 31 '15 04:01 vaibhavsagar