Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-8476

PyPI doesn't normalize package names; incompatible with pip 8.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.7.3
    • Component/s: PyPI
    • Labels:
      None

      Description

      Per PEP 503 a package should be available at this URL:

      https://.../simple/packagename/
      

      Where "packagename" is the normalized package name (that is, downcased and with runs of certain characters replaced with -). Artifactory 4.2.0 doesn't normalize the name, which causes pip to print this warning when installing packages with names requiring normalization:

      DEPRECATION: Failed to find 'SomePackage' at https://artifactory/api/pypi/blueplanet-pypi/simple/somepackage/. It is suggested to upgrade your index to support normalized names as the name in /simple/{name}.
      

      pip then fetches https://artifactory/api/pypi/blueplanet-pypi/simple/, which is very slow as it is a proxy to pypi.python.org. Aside from the warning noise, this slows down installation unnecessarily.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            twm Tom Most
            Votes:
            14 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: