mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-26 12:09:12 +00:00
Support empty dependencies in PEP 723 scripts (#5864)
## Summary Closes https://github.com/astral-sh/uv/issues/5859.
This commit is contained in:
parent
8998149ac1
commit
3ae75a21aa
3 changed files with 57 additions and 23 deletions
|
@ -14,7 +14,7 @@ static FINDER: LazyLock<Finder> = LazyLock::new(|| Finder::new(b"# /// script"))
|
|||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub struct Pep723Metadata {
|
||||
pub dependencies: Vec<pep508_rs::Requirement<VerbatimParsedUrl>>,
|
||||
pub dependencies: Option<Vec<pep508_rs::Requirement<VerbatimParsedUrl>>>,
|
||||
pub requires_python: Option<pep440_rs::VersionSpecifiers>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue