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

mgrigorov pushed a commit to branch avro-4232-install-uv-for-js-and-docker
in repository https://gitbox.apache.org/repos/asf/avro.git

commit b285326543488bbd629b830fb5f48f917741c200
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Mon Feb 23 11:32:25 2026 +0200

    AVRO-4232: Install uv for the JavaScript & Docker CI workflows
---
 .github/workflows/test-lang-js.yml | 15 +++++++++------
 share/docker/Dockerfile            | 15 +++++----------
 2 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/test-lang-js.yml 
b/.github/workflows/test-lang-js.yml
index 95a875dc6b..0033a203b5 100644
--- a/.github/workflows/test-lang-js.yml
+++ b/.github/workflows/test-lang-js.yml
@@ -37,7 +37,7 @@ jobs:
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        os: 
+        os:
           - ubuntu-latest
           - ubuntu-24.04-arm
         node:
@@ -68,7 +68,7 @@ jobs:
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        os: 
+        os:
           - ubuntu-latest
           - ubuntu-24.04-arm
         node:
@@ -99,10 +99,13 @@ jobs:
                                                             liblzma-dev \
                                                             libsnappy-dev \
                                                             libzstd-dev
-      - name: Install Python Dependencies
-        run: |
-          python3 -m pip install --break-system-packages --upgrade pip 
setuptools tox 
-          python3 -m pip install --break-system-packages python-snappy 
zstandard
+
+      - name: Setup uv
+        uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867
+
+      - name: Install Dependencies
+        working-directory: lang/py
+        run: uv sync --frozen
 
       - name: Create Interop Data Directory
         working-directory: .
diff --git a/share/docker/Dockerfile b/share/docker/Dockerfile
index 5e11cb4e39..0fc90442df 100644
--- a/share/docker/Dockerfile
+++ b/share/docker/Dockerfile
@@ -189,15 +189,10 @@ RUN apt-get -qqy install --no-install-recommends mypy \
                                                  python3.11 \
                                                  python3.12 \
                                                  python3.13 \
-                                                 python3.13-dev \
-                                                 python3-pip \
-                                                 python3-setuptools \
-                                                 python3-snappy \
-                                                 python3-venv \
-                                                 python3-wheel \
-                                                 python3-zstandard \
-                                                 tox \
- && apt-get -qqy clean
+                                                 python3.14 \
+                                                 python3.14-dev \
+ && apt-get -qqy clean \
+ && curl -LsSf https://astral.sh/uv/0.10.4/install.sh | sh
 
 # Install Ruby
 RUN apt-get -qqy install ruby-full \
@@ -219,7 +214,7 @@ RUN cd /opt ; \
     bash ./dotnet-install.sh --channel "6.0" --install-dir "/opt/dotnet" ; \
     bash ./dotnet-install.sh --channel "7.0" --install-dir "/opt/dotnet" ; \
     bash ./dotnet-install.sh --channel "8.0" --install-dir "/opt/dotnet" ;
-    
+
 ENV PATH=$PATH:/opt/dotnet
 
 # Since we want the JDK21 as a default, we have to re-prepend it to the PATH.

Reply via email to