Skip to content

First python3-debian13 images for testing#1970

Merged
loosebazooka merged 1 commit intomainfrom
python3-deb13
Jan 15, 2026
Merged

First python3-debian13 images for testing#1970
loosebazooka merged 1 commit intomainfrom
python3-deb13

Conversation

@loosebazooka
Copy link
Member

@loosebazooka loosebazooka commented Jan 14, 2026

  • Remove distutils dep and add venv. I'm not sure this is sufficient for all python users, but hopefully it will be.
  • Not too many changes otherwise
  • Not using pbs this round, will investigate for debian14

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @loosebazooka, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces initial support for Python 3.13 on Debian 13 (Trixie) within the distroless image ecosystem. It involves updating the build configurations to generate new python3-debian13 images, transitioning Python 3.13 dependencies from distutils to venv, and enhancing the build system's flexibility for package management across different Debian versions. The changes aim to provide up-to-date Python environments while maintaining the minimal footprint of distroless images.

Highlights

  • Debian 13 Python Image Introduction: New python3-debian13 images are now available in preview, supporting amd64 and arm64 architectures, and are documented in the main README.
  • Python 3.13 Support: The new Debian 13 images are built with Python 3.13, marking an upgrade from Python 3.11 used in Debian 12 images.
  • Distutils to Venv Transition: For Debian 13, the distutils dependency has been removed and python3.13-venv has been added, aligning with modern Python environment management practices. The Debian 12 image retains distutils.
  • Dynamic Package Inclusion: The build system has been refactored to dynamically include packages based on the Debian distribution, allowing for more flexible and version-specific dependency management.
  • Enhanced Test Coverage: New test cases have been added for both Debian 12 and Debian 13 Python images to ensure distutils functionality (for Debian 12) and comprehensive module importability across all installed standard library packages.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2026

🌳 🔧 Config Check

This pull request has modified the root BUILD

--- /dev/fd/63	2026-01-14 19:04:20.551589261 +0000
+++ /dev/fd/62	2026-01-14 19:04:20.551589261 +0000
@@ -566,6 +566,18 @@
 {REGISTRY}/{PROJECT_ID}/python3-debian12:nonroot //python3:python3_nonroot_debian12
 {REGISTRY}/{PROJECT_ID}/python3-debian12:nonroot-amd64 //python3:python3_nonroot_amd64_debian12
 {REGISTRY}/{PROJECT_ID}/python3-debian12:nonroot-arm64 //python3:python3_nonroot_arm64_debian12
+{REGISTRY}/{PROJECT_ID}/python3-debian13:debug //python3:python3_debug_root_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:debug-amd64 //python3:python3_debug_root_amd64_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:debug-arm64 //python3:python3_debug_root_arm64_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:debug-nonroot //python3:python3_debug_nonroot_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:debug-nonroot-amd64 //python3:python3_debug_nonroot_amd64_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:debug-nonroot-arm64 //python3:python3_debug_nonroot_arm64_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:latest //python3:python3_root_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:latest-amd64 //python3:python3_root_amd64_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:latest-arm64 //python3:python3_root_arm64_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:nonroot //python3:python3_nonroot_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:nonroot-amd64 //python3:python3_nonroot_amd64_debian13
+{REGISTRY}/{PROJECT_ID}/python3-debian13:nonroot-arm64 //python3:python3_nonroot_arm64_debian13
 {REGISTRY}/{PROJECT_ID}/python3:debug //python3:python3_debug_root_debian12
 {REGISTRY}/{PROJECT_ID}/python3:debug-amd64 //python3:python3_debug_root_amd64_debian12
 {REGISTRY}/{PROJECT_ID}/python3:debug-arm64 //python3:python3_debug_root_arm64_debian12

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces initial support for Python 3.13 on Debian 13, alongside refactoring the package management for Python images to be more dynamic and distro-specific. It successfully removes the distutils dependency and integrates venv as intended. The changes are well-structured and improve maintainability by centralizing package definitions.

I am having trouble creating individual review comments. Click here to see my feedback.

private/repos/deb/bookworm_python.lock.json (3-13)

medium

The dash package was removed from the bookworm_python.lock.json. While the PR description mentions removing distutils and adding venv, it doesn't explicitly state the removal of dash. Please confirm if this removal is intentional and if dash is no longer a required dependency for Debian 12 Python images, or if this was an unintended side effect.

private/repos/deb/bookworm_python.lock.json (278-288)

medium

The libc-bin package (amd64) was removed from the bookworm_python.lock.json. Similar to dash, please confirm if this removal is intentional and if libc-bin is no longer a required dependency for Debian 12 Python images.

private/repos/deb/bookworm_python.lock.json (290-299)

medium

The dash package (arm64) was removed from the bookworm_python.lock.json. Please confirm if this removal is intentional and if dash is no longer a required dependency for Debian 12 Python images.

private/repos/deb/bookworm_python.lock.json (564-574)

medium

The libc-bin package (arm64) was removed from the bookworm_python.lock.json. Please confirm if this removal is intentional and if libc-bin is no longer a required dependency for Debian 12 Python images.

private/repos/deb/bookworm_python.yaml (17)

medium

The dash package was removed from the bookworm_python.yaml. This aligns with the .lock.json changes. Please confirm this removal is intentional and does not impact existing Debian 12 Python images.

private/repos/deb/bookworm_python.yaml (42)

medium

The libc-bin package was removed from the bookworm_python.yaml. This aligns with the .lock.json changes. Please confirm this removal is intentional and does not impact existing Debian 12 Python images.

python3/testdata/debian13.yaml (47)

medium

The comment i thought distutils was gone? for _distutils_system_mod in the skip_modules list for Debian 13 is a bit concerning. If distutils is intended to be fully removed, this module should ideally not be present or its presence should be explicitly understood and documented. Could you clarify why this module might still be appearing or why it's being skipped?

@loosebazooka
Copy link
Member Author

This pull request has modified the root BUILD

hrmm modified incorrectly it looks like

@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2026

🌳 🔄 Image Check

This pull request has modified the following images:

//python3:python3_root_amd64_debian13 (new)
//python3:python3_nonroot_amd64_debian13 (new)
//python3:python3_debug_root_amd64_debian13 (new)
//python3:python3_debug_nonroot_amd64_debian13 (new)
//python3:python3_root_arm64_debian13 (new)
//python3:python3_nonroot_arm64_debian13 (new)
//python3:python3_debug_root_arm64_debian13 (new)
//python3:python3_nonroot_debian13 (new)
//python3:python3_root_debian13 (new)
//python3:python3_debug_nonroot_arm64_debian13 (new)
//python3:python3_debug_root_debian13 (new)
//python3:python3_debug_nonroot_debian13 (new)

You can check the details in the report here

- Remove distutils dep and add venv. I'm not sure this is sufficient
  for all python users, but hopefully it will be.
- Not too many changes otherwise

Signed-off-by: Appu Goundan <appu@google.com>
@loosebazooka loosebazooka merged commit 6c3a3ad into main Jan 15, 2026
13 checks passed
@loosebazooka loosebazooka deleted the python3-deb13 branch January 15, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants