mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Remove additional 'because' (#2849)
## Summary Is this, perhaps, not totally necessary? It doesn't show up in any fixtures beyond those that I added recently. Closes https://github.com/astral-sh/uv/issues/2846.
This commit is contained in:
parent
8ffdcced0f
commit
35940cb885
3 changed files with 8 additions and 17 deletions
|
@ -429,18 +429,10 @@ impl<
|
|||
.await?
|
||||
{
|
||||
Dependencies::Unavailable(reason) => {
|
||||
let message = {
|
||||
if matches!(package, PubGrubPackage::Root(_)) {
|
||||
// Including front-matter for the root package is redundant
|
||||
reason.clone()
|
||||
} else {
|
||||
format!("its dependencies are unusable because {reason}")
|
||||
}
|
||||
};
|
||||
state.add_incompatibility(Incompatibility::unavailable(
|
||||
package.clone(),
|
||||
version.clone(),
|
||||
message,
|
||||
reason.clone(),
|
||||
));
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -4569,10 +4569,9 @@ fn invalid_metadata_requires_python() -> Result<()> {
|
|||
|
||||
----- stderr -----
|
||||
× No solution found when resolving dependencies:
|
||||
╰─▶ Because validation==2.0.0 is unusable because its dependencies are
|
||||
unusable because the package metadata could not be parsed and you
|
||||
require validation==2.0.0, we can conclude that the requirements are
|
||||
unsatisfiable.
|
||||
╰─▶ Because validation==2.0.0 is unusable because the package metadata could
|
||||
not be parsed and you require validation==2.0.0, we can conclude that
|
||||
the requirements are unsatisfiable.
|
||||
"###
|
||||
);
|
||||
|
||||
|
@ -4598,10 +4597,9 @@ fn invalid_metadata_multiple_dist_info() -> Result<()> {
|
|||
|
||||
----- stderr -----
|
||||
× No solution found when resolving dependencies:
|
||||
╰─▶ Because validation==3.0.0 is unusable because its dependencies
|
||||
are unusable because the package has an invalid format and you
|
||||
require validation==3.0.0, we can conclude that the requirements are
|
||||
unsatisfiable.
|
||||
╰─▶ Because validation==3.0.0 is unusable because the package has an invalid
|
||||
format and you require validation==3.0.0, we can conclude that the
|
||||
requirements are unsatisfiable.
|
||||
"###
|
||||
);
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
# Artifacts from the build process.
|
||||
*.egg-info/
|
||||
build/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue