mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-19 11:35:36 +00:00
Clean up Error enum in Metadata23 (#2835)
## Summary Rename, and remove a bunch of unused variants.
This commit is contained in:
parent
2f386ef440
commit
a0b8d1a994
3 changed files with 56 additions and 66 deletions
|
|
@ -48,7 +48,7 @@ pub enum Error {
|
|||
metadata: PackageName,
|
||||
},
|
||||
#[error("Failed to parse metadata from built wheel")]
|
||||
Metadata(#[from] pypi_types::Error),
|
||||
Metadata(#[from] pypi_types::MetadataError),
|
||||
#[error("Failed to read `dist-info` metadata from built wheel")]
|
||||
DistInfo(#[from] install_wheel_rs::Error),
|
||||
#[error("Failed to read zip archive from built wheel")]
|
||||
|
|
@ -62,11 +62,11 @@ pub enum Error {
|
|||
#[error("The source distribution is missing a `PKG-INFO` file")]
|
||||
MissingPkgInfo,
|
||||
#[error("The source distribution does not support static metadata in `PKG-INFO`")]
|
||||
DynamicPkgInfo(#[source] pypi_types::Error),
|
||||
DynamicPkgInfo(#[source] pypi_types::MetadataError),
|
||||
#[error("The source distribution is missing a `pyproject.toml` file")]
|
||||
MissingPyprojectToml,
|
||||
#[error("The source distribution does not support static metadata in `pyproject.toml`")]
|
||||
DynamicPyprojectToml(#[source] pypi_types::Error),
|
||||
DynamicPyprojectToml(#[source] pypi_types::MetadataError),
|
||||
#[error("Unsupported scheme in URL: {0}")]
|
||||
UnsupportedScheme(String),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue