Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-16401

PyPi hosted repository packages can only be searched by pep-0503 normalized name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.8.0
    • Fix Version/s: 3.15.0
    • Component/s: PyPI, REST, Search
    • Labels:
    • Story Points:
      3

      Description

      Use twine to upload a python package with a special character in its name, such as "jyt.python"
      into a hosted pypi repository:

      1. python setup.py sdist --formats=gztar
      2. twine upload FILENAME.tar.gz --repository-url NEXUS_PYPI_URL

      Then try to use the REST API or UI search to find this package by its name. Searching using "jyt.python" will not work, but "jyt_python" will work. This appears to be due to the normalization of names applied by Nexus as defined by https://www.python.org/dev/peps/pep-0503/#normalized-names .

      Contrary, when using a PyPi proxy to a python package with "." in its name, Nexus stores this name NOT normalized and searching without an underscore will work.

      Expected

      • one should be able to find PyPi packages using REST or UI search in a consistent way regardless of name normalization or the repository type containing the package
      • Updated: a discussion on the implications of this ticket was held on 11/08/18. To fully implement this ticket would require an upgrade step. This was felt unnecessary at the moment, therefore only new uploaded packages will be able to search on both normalized and non-normalized package names.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mdodgson Mark Dodgson
                Reporter:
                plynch Peter Lynch
                Last Updated By:
                Jeremy Bryan
                Team:
                NXRM - Cypher
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: