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

Write out full PEP 508 requirements for relative paths and editables #3978

Open
charliermarsh opened this issue Jun 3, 2024 · 1 comment
Labels
compatibility Compatibility with a specification or another tool

Comments

@charliermarsh
Copy link
Member

In pip compile, we take special care to write out editables and relative paths as unnamed URLs. But uv supports PEP 508 requirements for editables, and allows relative URLs too. Should we just write them out in full form? The output requirements.txt won't work with pip, since pip does not yet support PEP 508 for editables, so we'd need to have a --pip-compat flag or similar to allow that behavior.

@charliermarsh charliermarsh added the compatibility Compatibility with a specification or another tool label Jun 3, 2024
@charliermarsh
Copy link
Member Author

Concretely, see RequirementsTxtDist::to_requirements_txt. In theory, we shouldn't need that special-casing. We can write -e for an editable, then write a PEP 508 requirement in either case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with a specification or another tool
Projects
None yet
Development

No branches or pull requests

1 participant