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.
- 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.