Skip to content

Commit 74e5816

Browse files
committed
fix rsa issue
1 parent 777d163 commit 74e5816

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/google-auth/setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1739): Add bounds for urllib3 and packaging dependencies.
4848
urllib3_extra_require = ["urllib3", "packaging"]
4949

50-
rsa_extra_require = ["rsa>=3.1.4,<5"]
50+
rsa_extra_require = [
51+
"rsa>=3.1.4,<5; python_version < '3.11'",
52+
"rsa>=4.0,<5; python_version >= '3.11'",
53+
]
5154

5255
# Unit test requirements.
5356
testing_extra_require = [

packages/google-auth/testing/constraints-extras-3.14.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ cryptography==41.0.5
66
pyjwt==2.0
77
pyopenssl==23.2.0
88
pyu2f==0.1.5
9-
rsa==3.1.4
9+
rsa==4.0
1010
aiohttp==3.9.0
1111
requests==2.25.0

0 commit comments

Comments
 (0)