This is an automated email from the ASF dual-hosted git repository.

xintongsong pushed a commit to branch release-0.1
in repository https://gitbox.apache.org/repos/asf/flink-agents.git

commit c7c3efc0218f4229be6605c5d3453f42e54ca6ea
Author: youjin <[email protected]>
AuthorDate: Mon May 25 14:26:23 2026 +0800

    [infra] Ensure pip is installed in venv.
    
    Cherry-picked from #585 (f9510423). Applied manually because the
    release-0.1 CI structure diverges from main. Combines both PR commits:
    - Ensure pip is installed in venv (build.sh: add ensurepip line)
    - Pin uv version to 0.11.0 (ci.yml + build.sh)
---
 .github/workflows/ci.yml | 6 +++---
 tools/build.sh           | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3c8d6e65..2a5697e8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -43,7 +43,7 @@ jobs:
           python-version: 3.11
       - name: Install uv
         run: |
-          curl -LsSf https://astral.sh/uv/install.sh | sh
+          curl -LsSf https://astral.sh/uv/0.11.0/install.sh | sh
           echo "$HOME/.local/bin" >> $GITHUB_PATH
       - name: Check code style
         run: ./tools/lint.sh -c
@@ -86,7 +86,7 @@ jobs:
           python-version: ${{ matrix.python-version }}
       - name: Install uv
         run: |
-          curl -LsSf https://astral.sh/uv/install.sh | sh
+          curl -LsSf https://astral.sh/uv/0.11.0/install.sh | sh
           echo "$HOME/.local/bin" >> $GITHUB_PATH
       - name: Run Python Tests
         run: tools/ut.sh -p
@@ -112,7 +112,7 @@ jobs:
           python-version: ${{ matrix.python-version }}
       - name: Install uv
         run: |
-          curl -LsSf https://astral.sh/uv/install.sh | sh
+          curl -LsSf https://astral.sh/uv/0.11.0/install.sh | sh
           echo "$HOME/.local/bin" >> $GITHUB_PATH
       - name: Build flink-agents
         run: bash tools/build.sh
diff --git a/tools/build.sh b/tools/build.sh
index 4c070a93..93253413 100755
--- a/tools/build.sh
+++ b/tools/build.sh
@@ -52,8 +52,9 @@ cp 
"${PROJECT_ROOT}/dist/target/flink-agents-dist-${PROJECT_VERSION}.jar" ${PYTH
 # build python
 cd python
 rm -rf dist/  # Clean old build artifacts before building
-pip install uv
+pip install uv==0.11.0
 uv sync --extra dev
+uv run python -m ensurepip --default-pip
 uv run python -m build
 uv pip install dist/*.whl
 

Reply via email to