Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename to uv #1302

Merged
merged 12 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading