Amending PEP 427 (and PEP 625) on package normalization rules

Sounds like either one of the tools in the process of getting that data to PyPI normalized the name prior to sending that data to PyPI or Warehouse has a bug. I don’t have time at the moment to dig into which of those things are causing it.

If you wanted to dig into it, you could see what (it looks like you uploaded with twine?) twine is sending on the wire, since Warehouse doesn’t introspect the package currently, it’s trusting data that is sent in a HTML form alongside the file by twine. I believe that happens here, if you wanted to drop some debugging code in there to see what is being sent.

If your uploader is sending a form field with the name name and the value pkg_resources and Warehouse isn’t updating the display name to pkg_resources then that’s a bug in Warehouse.