Skip to content

Commit

Permalink
Rename to uv (#1302)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
zanieb authored Feb 15, 2024
1 parent 328b116 commit 2586f65
Show file tree
Hide file tree
Showing 229 changed files with 1,961 additions and 1,983 deletions.
67 changes: 33 additions & 34 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Build Puffin on all platforms.
# Build uv on all platforms.
#
# Generates both wheels (for PyPI) and archived binaries (for GitHub releases).
#
Expand All @@ -24,8 +24,8 @@ concurrency:
cancel-in-progress: true

env:
PACKAGE_NAME: puffin_alpha
MODULE_NAME: puffin
PACKAGE_NAME: uv
MODULE_NAME: uv
PYTHON_VERSION: "3.11"
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
Expand All @@ -43,7 +43,7 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build sdist"
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels - x86_64"
uses: PyO3/maturin-action@v1
with:
Expand All @@ -85,11 +85,11 @@ jobs:
- name: "Archive binary"
run: |
TARGET=x86_64-apple-darwin
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand All @@ -111,7 +111,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels - universal2"
uses: PyO3/maturin-action@v1
with:
Expand All @@ -129,11 +129,11 @@ jobs:
- name: "Archive binary"
run: |
TARGET=aarch64-apple-darwin
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
architecture: ${{ matrix.platform.arch }}
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
Expand All @@ -183,8 +183,8 @@ jobs:
- name: "Archive binary"
shell: bash
run: |
ARCHIVE_FILE=puffin-${{ matrix.platform.target }}.zip
7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/puffin.exe
ARCHIVE_FILE=uv-${{ matrix.platform.target }}.zip
7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/uv.exe
sha256sum $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
uses: actions/upload-artifact@v3
Expand All @@ -210,7 +210,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -249,11 +249,11 @@ jobs:
set -euo pipefail
TARGET=${{ matrix.target }}
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -318,11 +318,11 @@ jobs:
set -euo pipefail
TARGET=${{ matrix.platform.target }}
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand All @@ -334,7 +334,7 @@ jobs:
*.sha256
# Like `linux-arm`, but use `--no-default-features --features flate2/rust_backend` when
# building Puffin.
# building uv.
linux-s390x:
runs-on: ubuntu-latest
strategy:
Expand All @@ -351,7 +351,7 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -384,11 +384,11 @@ jobs:
set -euo pipefail
TARGET=${{ matrix.platform.target }}
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand All @@ -399,9 +399,8 @@ jobs:
*.tar.gz
*.sha256
# Like `linux-arm`, but use `--no-default-features --features flate2/rust_backend` when
# building Puffin, and install the `gcc-powerpc64-linux-gnu` package.
# building uv, and install the `gcc-powerpc64-linux-gnu` package.
linux-powerpc:
runs-on: ubuntu-latest
strategy:
Expand All @@ -420,7 +419,7 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -460,11 +459,11 @@ jobs:
set -euo pipefail
TARGET=${{ matrix.platform.target }}
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand All @@ -491,7 +490,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -520,11 +519,11 @@ jobs:
set -euo pipefail
TARGET=${{ matrix.target }}
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand Down Expand Up @@ -554,7 +553,7 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: "Prep README.md"
run: echo "# Puffin" > README.md
run: echo "# uv" > README.md
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -585,11 +584,11 @@ jobs:
set -euo pipefail
TARGET=${{ matrix.platform.target }}
ARCHIVE_NAME=puffin-$TARGET
ARCHIVE_NAME=uv-$TARGET
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
mkdir -p $ARCHIVE_NAME
cp target/$TARGET/release/puffin $ARCHIVE_NAME/puffin
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
docker-publish:
name: Build Docker image (ghcr.io/astral-sh/puffin)
name: Build Docker image (ghcr.io/astral-sh/uv)
runs-on: ubuntu-latest
environment:
name: release
Expand All @@ -40,7 +40,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/astral-sh/puffin
images: ghcr.io/astral-sh/uv

- name: Check tag consistency
if: ${{ inputs.plan != '' && !fromJson(inputs.plan).announcement_tag_is_implicit }}
Expand All @@ -64,5 +64,5 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ inputs.plan != '' && !fromJson(inputs.plan).announcement_tag_is_implicit }}
tags: ghcr.io/astral-sh/puffin:latest,ghcr.io/astral-sh/puffin:${{ (inputs.plan != '' && fromJson(inputs.plan).announcement_tag) || 'dry-run' }}
tags: ghcr.io/astral-sh/uv:latest,ghcr.io/astral-sh/uv:${{ (inputs.plan != '' && fromJson(inputs.plan).announcement_tag) || 'dry-run' }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: "Install Rust toolchain"
working-directory: crates/puffin-trampoline
working-directory: crates/uv-trampoline
run: |
rustup target add x86_64-pc-windows-msvc
rustup component add clippy rust-src --toolchain nightly-2024-01-23-x86_64-pc-windows-msvc
- uses: rui314/setup-mold@v1
- uses: Swatinem/rust-cache@v2
with:
workspaces: "crates/puffin-trampoline"
workspaces: "crates/uv-trampoline"
- name: "Clippy"
working-directory: crates/puffin-trampoline
working-directory: crates/uv-trampoline
run: cargo clippy --all-features --locked -- -D warnings
- name: "Build"
working-directory: crates/puffin-trampoline
working-directory: crates/uv-trampoline
run: cargo build --release -Z build-std=core,panic_abort,alloc -Z build-std-features=compiler-builtins-mem --target x86_64-pc-windows-msvc
Loading

0 comments on commit 2586f65

Please sign in to comment.