This is an automated email from the ASF dual-hosted git repository.
shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 924b52eb08b Remove types-protobuf from google provider runtime
dependencies (#73775)
924b52eb08b is described below
commit 924b52eb08b7662e071c79ea1d823c0e08d60490
Author: Gore Williams <[email protected]>
AuthorDate: Sat Oct 31 16:31:11 2026 +0200
Remove types-protobuf from google provider runtime dependencies (#73775)
The Google provider installs a stub-only package for users because an
earlier mypy workaround was placed in its runtime requirements. The development
mypy extra already supplies the stubs, so retain the broken-release exclusion
there.
---
devel-common/pyproject.toml | 3 ++-
providers/google/README.rst | 1 -
providers/google/docs/index.rst | 1 -
providers/google/pyproject.toml | 2 --
uv.lock | 4 +---
5 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/devel-common/pyproject.toml b/devel-common/pyproject.toml
index 5778256aabf..4f37175edff 100644
--- a/devel-common/pyproject.toml
+++ b/devel-common/pyproject.toml
@@ -120,7 +120,8 @@ dependencies = [
"types-croniter>=2.0.0.20240423",
"types-docutils>=0.21.0.20240704",
"types-paramiko>=4.0.0.20260402",
- "types-protobuf>=5.26.0.20240422",
+ # types-protobuf 5.29.1.20250402 is a partial stub package that makes mypy
complain
+ "types-protobuf>=5.26.0.20240422,!=5.29.1.20250402",
"types-python-dateutil>=2.9.0.20240316",
"types-python-slugify>=8.0.2.20240310",
"types-pytz>=2024.1.0.20240417",
diff --git a/providers/google/README.rst b/providers/google/README.rst
index dcf75dbbbe9..752e752f9f3 100644
--- a/providers/google/README.rst
+++ b/providers/google/README.rst
@@ -137,7 +137,6 @@ PIP package Version required
``sqlalchemy-spanner`` ``>=1.6.2``
``tenacity`` ``>=8.3.0``
``immutabledict`` ``>=4.2.0``
-``types-protobuf`` ``>=5.27.0,!=5.29.1.20250402``
==========================================
==================================================================
Optional cross provider package dependencies
diff --git a/providers/google/docs/index.rst b/providers/google/docs/index.rst
index ca4302c5434..2d1d14832f3 100644
--- a/providers/google/docs/index.rst
+++ b/providers/google/docs/index.rst
@@ -190,7 +190,6 @@ PIP package Version required
``sqlalchemy-spanner`` ``>=1.6.2``
``tenacity`` ``>=8.3.0``
``immutabledict`` ``>=4.2.0``
-``types-protobuf`` ``>=5.27.0,!=5.29.1.20250402``
==========================================
==================================================================
Optional cross provider package dependencies
diff --git a/providers/google/pyproject.toml b/providers/google/pyproject.toml
index eaa63bfc95d..4deaf84184b 100644
--- a/providers/google/pyproject.toml
+++ b/providers/google/pyproject.toml
@@ -151,8 +151,6 @@ dependencies = [
"sqlalchemy-spanner>=1.6.2",
"tenacity>=8.3.0",
"immutabledict>=4.2.0",
- # types-protobuf 5.29.1.20250402 is a partial stub package, leading to
mypy complaining
- "types-protobuf!=5.29.1.20250402,>=5.27.0",
]
# The optional dependencies should be modified in place in the generated file
diff --git a/uv.lock b/uv.lock
index 37884bf29cf..17f1c8e23d3 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2773,7 +2773,7 @@ requires-dist = [
{ name = "types-docutils", marker = "extra == 'mypy'", specifier =
">=0.21.0.20240704" },
{ name = "types-markdown", marker = "extra == 'mypy'", specifier =
">=3.6.0.20240316" },
{ name = "types-paramiko", marker = "extra == 'mypy'", specifier =
">=4.0.0.20260402" },
- { name = "types-protobuf", marker = "extra == 'mypy'", specifier =
">=5.26.0.20240422" },
+ { name = "types-protobuf", marker = "extra == 'mypy'", specifier =
">=5.26.0.20240422,!=5.29.1.20250402" },
{ name = "types-pymysql", marker = "extra == 'mypy'", specifier =
">=1.1.0.20240425" },
{ name = "types-python-dateutil", marker = "extra == 'mypy'", specifier =
">=2.9.0.20240316" },
{ name = "types-python-slugify", marker = "extra == 'mypy'", specifier =
">=8.0.2.20240310" },
@@ -5916,7 +5916,6 @@ dependencies = [
{ name = "sqlalchemy-bigquery" },
{ name = "sqlalchemy-spanner" },
{ name = "tenacity" },
- { name = "types-protobuf" },
]
[package.optional-dependencies]
@@ -6126,7 +6125,6 @@ requires-dist = [
{ name = "sqlalchemy-bigquery", specifier = ">=1.2.1" },
{ name = "sqlalchemy-spanner", specifier = ">=1.6.2" },
{ name = "tenacity", specifier = ">=8.3.0" },
- { name = "types-protobuf", specifier = ">=5.27.0,!=5.29.1.20250402" },
]
provides-extras = ["apache-beam", "cncf-kubernetes", "fab", "leveldb",
"oracle", "facebook", "amazon", "apache-cassandra", "microsoft-azure",
"microsoft-mssql", "mongo", "mysql", "openlineage", "postgres", "presto",
"salesforce", "sftp", "ssh", "trino", "http", "standard", "common-ai",
"common-messaging"]