feat(error-reporting): drop support for Python 3.7, 3.8, and 3.9#17200
feat(error-reporting): drop support for Python 3.7, 3.8, and 3.9#17200chalmerlowe wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the minimum supported Python version to 3.10 for the google-cloud-error-reporting package. The changes involve updating version requirements in README and CONTRIBUTING files, removing obsolete warning filters for Python 3.7-3.9 in pytest.ini, and adding google-cloud-logging to the testing constraints. The reviewer suggested including the documentation's README path in the automated replacement configuration to ensure consistency during future automated updates.
| @@ -0,0 +1,48 @@ | |||
| # Copyright 2026 Google LLC | |||
There was a problem hiding this comment.
Please remove this file and change the template here instead:
We will also need to update librarian to point to the newer template: https://github.com/googleapis/librarian/blob/d9566df62a02470ad8638d3fee96870c51a824ea/internal/librarian/python/librarian.yaml#L34
There was a problem hiding this comment.
Removed new error-reporting-integration.yaml file.
Updated synthtool README template to reference 3.10: googleapis/synthtool#2178
Updated librarian to point at new synthtool commit: googleapis/librarian#6111
| grpcio==1.44.0 | ||
| proto-plus==1.22.3 | ||
| protobuf==4.25.8 | ||
| google-cloud-logging==3.9.0 |
There was a problem hiding this comment.
This is an autogenerated file: https://github.com/googleapis/googleapis-gen/blob/master/google/devtools/clouderrorreporting/v1beta1/devtools-clouderrorreporting-v1beta1-py/testing/constraints-3.10.txt
We need to customize the post processing here:
There was a problem hiding this comment.
Updated post-processing.
ccfad3c to
6253114
Compare
Updates post processing to account for dropping support for Python 3.7, 3.8, 3.9 and the impacts that has on using 3.10 for lower bounds testing. ### Changes * Resolved Build & Environment Issues: Bumped google-cloud-logging constraints to versions providing native Python 3.10 wheels and avoiding pkg_resources failures. * Refactored EOL Checks: Standardised the warning logic using sys.version_info < (3, 10) directly. * Aligned Protobuf: Standardised protobuf==4.25.8 to align with the GAPIC templates and the rest of the library families. * Updated Global Post-Processing: Standardised constraints inject rules in `integrate-isolated-handwritten-code.yaml` to ensure constraints are automatically updated during future generation cycles.
6253114 to
6c6e8ed
Compare
… main before regeneration
Regenerates google-cloud-error-reporting package using gapic-generator v1.32.0 and automates the EOL update. - Adds automated post-processing rules to clean up pytest.ini and CONTRIBUTING.rst - Bumps and stabilizes google-cloud-logging constraints in constraints files to ensure stable environment - Standardizes and automates README formatting natively via updated synthtool templates
Note
Waiting on changes to synthtools and librarian before regenerating files in this update.
This PR updates
google-cloud-error-reportingto establish Python 3.10 as the minimum supported version.Changes
setup.py,noxfile.py,CONTRIBUTING.rst, andREADME.rstto remove references to Python 3.7, 3.8, and 3.9.Fixes internal issue: http://b/482126936 🦕