mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-28 10:50:29 +00:00
Fall back to PEP 517 hooks for non-compliant PEP 621 metadata (#2662)
If you pass a `pyproject.toml` that use Hatch's context formatting API, we currently fail because the dependencies aren't valid under PEP 508. This PR makes the static metadata parsing a little more relaxed, so that we appropriately fall back to PEP 517 there.
This commit is contained in:
parent
12846c2c85
commit
39769d82a0
9 changed files with 347 additions and 160 deletions
|
|
@ -92,10 +92,7 @@ impl<'a> SourceTreeResolver<'a> {
|
|||
SourceDistCachedBuilder::new(context, client)
|
||||
};
|
||||
|
||||
let metadata = builder
|
||||
.download_and_build_metadata(&source)
|
||||
.await
|
||||
.context("Failed to build source distribution")?;
|
||||
let metadata = builder.download_and_build_metadata(&source).await?;
|
||||
|
||||
// Determine the appropriate requirements to return based on the extras. This involves
|
||||
// evaluating the `extras` expression in any markers, but preserving the remaining marker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue