Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Cannot rename a package to be named PEP8 compliant because the new name conflicts with itself... (what?) #631

Closed
Pomax opened this issue Apr 14, 2017 · 2 comments

Comments

@Pomax
Copy link

Pomax commented Apr 14, 2017

I'm trying to rename my published package filebrowser-s3, which uses not PEP8 compliant naming, to filebrowser_s3, which is PEP8 compliant. However, when I do so, the pypi system goes "forbidden. This conflicts with package filebrowser-s3"..... which, yeah, of course it does, that's the package I'm trying to rename =)

(all the manifest files, the repo, etc. already all say that the name is filebrowser_s3, the only thing that doesn't right now is the registry itself)

Also, why do the pypi test and live registries allow people to submit packages with names that are not PEP8 compliant if you cannot safely rename them after realizing your mistake? Both servers should probably send back a "409 Rename your package, only alphanumeric characters and underscores are permitted" instead of a "200 HTTP OK" when people forget to make sure their package follows the proper naming conventions, to prevent this from happening in the future.

@Pomax Pomax changed the title Cannot rename a non-PEP8 compliantly named package to PEP8 compliant because it conflicts with itself... (what?) Cannot rename a package to be named PEP8 compliant because the new name conflicts with itself... (what?) Apr 14, 2017
@ewdurbin
Copy link
Member

@Pomax thanks for the report.

Package names and module names are not held to the same validation rules.

PyPI does not inspect the module itself for importable names/namespaces, so we cannot perform the validation you are requesting. If you think this should be implemented, please open an issue at https://github.com/pypa/warehouse/issues.

Regarding the conflict in package name on PyPI, we don't have a process for renaming packages at this time. Although this was performed in the past, we are trying to minimize the amount of this kind of administration being done while we transition from this codebase to warehouse for PyPI.

I've filed an issue on warehouse, and you can track progress on the project renaming there. pypi/warehouse#1919

@Pomax
Copy link
Author

Pomax commented Apr 15, 2017

thanks @ewdurbin - shame to hear renaming is not possible, that might be worth pointing out when users edit their entry (perhaps present the name as a fixed string rather than an input element?).

Where would be the right place to specifically request someone to update filebrowser_s3 so that its name is listed and understood as that, rather than filebrowser-s3?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants