Allow google-auth < 3 and google-api-core < 3 #17671
Merged
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.
google-authrecently published a 2.0.0 release which removed support for Python 2.7.google-authnow requires Python >=3.6. No other breaking changes were made. You can see the full list of changes here.I am opening PRs to expand google-auth version ranges for packages that meet either of the following criteria:
google-authis a dependency of many different libraries that interact with Google APIs. Increasing the time and number of packages with compatible pins ongoogle-authlowers the chance end developers who use multiple libraries will see dependency conflicts.If possible, please do not require
google-auth>=2.0.0orgoogle-api-core>=2.0.0until googleapis/google-cloud-python#10566 is resolved, as that will further reduce the likelihood of diamond dependency conflicts.Googlers, see this doc for more information.
Given the number of google-cloud-* packages this library pins directly I also bumped the pin on
google-api-coreto < 3.Constraints files: I looked at https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pinned-constraint-files but am not quite sure what that means for this change.