Skip to content

[PEP Providers] Package Index Fix - #94

Closed
DEKHTIARJonathan wants to merge 1 commit into
pep-providersfrom
pep-providers-index-fix
Closed

DEKHTIARJonathan wants to merge 1 commit into
pep-providersfrom
pep-providers-index-fix

Conversation

@DEKHTIARJonathan

Copy link
Copy Markdown
Member
  • Removed PyPI name-drop
  • Change MUST to SHOULD

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review comments remain.

Review effort: Lite
Findings: None

What changed in this PR

Updates PEP 9999 to make package-index guidance generic and advisory.

Changes:

  • Removes the PyPI-specific reference.
  • Changes index verification from MUST to SHOULD.
File Description
peps/​pep-9999.rst Revises provider plugin publication and package-index verification guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread peps/pep-9999.rst
Comment on lines +318 to +320
published in the same indexes as the packages using them. Package indexes
SHOULD verify that packages published to the index only require variant
provider plugins available from that same index.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many indexes that are meant as overlays, which don't want/need to be consistent.

Can we move the PyPI requirement to the non-normative part instead? It's something for PyPI's policies, we can explain that a package where the provider isn't available doesn't make sense on PyPI

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree personally - either non normative or completely removed. We don't need to state that IMHO. PyPI maintainers will do this no matter what. But if we do proceed let's try to be as much "we recommend X" as possible

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyPI maintainers will do this no matter what.

That is not at all clear to me. I don't think they'd do that if it's not done for project.dependencies and build-system.requires either.

@rgommers rgommers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is an improvement, the requirement is a bit too specific. I think there's also no requirement that says that dependencies = ['nonexistent-package'] should/must be caught.

The closest thing is, in the Requires-Dist spec](https://packaging.python.org/en/latest/specifications/core-metadata/?utm_source=chatgpt.com#requires-dist-multiple-use):

The project names should correspond to names as found on the Python Package Index.

But that's explanatory it seems to me, not a normative SHOULD. And I don't think index servers actually validate this?

@rgommers

Copy link
Copy Markdown

gh-96 is a further tweak that extends this PR and is in line with my comment above - I think we should merge that version and call it good.

@mgorny mgorny closed this Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants