mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-21 07:42:05 +00:00
Rename to uv
(#1302)
First, replace all usages in files in-place. I used my editor for this. If someone wants to add a one-liner that'd be fun. Then, update directory and file names: ``` # Run twice for nested directories find . -type d -print0 | xargs -0 rename s/puffin/uv/g find . -type d -print0 | xargs -0 rename s/puffin/uv/g # Update files find . -type f -print0 | xargs -0 rename s/puffin/uv/g ``` Then add all the files again ``` # Add all the files again git add crates git add python/uv # This one needs a force-add git add -f crates/uv-trampoline ```
This commit is contained in:
parent
328b116d5d
commit
2586f655bb
229 changed files with 1796 additions and 1818 deletions
|
@ -6,7 +6,7 @@
|
|||
//! ```
|
||||
//! use std::str::FromStr;
|
||||
//! use pep508_rs::Requirement;
|
||||
//! use puffin_normalize::ExtraName;
|
||||
//! use uv_normalize::ExtraName;
|
||||
//!
|
||||
//! let marker = r#"requests [security,tests] >= 2.8.1, == 2.8.* ; python_version > "3.8""#;
|
||||
//! let dependency_specification = Requirement::from_str(marker).unwrap();
|
||||
|
@ -42,10 +42,10 @@ pub use marker::{
|
|||
MarkerValueString, MarkerValueVersion, MarkerWarningKind, StringVersion,
|
||||
};
|
||||
use pep440_rs::{Version, VersionSpecifier, VersionSpecifiers};
|
||||
use puffin_fs::normalize_url_path;
|
||||
use uv_fs::normalize_url_path;
|
||||
#[cfg(feature = "pyo3")]
|
||||
use puffin_normalize::InvalidNameError;
|
||||
use puffin_normalize::{ExtraName, PackageName};
|
||||
use uv_normalize::InvalidNameError;
|
||||
use uv_normalize::{ExtraName, PackageName};
|
||||
pub use verbatim_url::{split_scheme, VerbatimUrl};
|
||||
|
||||
mod marker;
|
||||
|
@ -1008,7 +1008,7 @@ mod tests {
|
|||
use indoc::indoc;
|
||||
|
||||
use pep440_rs::{Operator, Version, VersionPattern, VersionSpecifier};
|
||||
use puffin_normalize::{ExtraName, PackageName};
|
||||
use uv_normalize::{ExtraName, PackageName};
|
||||
|
||||
use crate::marker::{
|
||||
parse_markers_impl, MarkerExpression, MarkerOperator, MarkerTree, MarkerValue,
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
use crate::{Cursor, Pep508Error, Pep508ErrorSource};
|
||||
use pep440_rs::{Version, VersionPattern, VersionSpecifier};
|
||||
use puffin_normalize::ExtraName;
|
||||
#[cfg(feature = "pyo3")]
|
||||
use pyo3::{
|
||||
basic::CompareOp, exceptions::PyValueError, pyclass, pymethods, PyAny, PyResult, Python,
|
||||
|
@ -23,6 +22,7 @@ use std::fmt::{Display, Formatter};
|
|||
use std::ops::Deref;
|
||||
use std::str::FromStr;
|
||||
use tracing::warn;
|
||||
use uv_normalize::ExtraName;
|
||||
|
||||
/// Ways in which marker evaluation can fail
|
||||
#[derive(Debug, Eq, Hash, Ord, PartialOrd, PartialEq, Clone, Copy)]
|
||||
|
@ -731,7 +731,7 @@ impl MarkerExpression {
|
|||
/// # use std::str::FromStr;
|
||||
/// # use pep508_rs::{MarkerTree, Pep508Error};
|
||||
/// # use pep440_rs::Version;
|
||||
/// # use puffin_normalize::ExtraName;
|
||||
/// # use uv_normalize::ExtraName;
|
||||
///
|
||||
/// # fn main() -> Result<(), Pep508Error> {
|
||||
/// let marker_tree = MarkerTree::from_str(r#"("linux" in sys_platform) and extra == 'day'"#)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue