Skip to content

Submitting a PEP for the {root:uri} #1925

@LecrisUT

Description

@LecrisUT

Would you consider formalizing the {root:uri} format as a PEP. I have found two use-cases where this would need a format PEP:

  • build-system.requires for inter-dependent projects such as with hatchling and hatch. While this would not be able to be submitted to PyPI, it would still be useful for projects that are primarily distributed as git repos. We've added a similar parser for scikit-build-core because it can be very useful for compiled backends.
  • dependency-groups for meta-projects. I have noticed that some usecases of the {roo:uri} is in meta-projects 1 to guarantee that a synchronized version of dependencies is installed. But this can leave artifacts of the meta-project's dist-info, so dependency-groups should be a good alternative for it.

The issue in these cases though is that these are handled by the installers pip, uv etc. where hatchling logic cannot be injected, thus the proposal for formalizing this as a PEP.

Footnotes

  1. https://sourcegraph.com/search?q=context:global+file:pyproject.toml+%5C%7Broot:.*:%3Furi%5C%7D&patternType=regexp&sm=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions