diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 625f0e1f6..ae98bfadb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" enable-cache: true - name: Install dependencies(only dev group) run: uv sync --only-group dev @@ -52,6 +53,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" enable-cache: true - name: Install dependencies(only dev group) run: uv sync --only-group dev @@ -70,6 +72,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" enable-cache: true - name: Install dependencies run: | @@ -106,6 +109,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" enable-cache: true - name: Install dependencies run: | @@ -142,6 +146,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" enable-cache: true python-version: '3.11' - name: Install dependencies @@ -185,6 +190,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" enable-cache: true # python-version: ${{ matrix.python-version }} python-version: '3.11' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9c3cb8774..e2ba56b97 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -51,6 +51,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" python-version: "3.11" - name: Build prose-only HTML @@ -81,6 +82,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" python-version: "3.11" - name: Install system deps diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75a735227..5587bd17a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,7 @@ jobs: persist-credentials: false - uses: astral-sh/setup-uv@v8.0.0 with: + version: "0.12.5" enable-cache: false - name: Verify tag matches project version if: startsWith(github.ref, 'refs/tags/v') diff --git a/Dockerfile b/Dockerfile index 4a0789220..b6f22e944 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libsm6 \ && rm -rf /var/lib/apt/lists/* -RUN curl -LsSf https://astral.sh/uv/install.sh | sh +RUN curl -LsSf https://astral.sh/uv/0.12.5/install.sh | sh WORKDIR /workspace/UniLab diff --git a/docs/sphinx/source/en/1-getting_started/2-installation.md b/docs/sphinx/source/en/1-getting_started/2-installation.md index 402bee672..a6b1282bd 100644 --- a/docs/sphinx/source/en/1-getting_started/2-installation.md +++ b/docs/sphinx/source/en/1-getting_started/2-installation.md @@ -29,8 +29,8 @@ live in the getting-started and algorithm pages. ## Clone And Sync ```bash -# Linux / macOS: -curl -LsSf https://astral.sh/uv/install.sh | sh +# Linux / macOS (the repository pins uv via [tool.uv] required-version): +curl -LsSf https://astral.sh/uv/0.12.5/install.sh | sh # Windows PowerShell: # powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" diff --git a/docs/sphinx/source/zh_CN/1-getting_started/2-installation.md b/docs/sphinx/source/zh_CN/1-getting_started/2-installation.md index 18c6bcf36..a3cf2ada2 100644 --- a/docs/sphinx/source/zh_CN/1-getting_started/2-installation.md +++ b/docs/sphinx/source/zh_CN/1-getting_started/2-installation.md @@ -26,8 +26,8 @@ ## 克隆与同步 ```bash -# Linux / macOS: -curl -LsSf https://astral.sh/uv/install.sh | sh +# Linux / macOS(仓库通过 [tool.uv] required-version 固定 uv 版本): +curl -LsSf https://astral.sh/uv/0.12.5/install.sh | sh # Windows PowerShell: # powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" diff --git a/pyproject.rocm.toml b/pyproject.rocm.toml index 2b249cc9b..820207e70 100644 --- a/pyproject.rocm.toml +++ b/pyproject.rocm.toml @@ -93,6 +93,7 @@ triton-rocm = [ ] [tool.uv] +required-version = "==0.12.5" exclude-dependencies = [ "torchvision", "nvidia-cublas-cu12", diff --git a/pyproject.toml b/pyproject.toml index 396336b05..decd7ff02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -133,6 +133,7 @@ torch = [ ] [tool.uv] +required-version = "==0.12.5" exclude-dependencies = ["torchvision"] required-environments = [ "sys_platform == 'darwin' and platform_machine == 'arm64'",