I reached out to the owner of a project hosted on pypi which was not in active development asking if they would be willing to free up the name.
They agreed and deleted the project from pypi.
My understanding is that the name would go back into the namespace of available names, but when I try to use it I get:
$ twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Uploading depl-0.1.dev1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 kB • 00:00 • ?
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
The name 'depl' is too similar to an existing project. See
https://pypi.org/help/#project-name for more information.
The namespace I’m trying to use is depl
.
I had a look at the code which generates this error, and it seems to be doing a comparison against the database using: https://github.com/pypi/warehouse/blob/17f76cf365adc1807a84e6ca481467e73dbe87c8/warehouse/migrations/versions/d18d443f89f0_ultranormalize_name_function.py#L13
.
It seems like there would be a conflict if there was an existing package with the name dep1
but I can’t see any package on pypi with that name.
The only other thing I can think of is if the original name is being retained.
In any case, how might I resolve this issue?
I filed a Pep 541 request here: https://github.com/pypi/support/issues/2990, but I already have the previous maintainer’s agreement.
Unfortunately instead of adding me as an owner, they deleted the project - we both just assumed the name would go back into the namespace.
Is the current process of what happens when a project is deleted from pypi documented anywhere?
I see that there is a discussion taking place here: Stop Allowing deleting things from PyPI?
but this doesn’t seem to have resulted in any stated policy.