mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Bump MSRV to 1.85 and Edition 2024 (#13516)
## Summary Builds on https://github.com/astral-sh/uv/pull/11724. Closes https://github.com/astral-sh/uv/issues/13476.
This commit is contained in:
parent
cc6e766232
commit
c5032aee80
240 changed files with 726 additions and 737 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "uv-scripts"
|
||||
version = "0.0.1"
|
||||
edition = "2021"
|
||||
edition = { workspace = true }
|
||||
description = "Parse PEP 723-style Python scripts."
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -370,7 +370,9 @@ pub struct ToolUv {
|
|||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum Pep723Error {
|
||||
#[error("An opening tag (`# /// script`) was found without a closing tag (`# ///`). Ensure that every line between the opening and closing tags (including empty lines) starts with a leading `#`.")]
|
||||
#[error(
|
||||
"An opening tag (`# /// script`) was found without a closing tag (`# ///`). Ensure that every line between the opening and closing tags (including empty lines) starts with a leading `#`."
|
||||
)]
|
||||
UnclosedBlock,
|
||||
#[error("The PEP 723 metadata block is missing from the script.")]
|
||||
MissingTag,
|
||||
|
@ -585,7 +587,7 @@ fn serialize_metadata(metadata: &str) -> String {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{serialize_metadata, Pep723Error, Pep723Script, ScriptTag};
|
||||
use crate::{Pep723Error, Pep723Script, ScriptTag, serialize_metadata};
|
||||
use std::str::FromStr;
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue