Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Retrieve metadata correctly from importlib_metadata (#1115)
* fixes #977: Retrieve metadata correctly from importlib_metadata Running twine with `PYTHONWARNINGS=error`, DeprecationWarnings about missing keys indicate that `twine.__uri__` is being set to `None`. `author` is also missing from package metadata. This change iterates over Project-URLs looking for "Homepage", and parses the author and email from Author-Email. The email stdlib module is used for correctness; it is already imported by importlib_metadata, so this does not add to import time.
- Loading branch information