GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: narrow acceptable RSA versions to maintain Python 2 compatability by crwilcox · Pull Request #528 · googleapis/google-auth-library-python

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@crwilcox

@crwilcox crwilcox commented Jun 11, 2020

Copy link
Copy Markdown
Contributor

Version 4.0 was the last version to support Python 2 and 3.4. Version 4.1 is compatible with Python 3.5+ only.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crwilcox
Narrow acceptable RSA versions to maintain Python 2 compat
e0d9959
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 11, 2020
@crwilcox crwilcox changed the title Narrow acceptable RSA versions to maintain Python 2 compat fix: narrow acceptable RSA versions to maintain Python 2 compatability Jun 11, 2020
@crwilcox

crwilcox commented Jun 11, 2020

Copy link
Copy Markdown
Contributor Author

Also, related to https://issues.apache.org/jira/browse/BEAM-10244

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crwilcox

crwilcox commented Jun 11, 2020

Copy link
Copy Markdown
Contributor Author

Also sybrenstuvel/python-rsa#152

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

busunkim96
busunkim96 approved these changes Jun 11, 2020
View reviewed changes
mik-laj
mik-laj reviewed Jun 11, 2020
View reviewed changes
Comment thread setup.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@crwilcox @mik-laj
Update setup.py
fd314ad
Co-authored-by: Kamil Breguła <[email protected]>
@crwilcox crwilcox added the automerge Merge the pull request once unit tests and other checks pass. label Jun 11, 2020
@crwilcox
Use a more specific pin to support new versions that may support pyth…
d9ba728
…on 2.
@crwilcox crwilcox removed the automerge Merge the pull request once unit tests and other checks pass. label Jun 11, 2020
busunkim96
busunkim96 reviewed Jun 11, 2020
View reviewed changes
Comment thread setup.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

busunkim96
busunkim96 approved these changes Jun 11, 2020
View reviewed changes
@crwilcox @busunkim96
Update setup.py
a59ff40
Co-authored-by: Bu Sun Kim <[email protected]>
@busunkim96 busunkim96 added the automerge Merge the pull request once unit tests and other checks pass. label Jun 11, 2020
tvalentyn
tvalentyn reviewed Jun 11, 2020
View reviewed changes
Comment thread setup.py Outdated
# rsa 4.1, 4.1.1, 4.2 are broken on Py2: https://github.com/sybrenstuvel/python-rsa/issues/152
'rsa>=3.1.4,!=4.1,!=4.1.1,!=4.2,<5; python_version < 3',
'rsa>=3.1.4,<5; python_version >= 3'
"rsa>=3.1.4,!=4.1,!=4.1.1,!=4.2,<5; python_version < 3",

@tvalentyn tvalentyn Jun 11, 2020

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think "3" may need to be in quotes as in:
'rsa>=3.1.4,!=4.1,!=4.1.1,!=4.2,<5; python_version<"3"'
'rsa>=3.1.4,<5; python_version>="3"'

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

crwilcox reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@crwilcox crwilcox Jun 11, 2020

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Currently fixing and testing locally

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tvalentyn tvalentyn Jun 12, 2020

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

My motivation for rsa>=3.1.4,!=4.1,!=4.1.1,!=4.2 was that there maybe another Py2 release (which we had) with additional fixes (there were security backports), and the range would be able to pick it up.
I also was hoping that new releases won't be broken on Py2, however, looks like 4.4 is installable and broken on Py2, so we'd have to exclude it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@busunkim96 busunkim96 Jun 12, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Narrowed in in #532

google-auth-library-python/setup.py

Lines 25 to 26 in b74168b

'rsa<4.1; python_version < "3"',
'rsa>=3.1.4,<5; python_version >= "3"',

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@busunkim96 busunkim96 Jun 12, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Released 1.17.2 with the pin above

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crwilcox
how many commits to get the format correct?
18dd968
@crwilcox
crwilcox merged commit 9434868 into master Jun 11, 2020
@crwilcox
crwilcox deleted the crwilcox-patch-1-1 branch June 11, 2020 23:05
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jun 11, 2020
@release-please
chore: release 1.17.1 (#529)
85c2bac
🤖 I have created a release \*beep\* \*boop\* 
---
### [1.17.1](https://www.github.com/googleapis/google-auth-library-python/compare/v1.17.0...v1.17.1) (2020-06-11)


### Bug Fixes

* narrow acceptable RSA versions to maintain Python 2 compatability ([#528](https://www.github.com/googleapis/google-auth-library-python/issues/528)) ([9434868](https://www.github.com/googleapis/google-auth-library-python/commit/9434868a6789464549af1d4562f62d8a899b6809))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
@busunkim96 busunkim96 mentioned this pull request Jun 12, 2020
pin rsa to 4.0 GoogleCloudPlatform/python-docs-samples#4074
Closed
@stanley-cheung stanley-cheung mentioned this pull request Jun 12, 2020
SyntaxError: Non-ASCII character '\xc3' in file /var/local/git/grpc/py27_gevent/local/lib/python2.7/site-packages/rsa/key.py grpc/grpc#23190
Closed
@gnossen gnossen mentioned this pull request Jun 12, 2020
BasicTests Python MacOS on pull-requests failing for several hours grpc/grpc#23188
Closed
@sybrenstuvel

sybrenstuvel commented Jun 12, 2020

Copy link
Copy Markdown

I fixed it in the Python-RSA package so that package managers now know which version they can use. Python-RSA 4.3 is now the last one to support Python 2.7, version 4.4 explicitly requires Python 3.5+.

Hope this is now resolved for you, if there are still issues let me know.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tvalentyn

tvalentyn commented Jun 12, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

version 4.4 explicitly requires Python 3.5+.

Actually, 4.4 is still installable on Py2. Perhaps intended? We can continue this on sybrenstuvel/python-rsa#152.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crwilcox crwilcox mentioned this pull request Jun 12, 2020
fix(dependencies): Further restrict RSA versions #532
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jun 12, 2020
@crwilcox
fix(dependencies): Further restrict RSA versions (#532)
46677a0
Related to #528. RSA seems to have released another version without `python_requires` being enforced. This will guard against that for our package.
@busunkim96 busunkim96 mentioned this pull request Jun 12, 2020
chore: release 1.17.2 #533
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

3 more reviewers
@busunkim96 busunkim96 busunkim96 approved these changes
@tvalentyn tvalentyn tvalentyn left review comments
@mik-laj mik-laj mik-laj left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@crwilcox @sybrenstuvel @tvalentyn @busunkim96 @mik-laj @googlebot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.