| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses an issue with mTLS by making the requests library a mandatory dependency for the google-auth package. This change ensures that the necessary components for mTLS are always available, preventing import errors. Concurrently, the testing infrastructure has been improved by reorganizing test dependencies into minimal and extended sets, streamlining the testing process and optimizing resource usage. Highlights
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here. Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Sorry, something went wrong.
There was a problem hiding this comment.
This pull request makes requests a required dependency to address import errors with mTLS. The changes correctly move requests to the core dependencies in setup.py and refactor the testing setup in both noxfile.py and setup.py to accommodate a minimal test configuration. However, I've found critical syntax errors in the testing_extra_require list within setup.py that need to be fixed to ensure the package can be installed correctly.
Sorry, something went wrong.
| testing_extra_require = [ | ||
| *testing_minimal_require, | ||
| *pyjwt_extra_require, | ||
| *pyopenssl_extra_require, | ||
| *reauth_extra_require | ||
| *urllib3_extra_require, | ||
| # Async Dependencies | ||
| *aiohttp_extra_require, | ||
| "aioresponses", | ||
| "pytest-asyncio", | ||
| # TODO(https://github.com/googleapis/google-auth-library-python/issues/1665): Remove the pinned version of pyopenssl | ||
| # once `TestDecryptPrivateKey::test_success` is updated to remove the deprecated `OpenSSL.crypto.sign` and | ||
| # `OpenSSL.crypto.verify` methods. See: https://www.pyopenssl.org/en/latest/changelog.html#id3. | ||
| "pyopenssl < 24.3.0", | ||
| # TODO(https://github.com/googleapis/google-auth-library-python/issues/1722): `test_aiohttp_requests` depend on | ||
| # aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version. | ||
| "aiohttp < 3.10.0", | ||
| "aiohttp < 3.10.0" | ||
| *pyopenssl_extra_require, | ||
| "aioresponses", | ||
| "oauth2client", | ||
| *rsa_extra_require, | ||
| ] |
There was a problem hiding this comment.
The definition of testing_extra_require contains syntax errors, including missing commas and a duplicated dependency (*pyopenssl_extra_require). These issues will cause a SyntaxError when setup.py is parsed, breaking package installation.
testing_extra_require = [
*testing_minimal_require,
*pyjwt_extra_require,
*pyopenssl_extra_require,
*reauth_extra_require,
*urllib3_extra_require,
# Async Dependencies
*aiohttp_extra_require,
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1722): `test_aiohttp_requests` depend on
# aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version.
"aiohttp < 3.10.0",
"aioresponses",
"oauth2client",
*rsa_extra_require,
]
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Potential fix for #16090, Alternative to #16095
Make requests into required dependency, to avoid import errors when dealing with mTLS. mTLS is currently only supported for the requests.Request class