-
Notifications
You must be signed in to change notification settings - Fork 346
feat: setup.py: remove rsa requirement #942
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
Conversation
2c6ceef to
d406a4f
Compare
91f3b2c to
39fe8ea
Compare
|
I think simply removing the rsa dependency will break the library since it is still in use: https://github.com/googleapis/google-auth-library-python/blob/main/google/auth/crypt/_python_rsa.py#L28 |
|
Please see #646 , the code does not use python-rsa if python-cryptography is installed. |
|
This is still relevant because As I look at rebasing this today, I can remove the entry from |
39fe8ea to
4894398
Compare
|
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
4894398 to
ed408cf
Compare
|
I researched kokoro to understand how to remove
The complicating factor is that I think the solution here is to release a new |
ed408cf to
f31b1f5
Compare
|
Any chance we can get some eyes on this one? There's a dependabot alert we can't get rid of, that would be fixed with this PR. |
|
This might need to be revived due to sybrenstuvel/python-rsa#245 |
|
I think the build failure can be resolved by adding the missing google-auth-library-python/docs/conf.py Line 375 in 56b4d3b
Ref: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_mock_imports That way, when sphinx autodoc traverses:
That final import to the missing |
a354399 to
8c8c5af
Compare
The rsa library is slower and not as well-maintained as the cryptography library. Now that we require the cryptography library, drop the hard requirement on the rsa library.
8c8c5af to
f27b512
Compare
|
FYI https://pypi.org/project/rsa/ has been formally archived, so I think we should land this change soon. This PR will stop the Once we release that, we can have a separate PR to drop |
|
I would consider the use of
|
|
@parthea would you please merge this? It simply drops |
|
Thanks for putting this together and bringing it to our attention. I'll have to look into this a bit closer to make sure I understand the consequences of removing the dependency. Presumably, we'll need to add something else to provide a default implementation |
|
There is a polyfill here that already prefers the google-auth-library-python/google/auth/crypt/rsa.py Lines 18 to 30 in 56b4d3b
|
|
Yeah, I think we're going to have to make cryptography a default dependency instead of an optional. Closing this in favor of #1771, which is making that change. Thanks! |
The
rsalibrary is slower and not as well-maintained as thecryptographylibrary. Now that we require thecryptographylibrary, drop the hard requirement on thersalibrary.Fixes: #941