GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(core): warn when importing on Python 3.10. by lahirumaramba · Pull Request #998 · firebase/firebase-admin-python

Conversation

@lahirumaramba

@lahirumaramba lahirumaramba commented Oct 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Importing firebase_admin on Python 3.10 now emits a FutureWarning recommending Python 3.11 or higher. We check against a fixed version tuple per SDK release rather than comparing the current date against an EoL calendar at runtime, so an already-released SDK version never starts printing new warnings on a future calendar date.

Technical Details
  • Package initialization (firebase_admin/__init__.py) calls check_python_version() (firebase_admin/_python_version_support.py) once at import time and compares sys.version_info against _MIN_NON_DEPRECATED_VERSION = (3, 11).
  • Emits FutureWarning (stacklevel=2) rather than DeprecationWarning because Python hides DeprecationWarning outside __main__ by default, so application logs would otherwise miss it.
  • Rollout: emit FutureWarning on Python 3.10 in this minor release, drop Python 3.10 in a subsequent minor release, and bump _MIN_NON_DEPRECATED_VERSION in future minor releases ahead of dropping older Python versions.
  • Testing: Added unit tests in tests/test_python_version_support.py and verified ./lint.sh all locally.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
@lahirumaramba
lahirumaramba requested a review from a team October 21, 2026 19:01
@lahirumaramba lahirumaramba mentioned this pull request Oct 21, 2026
feat(core): add runtime Python version support warning for EoL versions #997
Closed
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Oct 21, 2026
View reviewed changes

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

Copy link
Copy Markdown

There was a problem hiding this 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 a Python version support checking mechanism for the Firebase Admin Python SDK. It adds a new module _python_version_support.py that checks the running Python version against a list of tracked versions and issues deprecation, end-of-life, or unsupported warnings accordingly. The README.md is updated to reflect that Python 3.9 and 3.10 support is deprecated, and comprehensive tests are added in tests/test_python_version_support.py. The review feedback suggests improving the warning attribution by adding stacklevel=2 to the warnings.warn calls, and refactoring the min_python helper function to avoid grammatically awkward fallback messages.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread firebase_admin/_python_version_support.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lahirumaramba lahirumaramba changed the title feat(core): add runtime Python version support warning for EoL versions feat(core): warn when importing on Python 3.9 or 3.10. Nov 3, 2026
@lahirumaramba lahirumaramba changed the title feat(core): warn when importing on Python 3.9 or 3.10. feat(core): warn when importing on Python 3.10. Nov 5, 2026
@lahirumaramba
lahirumaramba changed the base branch from main to lm-drop-python-3.9 November 5, 2026 15:30
@lahirumaramba
lahirumaramba force-pushed the lm-python-version-support-warning branch 4 times, most recently from 8bb03bf to f80ea07 Compare November 5, 2026 22:12
@lahirumaramba
lahirumaramba changed the base branch from lm-drop-python-3.9 to main November 5, 2026 22:13
@lahirumaramba
feat(core): warn when importing on Python 3.10.
56e5525
Emit a FutureWarning at import time when running on Python < 3.11 using
a fixed per-release version tuple rather than a runtime calendar check.
@lahirumaramba
lahirumaramba force-pushed the lm-python-version-support-warning branch from f80ea07 to 56e5525 Compare November 5, 2026 22:28
@lahirumaramba lahirumaramba assigned yvonnep165 Nov 6, 2026
yvonnep165
yvonnep165 approved these changes Nov 6, 2026
View reviewed changes

@yvonnep165 yvonnep165 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lahirumaramba
lahirumaramba merged commit 6bafd5a into main Nov 6, 2026
23 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lahirumaramba lahirumaramba mentioned this pull request Nov 11, 2026
[chore] Release 7.8.0 #1005
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@yvonnep165 yvonnep165 yvonnep165 approved these changes
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@yvonnep165 yvonnep165

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@lahirumaramba @yvonnep165
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.