You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We came across a strange issue when uploading release files where the name contains _ in the name (in this case the name is gti_utils)
The setup file looks like this:
#!python
setup(
# Package name
name = 'gti_utils',
version = __version__,
# Information about what needs to be packaged
package_dir = {'':'src'},
packages = find_packages('src'),
scripts = [],
The actual package name is gti_scutils. If I generate the package manually, I do get the right file::
#!bash
$ python setup.py sdist
running sdist
running egg_info
writing src/gti_utils.egg-info/PKG-INFO
writing top-level names to src/gti_utils.egg-info/top_level.txt
writing dependency_links to src/gti_utils.egg-info/dependency_links.txt
writing entry points to src/gti_utils.egg-info/entry_points.txt
reading manifest file 'src/gti_utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/gti_utils.egg-info/SOURCES.txt'
...
Writing gti_utils-0.3.0rc/setup.cfg
Creating tar archive
removing 'gti_utils-0.3.0rc' (and everything under it)
But if I perform an upload with devpi I endup with the release file gti_utils-0.3.0rc registered under gti-utils. Devpi also creates an empty project with the appropriate name gti_utils.
When listing the index we find out this:
#!bash
$ devpi list
list result: http://devpi-eu.dolby.net/lpbrac/dev/
dolby-commander
dolby_commander
gti-utils
gti_utils
$ devpi list gti-utils
list result: http://devpi-eu.dolby.net/lpbrac/dev/
lpbrac/dev/gti_utils/0.3.0rc/gti_utils-0.3.0rc.tar.gz
(gti_utils)lpbrac@lpbrac-ubuntu-vm:~/p4ws/main/qa/tools/gti_utils$ devpi list gti_utils
list result: http://devpi-eu.dolby.net/lpbrac/dev/
The release file gti_utils-0.3.0rc.tar.gz (note the _) can be listed with gti-utils while gti_utils returns nothing.
Finally note the following. I can remove gti-utils but can't delete gti_utils as shown below:
#!bash
$ devpi remove gti-utils
About to remove the following release files and metadata:
lpbrac/dev/gti_utils/0.3.0rc/gti_utils-0.3.0rc.tar.gz
Are you sure (yes/no)? yes
$ devpi remove gti_utils
nothing to delete
$ devpi list
list result: http://devpi-eu.dolby.net/lpbrac/dev/
dolby-commander
dolby_commander
gti_utils
The text was updated successfully, but these errors were encountered:
Seems like we need to give name mangling/normalization more scrutiny. It looks like incomplete normalization. FYI, If you go to https://pypi.python.org/simple/pytest_pep8/ (note the underscore) you'll end up at "pytest-pep8". If you try to use "pytest_pep8" with xmlrpc/json apis, you get a failure.
We came across a strange issue when uploading release files where the name contains
_
in the name (in this case the name isgti_utils
)The setup file looks like this:
The actual package name is
gti_scutils
. If I generate the package manually, I do get the right file::But if I perform an upload with devpi I endup with the release file
gti_utils-0.3.0rc
registered undergti-utils
. Devpi also creates an empty project with the appropriate namegti_utils
.When listing the index we find out this:
The release file
gti_utils-0.3.0rc.tar.gz
(note the_
) can be listed withgti-utils
whilegti_utils
returns nothing.Finally note the following. I can remove
gti-utils
but can't deletegti_utils
as shown below:The text was updated successfully, but these errors were encountered: