Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .generator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN apt-get update && \
# Install multiple Python versions from source. `make altinstall` is used to
# prevent replacing the system's default python binary.
# TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10.18` when the linked issue is resolved.
RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.13.7; do \
RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.13.7 3.14.0; do \
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
tar -xvf Python-${PYTHON_VERSION}.tgz && \
cd Python-${PYTHON_VERSION} && \
Expand All @@ -53,7 +53,7 @@ RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.13.7; do \
# Install pip for each python version
# TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10` when the linked issue is resolved.
RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' && \
for PYTHON_VERSION in 3.9 3.10 3.13; do \
for PYTHON_VERSION in 3.9 3.10 3.13 3.14; do \
python${PYTHON_VERSION} /tmp/get-pip.py; \
done && \
rm /tmp/get-pip.py
Expand Down Expand Up @@ -86,9 +86,6 @@ ENV SYNTHTOOL_TEMPLATES="/synthtool/synthtool/gcp/templates"
# These are the non "-dev" versions of the libraries used in the builder.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
# Temporarily include git and ca-certificates to download gapic-generator from Github
ca-certificates \
git \
# This is needed to avoid the following error:
# `ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory`.
# `libsqlite3-0` is used by the `coverage` PyPI package which is used when testing libraries
Expand All @@ -115,6 +112,9 @@ COPY --from=builder /usr/local/lib/python3.10 /usr/local/lib/python3.10
COPY --from=builder /usr/local/bin/python3.13 /usr/local/bin/
COPY --from=builder /usr/local/lib/python3.13 /usr/local/lib/python3.13

COPY --from=builder /usr/local/bin/python3.14 /usr/local/bin/
COPY --from=builder /usr/local/lib/python3.14 /usr/local/lib/python3.14

# Set the working directory in the container.
WORKDIR /app

Expand Down
4 changes: 1 addition & 3 deletions .generator/requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
click
# Temporarily use a patched version of the generator to avoid getting
# new features/fixes for GAPIC libraries for the purposes of onboarding to librarian
gapic-generator @ git+https://github.com/googleapis/[email protected]
gapic-generator>=1.28.0 # Python 3.14 support
nox
starlark-pyo3>=2025.1
build
Expand Down
Loading