Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

tests: filter deprecation warnings related to unsupported Python runtimes - #371

Merged
chalmerlowe merged 7 commits into
mainfrom
fix-python-3.9-deps-17628321005402500590
Jan 5, 2026
Merged

tests: filter deprecation warnings related to unsupported Python runtimes#371
chalmerlowe merged 7 commits into
mainfrom
fix-python-3.9-deps-17628321005402500590

Conversation

@google-labs-jules

@google-labs-julesgoogle-labs-julesBot commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

This change fixes the test failures on Python 3.9 where google-api-core fails due to missing importlib.metadata.packages_distributions. It also suppresses the deprecation warning for Python 3.9 to prevent it from being treated as an error during testing under pytest.

Fixes Issue #360


PR created automatically by Jules for task 17628321005402500590 started by @chalmerlowe

- Added `importlib-metadata >= 3.6.0` dependency for Python < 3.10 to provide `packages_distributions` needed by `google-api-core`.
- Updated `pytest.ini` to ignore `FutureWarning` and `DeprecationWarning` regarding unsupported Python 3.9 version.
@google-labs-jules

Copy link
Copy Markdown
ContributorAuthor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@product-auto-labelproduct-auto-labelBot added size: xs Pull request size is extra small. api: dns Issues related to the googleapis/python-dns API. labels Jan 5, 2026
@chalmerlowechalmerlowe changed the title Fix Python 3.9 support: Add importlib-metadata and ignore deprecation warningfix: Python 3.9 support: Add importlib-metadata and ignore deprecation warningJan 5, 2026
@chalmerlowechalmerlowe changed the title fix: Python 3.9 support: Add importlib-metadata and ignore deprecation warningfix: Python 3.9 support - add importlib-metadata and ignore deprecation warningJan 5, 2026
Comment threadpytest.ini Outdated
@chalmerlowe
chalmerlowe marked this pull request as ready for review January 5, 2026 14:33
@chalmerlowe
chalmerlowe requested a review from a teamJanuary 5, 2026 14:33
- Added `importlib-metadata >= 3.6.0` dependency for Python < 3.10 to provide `packages_distributions` needed by `google-api-core`.
- Updated `pytest.ini` to ignore `FutureWarning` and `DeprecationWarning` regarding unsupported Python 3.9 version.
Comment threadsetup.py Outdated
Comment threadsetup.py Outdated
@partheaparthea changed the title fix: Python 3.9 support - add importlib-metadata and ignore deprecation warningtests: filter deprecation warnings related to unsupported Python runtimesJan 5, 2026
Comment threadsetup.py Outdated
Comment threadsetup.py Outdated
chalmerloweand others added 3 commits January 5, 2026 10:53
- Updated `pytest.ini` to ignore `FutureWarning` and `DeprecationWarning` regarding unsupported Python 3.9 version.
- Commented out `importlib-metadata` dependency in `setup.py` as requested by PR review (NOTE: This will likely break Python 3.9 tests).
- Updated `pytest.ini` to ignore `FutureWarning` and `DeprecationWarning` regarding unsupported Python 3.9 version.
- Reverted the addition of `importlib-metadata` dependency in `setup.py` as requested by PR review (empty suggestion interpreted as removal).

@chalmerlowechalmerlowe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@chalmerlowe
chalmerlowe merged commit 890caf8 into mainJan 5, 2026
18 of 20 checks passed
@chalmerlowe
chalmerlowe deleted the fix-python-3.9-deps-17628321005402500590 branch January 5, 2026 16:01
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: dnsIssues related to the googleapis/python-dns API.size: xsPull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@parthea@chalmerlowe@daniel-sanche