This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 8181eb6e0e1 [improve] Upgrade pulsar-client-python to 3.7.0 in Docker
image (#24302)
8181eb6e0e1 is described below
commit 8181eb6e0e199ad7748dd1252acc382e434e5443
Author: Lari Hotari <[email protected]>
AuthorDate: Wed May 14 18:20:19 2025 +0300
[improve] Upgrade pulsar-client-python to 3.7.0 in Docker image (#24302)
(cherry picked from commit 0b07edccd5ada2906c4adaea4091ec8ce49e57e3)
---
docker/pulsar/Dockerfile | 25 ++++---------------------
pom.xml | 2 +-
2 files changed, 5 insertions(+), 22 deletions(-)
diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index af72116d64e..304eaa0cc3a 100644
--- a/docker/pulsar/Dockerfile
+++ b/docker/pulsar/Dockerfile
@@ -104,28 +104,11 @@ RUN apk add --no-cache \
RUN apk upgrade --no-cache
# Python dependencies
-
-# The [email protected] is installed by apk, and [email protected] requires
grpcio>=1.60.0, which causes the grocio to be reinstalled by pip.
-# If pip cannot find the grpcio wheel that the doesn't match the OS, the
grpcio will be compiled locally.
-# Once https://github.com/apache/pulsar-client-python/pull/211 is released,
keep only the pulsar-client[all] and kazoo dependencies, and remove comments.
ARG PULSAR_CLIENT_PYTHON_VERSION
-RUN echo -e "\
-#pulsar-client[all]==${PULSAR_CLIENT_PYTHON_VERSION}\n\
-pulsar-client==${PULSAR_CLIENT_PYTHON_VERSION}\n\
-# Zookeeper\n\
-kazoo\n\
-# functions\n\
-protobuf>=3.6.1,<=3.20.3\n\
-grpcio>=1.59.3\n\
-apache-bookkeeper-client>=4.16.1\n\
-prometheus_client\n\
-ratelimit\n\
-# avro\n\
-fastavro>=1.9.2\n\
-" > /requirements.txt
-
-RUN pip3 install --break-system-packages --no-cache-dir --only-binary grpcio
-r /requirements.txt
-RUN rm /requirements.txt
+RUN pip3 install --break-system-packages --no-cache-dir \
+ --only-binary grpcio \
+ pulsar-client[all]==${PULSAR_CLIENT_PYTHON_VERSION} \
+ kazoo
COPY --from=jvm /opt/jvm /opt/jvm
ENV JAVA_HOME=/opt/jvm
diff --git a/pom.xml b/pom.xml
index 46b5244e95d..20fa491a36d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,7 +82,7 @@ flexible messaging model and an intuitive client
API.</description>
<pulsar.broker.compiler.release>${maven.compiler.target}</pulsar.broker.compiler.release>
<pulsar.client.compiler.release>8</pulsar.client.compiler.release>
- <pulsar.client.python.version>3.5.0</pulsar.client.python.version>
+ <pulsar.client.python.version>3.7.0</pulsar.client.python.version>
<IMAGE_JDK_MAJOR_VERSION>21</IMAGE_JDK_MAJOR_VERSION>