pypi / warehouse

The Python Package Index
https://pypi.org
Apache License 2.0
3.51k stars 940 forks source link

.whl.metadata file downloads are recorded with filetype=bdist_wheel #16207

Open alex opened 1 week ago

alex commented 1 week ago

These should probably have a distinct filetype, they're not actually wheels.

di commented 1 week ago

Transferring this to https://github.com/pypi/warehouse/ as the primary issue is with how we store the file.

This value is passed from the object storage metadata (via the x-amz-meta-package-type header) to the download logs.

It's set here: https://github.com/pypi/warehouse/blob/16c9bce8a6bd7e14acc14cbdf66910595f45cb48/warehouse/forklift/legacy.py#L1148-L1157

We probably need to figure out a new "package type" to change this to. We'll need to update linehaul to be able to parse this new package type as well.