Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to reserve a name #2082

Open
dstufft opened this issue Jun 3, 2017 · 2 comments
Open

Add the ability to reserve a name #2082

dstufft opened this issue Jun 3, 2017 · 2 comments

Comments

@dstufft
Copy link
Member

dstufft commented Jun 3, 2017

In pypa/packaging.python.org#271 and #1627 we talked about the register api, whether we want to support it or not and what use cases it solves that might not be currently solved. While I decided to continue not to support it for now, their is possibly some desire around a pre-reservation API for names.

What this looks like exactly who knows, but reading the two linked threads can give some background on it.

@brainwane
Copy link
Contributor

We discussed this in a meeting this week. PyPI admins can already use the web interface to prohibit names to stop them from being used, and unreserve/allow previously prohibited names.

This issue is more about giving this feature to end users through the web interface. Perhaps a reservation request would enter a queue for moderators/admins to approve (#3231).

(The workaround for PyPI users right now: uploading an empty package.)

@edmorley
Copy link

edmorley commented Feb 7, 2022

In previous discussions about use-cases for reserving a name, I've seen the following mentioned:

  • Reserving a package name before the release of a new public package, to prevent a race condition between the landing of code in a public GitHub repo and the package actually being published.
  • Reserving the name of an internal package, to prevent dependency-confusion type issues if tools/internal package indexes aren't configured correctly.

However I haven't seen this use-case mentioned yet:

  • Wanting to reserve namespaces inside the pyproject.toml [tool] table (as required by PEP518) for tooling that isn't distributed on PyPI (eg configuration for deployment tooling, such as buildpacks).

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

No branches or pull requests

4 participants