Skip to content

Commit 960d149

Browse files
crwilcoxmik-lajbusunkim96
authored
fix: narrow acceptable RSA versions to maintain Python 2 compatability (#528)
* Narrow acceptable RSA versions to maintain Python 2 compat * Update setup.py Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com> * Use a more specific pin to support new versions that may support python 2. * Update setup.py Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> * how many commits to get the format correct? Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com> Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
1 parent ac9fe7e commit 960d149

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/google-auth/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
DEPENDENCIES = (
2222
"cachetools>=2.0.0,<5.0",
2323
"pyasn1-modules>=0.2.1",
24-
"rsa>=3.1.4,<5.0",
24+
# rsa 4.1, 4.1.1, 4.2 are broken on Py2: https://github.com/sybrenstuvel/python-rsa/issues/152
25+
'rsa>=3.1.4,!=4.1,!=4.1.1,!=4.2,<5; python_version < "3"',
26+
'rsa>=3.1.4,<5; python_version >= "3"',
2527
"setuptools>=40.3.0",
2628
"six>=1.9.0",
2729
)

0 commit comments

Comments
 (0)