Skip to content

Commit a72bed4

Browse files
authored
chore: reduce python versions in librarian (googleapis#14363)
fixes: googleapis/librarian#1845
1 parent 55fd696 commit a72bed4

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.generator/Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ ENV BAZELISK_VERSION=v1.26.0
4848

4949
# Install multiple Python versions from source. `make altinstall` is used to
5050
# prevent replacing the system's default python binary.
51-
RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
51+
# TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10.18` when the linked issue is resolved.
52+
RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.13.5; do \
5253
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
5354
tar -xvf Python-${PYTHON_VERSION}.tgz && \
5455
cd Python-${PYTHON_VERSION} && \
@@ -60,8 +61,9 @@ RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
6061
; done
6162

6263
# Install pip for each python version
64+
# TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10` when the linked issue is resolved.
6365
RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' && \
64-
for PYTHON_VERSION in 3.9 3.10 3.11 3.12 3.13; do \
66+
for PYTHON_VERSION in 3.9 3.10 3.13; do \
6567
python${PYTHON_VERSION} /tmp/get-pip.py; \
6668
done && \
6769
rm /tmp/get-pip.py
@@ -142,15 +144,10 @@ RUN apt-get update && \
142144
COPY --from=builder /usr/local/bin/python3.9 /usr/local/bin/
143145
COPY --from=builder /usr/local/lib/python3.9 /usr/local/lib/python3.9
144146

147+
# TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10` when the linked issue is resolved.
145148
COPY --from=builder /usr/local/bin/python3.10 /usr/local/bin/
146149
COPY --from=builder /usr/local/lib/python3.10 /usr/local/lib/python3.10
147150

148-
COPY --from=builder /usr/local/bin/python3.11 /usr/local/bin/
149-
COPY --from=builder /usr/local/lib/python3.11 /usr/local/lib/python3.11
150-
151-
COPY --from=builder /usr/local/bin/python3.12 /usr/local/bin/
152-
COPY --from=builder /usr/local/lib/python3.12 /usr/local/lib/python3.12
153-
154151
COPY --from=builder /usr/local/bin/python3.13 /usr/local/bin/
155152
COPY --from=builder /usr/local/lib/python3.13 /usr/local/lib/python3.13
156153

.generator/cli.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,6 @@ def handle_build(librarian: str = LIBRARIAN_DIR, repo: str = REPO_DIR):
441441
"""The main coordinator for validating client library generation."""
442442
sessions = [
443443
"unit-3.9",
444-
"unit-3.10",
445-
"unit-3.11",
446-
"unit-3.12",
447444
"unit-3.13",
448445
"docs",
449446
"system-3.13",

0 commit comments

Comments
 (0)