Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: KeyError: 'home-page' #1127

Closed
wants to merge 1 commit into from
Closed

fix: KeyError: 'home-page' #1127

wants to merge 1 commit into from

Commits on Jun 25, 2024

  1. fix: KeyError: 'home-page'

    This is the simplest fix to move forward on resolving the issue a
    `KeyError` occurring.
    
    Error seen is like this:
    $ python -m twine check dist/*
    Traceback (most recent call last):
      File "/py/lib/python3.8/runpy.py", line 185, in _run_module_as_main
        mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
      File "/py/lib/python3.8/runpy.py", line 144, in _get_module_details
        return _get_module_details(pkg_main_name, error)
      File "/py/lib/python3.8/runpy.py", line 111, in _get_module_details
        __import__(pkg_name)
      File "/venv/lib/python3.8/site-packages/twine/__init__.py", line 40, in <module>
        __uri__ = metadata["home-page"]
      File "/venv/lib/python3.8/site-packages/importlib_metadata/_adapters.py", line 54, in __getitem__
        raise KeyError(item)
    KeyError: 'home-page'
    
    Related: #977
    JohnVillalovos committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    817fb82 View commit details
    Browse the repository at this point in the history