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

Commit 977ec3c

Browse files
chore: development release for v2.49.0dev0
PR created by the Librarian CLI to initialize a release. Merging this PR will auto trigger a release. Librarian Version: v0.8.0 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209 <details><summary>google-auth: 2.49.0-dev0</summary> ## [2.49.0-dev0](v2.48.0...v2.49.0-dev0) (2026-01-26) ### Bug Fixes * remove deprecated rsa dependency ([e98cf69](e98cf692)) </details>
1 parent 6a982be commit 977ec3c

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209
22
libraries:
33
- id: google-auth
4-
version: 2.48.0
4+
version: 2.49.0-dev0
55
last_generated_commit: 102d9f92ac6ed649a61efd9b208e4d1de278e9bb
66
apis: []
77
source_roots:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
[1]: https://pypi.org/project/google-auth/#history
66

7+
## [2.49.0-dev0](https://github.com/googleapis/google-auth-library-python/compare/v2.48.0...v2.49.0-dev0) (2026-01-26)
8+
9+
10+
### Bug Fixes
11+
12+
* remove deprecated rsa dependency ([e98cf69284d3620619a70b54fb0b9533caf11878](https://github.com/googleapis/google-auth-library-python/commit/e98cf69284d3620619a70b54fb0b9533caf11878))
13+
714
## [2.48.0](https://github.com/googleapis/google-auth-library-python/compare/v2.47.0...v2.48.0) (2026-01-22)
815

916

google/auth/crypt/rsa.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
from google.auth import _helpers
2626
from google.auth.crypt import _cryptography_rsa
27-
from google.auth.crypt import _python_rsa
2827
from google.auth.crypt import base
2928

3029
RSA_KEY_MODULE_PREFIX = "rsa.key"
@@ -37,6 +36,7 @@ class RSAVerifier(base.Verifier):
3736
public_key (Union["rsa.key.PublicKey", cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey]):
3837
The public key used to verify signatures.
3938
Raises:
39+
ImportError: if called with an rsa.key.PublicKey, when the rsa library is not installed
4040
ValueError: if an unrecognized public key is provided
4141
"""
4242

@@ -45,6 +45,8 @@ def __init__(self, public_key):
4545
if isinstance(public_key, RSAPublicKey):
4646
impl_lib = _cryptography_rsa
4747
elif module_str.startswith(RSA_KEY_MODULE_PREFIX):
48+
from google.auth.crypt import _python_rsa
49+
4850
impl_lib = _python_rsa
4951
else:
5052
raise ValueError(f"unrecognized public key type: {type(public_key)}")
@@ -85,6 +87,7 @@ class RSASigner(base.Signer, base.FromServiceAccountMixin):
8587
public key or certificate.
8688
8789
Raises:
90+
ImportError: if called with an rsa.key.PrivateKey, when the rsa library is not installed
8891
ValueError: if an unrecognized public key is provided
8992
"""
9093

@@ -93,6 +96,8 @@ def __init__(self, private_key, key_id=None):
9396
if isinstance(private_key, RSAPrivateKey):
9497
impl_lib = _cryptography_rsa
9598
elif module_str.startswith(RSA_KEY_MODULE_PREFIX):
99+
from google.auth.crypt import _python_rsa
100+
96101
impl_lib = _python_rsa
97102
else:
98103
raise ValueError(f"unrecognized private key type: {type(private_key)}")

google/auth/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "2.48.0"
15+
__version__ = "2.49.0-dev0"

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
DEPENDENCIES = (
2626
"pyasn1-modules>=0.2.1",
2727
cryptography_base_require,
28-
# TODO: remove rsa from dependencies in next release (replaced with cryptography)i
29-
# https://github.com/googleapis/google-auth-library-python/issues/1810
30-
"rsa>=3.1.4,<5",
3128
)
3229

3330
requests_extra_require = ["requests >= 2.20.0, < 3.0.0"]
@@ -73,6 +70,9 @@
7370
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1722): `test_aiohttp_requests` depend on
7471
# aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version.
7572
"aiohttp < 3.10.0",
73+
# 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",
7676
]
7777

7878
extras = {

testing/constraints-3.8.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Then this file should have foo==1.14.0
88
pyasn1-modules==0.2.1
99
setuptools==40.3.0
10-
rsa==3.1.4
1110
cryptography==38.0.3
1211
aiohttp==3.6.2
1312
requests==2.20.0

tests/crypt/test_rsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from cryptography.hazmat import backends
1919
from cryptography.hazmat.primitives import serialization
2020
import pytest
21-
import rsa as rsa_lib
21+
import rsa as rsa_lib # type: ignore
2222

2323
from google.auth.crypt import _cryptography_rsa
2424
from google.auth.crypt import _python_rsa

0 commit comments

Comments
 (0)