Skip to content

Commit de9998f

Browse files
authored
chore: restrict rsa version to <=4.0 for Python 2.7 compatibility (#135)
* chore: restrict `rsa` version to <=4.0 for Python 2.7 compatibility * Restrict RSA dependency version for Python 2 only
1 parent cb16cfd commit de9998f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
"google-resumable-media >= 0.5.0, < 0.6dev",
3737
"protobuf >= 3.6.0",
3838
"six >=1.13.0,< 2.0.0dev",
39+
# rsa >= 4.1 is not compatible with Python 2
40+
# https://github.com/sybrenstuvel/python-rsa/issues/152
41+
'rsa <4.1; python_version < "3"',
42+
'rsa >=3.1.4, <5; python_version >= "3"',
3943
]
4044
extras = {
4145
"bqstorage": [

0 commit comments

Comments
 (0)