Separate requirements.txt export logic from graph construction (#12956)

## Summary

A standalone, preparatory refactor for
https://github.com/astral-sh/uv/pull/12955.
This commit is contained in:
Charlie Marsh 2025-04-17 23:10:03 -04:00 committed by GitHub
parent eef3fc2215
commit 784510becc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 274 additions and 232 deletions

View file

@ -48,9 +48,9 @@ use uv_types::{BuildContext, HashStrategy};
use uv_workspace::WorkspaceMember;
use crate::fork_strategy::ForkStrategy;
pub use crate::lock::export::RequirementsTxtExport;
pub use crate::lock::installable::Installable;
pub use crate::lock::map::PackageMap;
pub use crate::lock::requirements_txt::RequirementsTxtExport;
pub use crate::lock::tree::TreeDisplay;
use crate::requires_python::SimplifiedMarkerTree;
use crate::resolution::{AnnotatedDist, ResolutionGraphNode};
@ -60,9 +60,9 @@ use crate::{
ResolverOutput,
};
mod export;
mod installable;
mod map;
mod requirements_txt;
mod tree;
/// The current version of the lockfile format.