mirror of https://github.com/astral-sh/uv
Rename `puffin-cli` crate to `puffin` (#976)
## Summary Like in Ruff, this simplifies a few things.
This commit is contained in:
parent
6cad0f609c
commit
5e2b715366
|
|
@ -2253,56 +2253,7 @@ dependencies = [
|
|||
]
|
||||
|
||||
[[package]]
|
||||
name = "puffin-build"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"distribution-types",
|
||||
"fs-err",
|
||||
"gourgeist",
|
||||
"indoc",
|
||||
"insta",
|
||||
"itertools 0.12.0",
|
||||
"once_cell",
|
||||
"pep508_rs",
|
||||
"platform-host",
|
||||
"puffin-extract",
|
||||
"puffin-fs",
|
||||
"puffin-interpreter",
|
||||
"puffin-traits",
|
||||
"pypi-types",
|
||||
"pyproject-toml",
|
||||
"regex",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tempfile",
|
||||
"thiserror",
|
||||
"tokio",
|
||||
"toml",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "puffin-cache"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"cache-key",
|
||||
"cachedir",
|
||||
"clap",
|
||||
"directories",
|
||||
"distribution-types",
|
||||
"fs-err",
|
||||
"puffin-fs",
|
||||
"puffin-normalize",
|
||||
"pypi-types",
|
||||
"serde",
|
||||
"tempfile",
|
||||
"tracing",
|
||||
"url",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "puffin-cli"
|
||||
name = "puffin"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"anstream",
|
||||
|
|
@ -2364,6 +2315,55 @@ dependencies = [
|
|||
"which",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "puffin-build"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"distribution-types",
|
||||
"fs-err",
|
||||
"gourgeist",
|
||||
"indoc",
|
||||
"insta",
|
||||
"itertools 0.12.0",
|
||||
"once_cell",
|
||||
"pep508_rs",
|
||||
"platform-host",
|
||||
"puffin-extract",
|
||||
"puffin-fs",
|
||||
"puffin-interpreter",
|
||||
"puffin-traits",
|
||||
"pypi-types",
|
||||
"pyproject-toml",
|
||||
"regex",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tempfile",
|
||||
"thiserror",
|
||||
"tokio",
|
||||
"toml",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "puffin-cache"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"cache-key",
|
||||
"cachedir",
|
||||
"clap",
|
||||
"directories",
|
||||
"distribution-types",
|
||||
"fs-err",
|
||||
"puffin-fs",
|
||||
"puffin-normalize",
|
||||
"pypi-types",
|
||||
"serde",
|
||||
"tempfile",
|
||||
"tracing",
|
||||
"url",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "puffin-client"
|
||||
version = "0.0.1"
|
||||
|
|
|
|||
|
|
@ -47,6 +47,10 @@ Functionality for detecting the current platform (operating system, architecture
|
|||
|
||||
Functionality for parsing and inferring Python platform tags as per [PEP 425](https://peps.python.org/pep-0425/).
|
||||
|
||||
## [puffin](./puffin)
|
||||
|
||||
Command-line interface for the Puffin package manager.
|
||||
|
||||
## [puffin-build](./puffin-build)
|
||||
|
||||
A [PEP 517](https://www.python.org/dev/peps/pep-0517/)-compatible build frontend for Puffin.
|
||||
|
|
@ -55,10 +59,6 @@ A [PEP 517](https://www.python.org/dev/peps/pep-0517/)-compatible build frontend
|
|||
|
||||
Functionality for caching Python packages and associated metadata.
|
||||
|
||||
## [puffin-cli](./puffin-cli)
|
||||
|
||||
Command-line interface for the Puffin package manager.
|
||||
|
||||
## [puffin-client](./puffin-client)
|
||||
|
||||
Client for interacting with PyPI-compatible HTTP APIs.
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ use puffin_interpreter::{Interpreter, Virtualenv};
|
|||
///
|
||||
/// ```text
|
||||
/// ┌────────────────┐
|
||||
/// │puffin-cli │
|
||||
/// │puffin │
|
||||
/// └───────▲────────┘
|
||||
/// │
|
||||
/// │
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "puffin-cli"
|
||||
name = "puffin"
|
||||
version = "0.0.1"
|
||||
edition = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
|
|
@ -13,10 +13,6 @@ default-run = "puffin"
|
|||
[lints]
|
||||
workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "puffin"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
distribution-filename = { path = "../distribution-filename" }
|
||||
distribution-types = { path = "../distribution-types" }
|
||||
|
|
@ -18,7 +18,7 @@ Changelog = "https://pypi.org/project/puffin-alpha/"
|
|||
|
||||
[tool.maturin]
|
||||
bindings = "bin"
|
||||
manifest-path = "crates/puffin-cli/Cargo.toml"
|
||||
manifest-path = "crates/puffin/Cargo.toml"
|
||||
module-name = "puffin"
|
||||
python-source = "python"
|
||||
strip = true
|
||||
|
|
|
|||
|
|
@ -13,5 +13,5 @@ set -euxo pipefail
|
|||
TARGET=${1}
|
||||
|
||||
hyperfine --runs 20 --warmup 3 --prepare "rm -rf .venv && virtualenv .venv && source activate .venv/bin/activate && pip install ${TARGET}" \
|
||||
"./target/release/puffin-cli uninstall ${TARGET}" \
|
||||
"./target/release/puffin uninstall ${TARGET}" \
|
||||
"pip uninstall -y ${TARGET}"
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ TEMPLATE = TOOL_ROOT / "template.mustache"
|
|||
PACKSE = TOOL_ROOT / "packse-scenarios"
|
||||
REQUIREMENTS = TOOL_ROOT / "requirements.txt"
|
||||
PROJECT_ROOT = TOOL_ROOT.parent.parent
|
||||
TARGET = PROJECT_ROOT / "crates" / "puffin-cli" / "tests" / "pip_install_scenarios.rs"
|
||||
TARGET = PROJECT_ROOT / "crates" / "puffin" / "tests" / "pip_install_scenarios.rs"
|
||||
|
||||
try:
|
||||
import packse
|
||||
|
|
|
|||
Loading…
Reference in New Issue