Skip to content

Metadata returned even for superseded packages #280

@jaraco

Description

@jaraco

In jaraco/keyring#486, the reporter encountered an issue when keyring 22 changed the name of an entry point. After the change, with the latest version installed with --user and an older version installed in system site-packages, there are two copies of keyring installed, the latest version taking precedence. importlib_metadata, however, loads metadata for both packages, including references to the unreachable and no longer valid entry points from the older package.

Probably the entry_points loading mechanism should only return entry points for the first package by any given name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions