Skip to content

Separate requirements.txt export logic from graph construction#12956

Merged
charliermarsh merged 1 commit intomainfrom
charlie/ex
Apr 18, 2025
Merged

Separate requirements.txt export logic from graph construction#12956
charliermarsh merged 1 commit intomainfrom
charlie/ex

Conversation

@charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Apr 18, 2025

Summary

A standalone, preparatory refactor for #12955.

@charliermarsh charliermarsh marked this pull request as ready for review April 18, 2025 03:09
@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Apr 18, 2025
@charliermarsh charliermarsh merged commit 784510b into main Apr 18, 2025
85 checks passed
@charliermarsh charliermarsh deleted the charlie/ex branch April 18, 2025 03:10
charliermarsh added a commit that referenced this pull request Apr 21, 2025
## Summary

This PR adds `uv export` support for [PEP
751](https://peps.python.org/pep-0751). We don't yet expose a way to
consume the generated lockfile, but it's a first step.

The logic to go from `uv.lock` to "flat set of packages to include, with
markers telling us when to include them" is all shared with the
`requirements.txt` export (and extracted in
#12956). So most of the code is just
converting from our internal types to the PEP 751 schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant