diff --git a/dataflow/snippets/Dockerfile b/dataflow/snippets/Dockerfile index ebe0d2b6d908..4e022e0dce15 100644 --- a/dataflow/snippets/Dockerfile +++ b/dataflow/snippets/Dockerfile @@ -26,15 +26,15 @@ COPY --from=apache/beam_python3.11_sdk:2.62.0 /opt/apache/beam /opt/apache/beam ENTRYPOINT [ "/opt/apache/beam/boot" ] COPY requirements.txt . -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - curl python3-distutils default-jre docker.io \ - && rm -rf /var/lib/apt/lists/* \ - && update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \ - && curl https://bootstrap.pypa.io/get-pip.py | python \ +RUN apt-get update +RUN apt-get install -y --no-install-recommends \ + curl python3-distutils default-jre docker.io +RUN rm -rf /var/lib/apt/lists/* +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 +RUN curl https://bootstrap.pypa.io/get-pip.py | python # Install the requirements. - && pip install --no-cache-dir -r requirements.txt \ - && pip check +RUN pip install --no-cache-dir -r requirements.txt +RUN pip check COPY read_kafka.py ./ diff --git a/dataflow/snippets/noxfile_config.py b/dataflow/snippets/noxfile_config.py index dd0def22c9e0..1798bbee4f8d 100644 --- a/dataflow/snippets/noxfile_config.py +++ b/dataflow/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.12", "3.13"], + "ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/dataflow/snippets/requirements.txt b/dataflow/snippets/requirements.txt index b83913587115..0f0d8796fa20 100644 --- a/dataflow/snippets/requirements.txt +++ b/dataflow/snippets/requirements.txt @@ -1,2 +1,2 @@ -apache-beam[gcp]==2.58.0 -kafka-python==2.0.2 +apache-beam[gcp]==2.63.0 +kafka-python==2.0.6