mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Move unnamed requirements to their own pep508_rs module and requirements-txt (#3186)
Another refactoring in preparation of using a richer requirements type. No functional changes, only moves code around
This commit is contained in:
parent
f29c991e21
commit
82c4772e89
11 changed files with 262 additions and 244 deletions
|
@ -18,6 +18,7 @@ once-map = { workspace = true }
|
|||
pep440_rs = { workspace = true }
|
||||
pep508_rs = { workspace = true }
|
||||
pypi-types = { workspace = true }
|
||||
requirements-txt = { workspace = true }
|
||||
uv-cache = { workspace = true }
|
||||
uv-interpreter = { workspace = true }
|
||||
uv-normalize = { workspace = true }
|
||||
|
|
|
@ -4,8 +4,9 @@ use rustc_hash::FxHashMap;
|
|||
use url::Url;
|
||||
|
||||
use distribution_types::{DistributionMetadata, HashPolicy, PackageId};
|
||||
use pep508_rs::{MarkerEnvironment, RequirementsTxtRequirement, VersionOrUrl};
|
||||
use pep508_rs::{MarkerEnvironment, VersionOrUrl};
|
||||
use pypi_types::{HashDigest, HashError};
|
||||
use requirements_txt::RequirementsTxtRequirement;
|
||||
use uv_normalize::PackageName;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
@ -122,7 +123,7 @@ impl HashStrategy {
|
|||
None => {
|
||||
return Err(HashStrategyError::UnpinnedRequirement(
|
||||
requirement.to_string(),
|
||||
))
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue