mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Update pyproject-toml to 0.8.0 (#329)
This commit is contained in:
parent
c9e0f4986f
commit
b79a15b458
3 changed files with 4 additions and 16 deletions
|
@ -3,8 +3,7 @@ use std::path::Path;
|
|||
use std::str::FromStr;
|
||||
|
||||
use fs_err as fs;
|
||||
use pyproject_toml::{BuildSystem, Project};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pyproject_toml::PyProjectToml;
|
||||
use toml_edit::Document;
|
||||
|
||||
use pep508_rs::Requirement;
|
||||
|
@ -14,17 +13,6 @@ use crate::toml::format_multiline_array;
|
|||
use crate::verbatim::VerbatimRequirement;
|
||||
use crate::WorkspaceError;
|
||||
|
||||
/// Unlike [`pyproject_toml::PyProjectToml`], in our case `build_system` is also optional
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
struct PyProjectToml {
|
||||
/// Build-related data
|
||||
build_system: Option<BuildSystem>,
|
||||
|
||||
/// Project metadata
|
||||
project: Option<Project>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Workspace {
|
||||
/// The parsed `pyproject.toml`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue