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

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

Open
LecrisUT opened this issue Mar 3, 2025 · 0 comments
Open

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

LecrisUT opened this issue Mar 3, 2025 · 0 comments

Comments

@LecrisUT
Copy link

LecrisUT commented Mar 3, 2025

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

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

No branches or pull requests

1 participant