Add source distribution filename abstraction (#154)

The need for this became clear when working on the source distribution
integration into the resolver.

While at it i also switch the `WheelFilename` version to the parsed
`pep440_rs` version now that we have this crate.
This commit is contained in:
konsti 2023-10-20 17:45:57 +02:00 committed by GitHub
parent 6f52b5ca4d
commit ae9d1f7572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 220 additions and 58 deletions

View file

@ -15,7 +15,7 @@ license = { workspace = true }
[dependencies]
install-wheel-rs = { path = "../install-wheel-rs", optional = true }
wheel-filename = { path = "../wheel-filename" }
distribution-filename = { path = "../distribution-filename" }
camino = { workspace = true }
clap = { workspace = true }

View file

@ -10,8 +10,8 @@ use rayon::iter::{IntoParallelIterator, ParallelIterator};
use tempfile::NamedTempFile;
use tracing::debug;
use distribution_filename::WheelFilename;
use install_wheel_rs::{install_wheel, InstallLocation};
use wheel_filename::WheelFilename;
use crate::bare::VenvPaths;
use crate::interpreter::InterpreterInfo;