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

Warn about potentially incompatible project name canonicalisations #560

Commits on Mar 5, 2023

  1. Warn about potentially incompatible project name canonicalisations

    The handling of package names within the Python packaging ecosystem
    is unfortunately not in a great state at the moment. There exist
    a large number of packages which contain characters which (some of)
    the specs indicate are invalid, yet there is not a clear migration
    path nor destination at the moment.
    
    Poetry's approach is to normalise project names towards their
    "canonical" form, meaning that existing projects on PyPI which
    use the more relaxed name forms will be silently renamed if they
    move to (recent versions of) Poetry. As well as changing the name
    of these packages (which maintainers are unlikely to expect nor
    desire) this unfortunately ends up breaking introspection via
    `importlib.metadata` in Python 3.8 and 3.9 which are not aware of
    the canonicalisation rules which Poetry is using.
    
    Adding this warning informs maintainers so that they can decide
    how (and if) they want this name canonicalisation to happen.
    PeterJCLaw committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    c577ffb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9fba4a1 View commit details
    Browse the repository at this point in the history