Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: depend on pydata-google-auth to fetch credentials #49

Merged
merged 8 commits into from
Aug 27, 2024
Merged

feat: depend on pydata-google-auth to fetch credentials #49

merged 8 commits into from
Aug 27, 2024

Conversation

sycai
Copy link
Contributor

@sycai sycai commented Aug 27, 2024

Fixes #47 🦕

If the credentials are not set, the user will be guided through the OAuth flow.
@sycai sycai requested review from a team as code owners August 27, 2024 00:17
@sycai sycai requested review from GaoleMeng and mattyopl August 27, 2024 00:17
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-magics API. labels Aug 27, 2024
sycai added 2 commits August 27, 2024 00:41
If the credentials are not set, the user will be guided through the OAuth flow.
@sycai sycai removed request for GaoleMeng and mattyopl August 27, 2024 00:51
@sycai sycai assigned sycai and unassigned Neenu1995 Aug 27, 2024
@sycai sycai added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 27, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 27, 2024
@sycai sycai requested a review from tswast August 27, 2024 17:19
@tswast tswast changed the title deps: depend on pydata-google-auth to fetch credentials feat: depend on pydata-google-auth to fetch credentials Aug 27, 2024
@@ -36,6 +36,7 @@
"packaging >= 20.0.0",
"pandas>=1.1.0",
"pyarrow >= 3.0.0",
"pydata-google-auth >=1.5.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please also update the minimum supported Python's corresponding constraints file to make sure this minimum version continues to be accurate.

Per

python_requires=">=3.7",
, our minimum Python version is 3.7. Therefore, we need to include this dependency in https://github.com/googleapis/python-bigquery-magics/blob/main/testing/constraints-3.7.txt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@tswast
Copy link
Collaborator

tswast commented Aug 27, 2024

FYI: This is what I'd consider a new feature, as it means we support a few more kinds of authentication beyond the ones in the google-auth package. I've updated your PR title accordingly.

@sycai sycai requested a review from tswast August 27, 2024 21:45
@sycai sycai merged commit 8db23fc into main Aug 27, 2024
24 of 25 checks passed
@sycai sycai deleted the auth branch August 27, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-magics API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use pydata-google-auth to fetch credentials if none were provided.
4 participants