From 322faa823d9e5ace27f0af0c1b409c73059e6f0c Mon Sep 17 00:00:00 2001 From: ohmayr Date: Wed, 8 Jul 2026 01:15:19 +0000 Subject: [PATCH] feat: introduce opt-in [pqc] dependency extras --- packages/google-api-core/pyproject.toml | 1 + packages/google-auth/setup.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/google-api-core/pyproject.toml b/packages/google-api-core/pyproject.toml index 28c42be84295..b5f82953aadc 100644 --- a/packages/google-api-core/pyproject.toml +++ b/packages/google-api-core/pyproject.toml @@ -59,6 +59,7 @@ Repository = "https://github.com/googleapis/google-cloud-python" [project.optional-dependencies] async_rest = ["google-auth[aiohttp] >= 2.14.1, < 3.0.0", "aiohttp >= 3.13.4"] +pqc = ["google-auth[pqc] >= 2.14.1, < 3.0.0"] grpc = [ "grpcio >= 1.41.0, < 2.0.0", "grpcio >= 1.49.1, < 2.0.0; python_version >= '3.11'", diff --git a/packages/google-auth/setup.py b/packages/google-auth/setup.py index 1dfb9ee734ff..8b0f4d770a12 100644 --- a/packages/google-auth/setup.py +++ b/packages/google-auth/setup.py @@ -72,6 +72,8 @@ "pytest-asyncio", ] +pqc_extra_require = ["cryptography >= 44.0.0", "pyjwt >= 2.9.0", "grpcio >= 1.76.0"] + extras = { # Note: cryptography was made into a required dependency. Extra is kept for backwards compatibility "cryptography": cryptography_base_require, @@ -82,6 +84,7 @@ "pyjwt": pyjwt_extra_require, "reauth": reauth_extra_require, "requests": requests_extra_require, + "pqc": pqc_extra_require, "testing": testing_extra_require, "urllib3": urllib3_extra_require, "rsa": rsa_extra_require,