Skip to content

Is the recommendation to use metadata python.integrator for local versions outdated?  #1503

Closed

Description

@schaetzc

The last section in https://packaging.python.org/en/latest/specifications/version-specifiers/#local-version-identifiers says

Local version identifiers
[...]
Source distributions using a local version identifier SHOULD provide the python.integrator extension metadata (as defined in PEP 459).

However, I couldn't find any (still relevant) instructions for python.integrator. PEP 459 says

This PEP depends on PEP 426, which has itself been withdrawn. See the PEP Withdrawal section in that PEP for details.
In the meantime, metadata extensions will continue to be handled as they have been for past

Does that mean, python.integrator should not be used, and the hint in version specifiers is outdated and should be removed?


If yes, similar references to metadata should be removed in other documents too. E.g. https://packaging.python.org/en/latest/specifications/core-metadata/ says

PEP 566 defined a way to transform metadata into a JSON-compatible dictionary, this is not yet used as a standard interchange format

while PEP 566 itself says

This PEP is a historical document. The up-to-date, canonical spec, Core metadata specifications, is maintained on the PyPA specs page.

This looks like a cycle of outdated documents that refer to each other as being the future. Or am I missing something?

Activity

  1. changed the title [-]Is the recommendation to use metadata pytest.integrator for local versions outdated? [/-] [+]Is the recommendation to use metadata python.integrator for local versions outdated? [/+] on Feb 20, 2024
  2. chrysle commented on Feb 20, 2024

    @chrysle
    Contributor

    Does that mean, python.integrator should not be used, and the hint in version specifiers is outdated and should be removed?

    Looks like that should be done, yes.

    This looks like a cycle of outdated documents that refer to each other as being the future. Or am I missing something?

    Normally, if a packaging PEP is considered stable and is transferred to PyPUG (this guide), it will be marked as "historical" on the Python PEPs page and maintenance is handed over to the guide editors.

  3. added
    type: bug
    on Feb 20, 2024
  4. webknjaz commented on Feb 21, 2024

    @webknjaz
    Member

    cc @ncoghlan looks like that's your PEP mentioned ^

  5. ncoghlan commented on Mar 21, 2025

    @ncoghlan
    Contributor

    Yep, this is a straight up editing oversight in PEP 440 which then carried over to the packaging user guide. We can just delete the offending paragraph.

    (I don't believe the paragraph was technically out of date when PEP 440 was accepted, but then it was never updated after PEP 426 and PEP 459 were withdrawn)

  6. added a commit that references this issue on Jun 1, 2026
    95fd4ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: specificationstype: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions