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

Commit 865e604

Browse files
committed
add extra to declare which rsa versions work with library
1 parent c9f50f2 commit 865e604

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1739): Add bounds for urllib3 and packaging dependencies.
4444
urllib3_extra_require = ["urllib3", "packaging"]
4545

46+
rsa_extra_require = ["rsa>=3.1.4,<5"]
47+
4648
# Unit test requirements.
4749
testing_extra_require = [
4850
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1735): Remove `grpcio` from testing requirements once an extra is added for `grpcio` dependency.
@@ -71,8 +73,7 @@
7173
# aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version.
7274
"aiohttp < 3.10.0",
7375
# rsa library was removed as a dependency, but we still have some code paths that support it
74-
# TODO: remove dependency when google.auth.crypt._python_rsa is removed
75-
"rsa>=3.1.4,<5",
76+
rsa_extra_require,
7677
]
7778

7879
extras = {
@@ -86,6 +87,7 @@
8687
"requests": requests_extra_require,
8788
"testing": testing_extra_require,
8889
"urllib3": urllib3_extra_require,
90+
"rsa": rsa_extra_require,
8991
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1735): Add an extra for `grpcio` dependency.
9092
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1736): Add an extra for `oauth2client` dependency.
9193
}

0 commit comments

Comments
 (0)