This is an automated email from the ASF dual-hosted git repository.
potiuk 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 ebde18e0a97 Remove sqlalchemy-spanner exclusion after it's been
yanked. (#51433)
ebde18e0a97 is described below
commit ebde18e0a971a2cdda7641c09376e70a7aafdbcf
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Jun 5 16:36:55 2025 +0200
Remove sqlalchemy-spanner exclusion after it's been yanked. (#51433)
The broken sqlalchemy-spanner 1.12.0 has been yanked:
https://github.com/googleapis/python-spanner-sqlalchemy/issues/682#issuecomment-2943731677
---
providers/google/README.rst | 2 +-
providers/google/docs/index.rst | 2 +-
providers/google/pyproject.toml | 2 +-
scripts/in_container/run_generate_constraints.py | 16 +++++++++++++---
4 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/providers/google/README.rst b/providers/google/README.rst
index 64b8e593ce9..abef199cc9c 100644
--- a/providers/google/README.rst
+++ b/providers/google/README.rst
@@ -127,7 +127,7 @@ PIP package Version
required
``python-slugify`` ``>=7.0.0``
``PyOpenSSL`` ``>=23.0.0``
``sqlalchemy-bigquery`` ``>=1.2.1``
-``sqlalchemy-spanner`` ``>=1.6.2,!=1.12.0``
+``sqlalchemy-spanner`` ``>=1.6.2``
``tenacity`` ``>=8.1.0``
``immutabledict`` ``>=4.2.0``
``types-protobuf`` ``!=5.29.1.20250402``
diff --git a/providers/google/docs/index.rst b/providers/google/docs/index.rst
index 11073735e99..1f94ba0614d 100644
--- a/providers/google/docs/index.rst
+++ b/providers/google/docs/index.rst
@@ -175,7 +175,7 @@ PIP package Version required
``python-slugify`` ``>=7.0.0``
``PyOpenSSL`` ``>=23.0.0``
``sqlalchemy-bigquery`` ``>=1.2.1``
-``sqlalchemy-spanner`` ``>=1.6.2,!=1.12.0``
+``sqlalchemy-spanner`` ``>=1.6.2``
``tenacity`` ``>=8.1.0``
``immutabledict`` ``>=4.2.0``
``types-protobuf`` ``!=5.29.1.20250402``
diff --git a/providers/google/pyproject.toml b/providers/google/pyproject.toml
index 0fba54cb398..a4033cc7e23 100644
--- a/providers/google/pyproject.toml
+++ b/providers/google/pyproject.toml
@@ -137,7 +137,7 @@ dependencies = [
"python-slugify>=7.0.0",
"PyOpenSSL>=23.0.0",
"sqlalchemy-bigquery>=1.2.1",
- "sqlalchemy-spanner>=1.6.2,!=1.12.0",
+ "sqlalchemy-spanner>=1.6.2",
"tenacity>=8.1.0",
"immutabledict>=4.2.0",
# types-protobuf 5.29.1.20250402 is a partial stub package, leading to
mypy complaining
diff --git a/scripts/in_container/run_generate_constraints.py
b/scripts/in_container/run_generate_constraints.py
index 52a3b6a07f4..edb8de1df96 100755
--- a/scripts/in_container/run_generate_constraints.py
+++ b/scripts/in_container/run_generate_constraints.py
@@ -349,10 +349,20 @@ def generate_constraints_pypi_providers(config_params:
ConfigParams) -> None:
# In case we have some problems with installing highest resolution of a
dependency of one of our
# providers in PyPI - we can exclude the buggy version here. For example
this happened with
- # sqlalchemy-spanner==1.4.0 which did not have `whl` file in PyPI and was
not installable
+ # sqlalchemy-spanner==1.12.0 which did not have `whl` file in PyPI and was
not installable
+ # and in this case we excluded it by adding ""sqlalchemy-spanner!=1.12.0"
to the list below.
+ # In case we add exclusion here we should always link to the issue in the
target dependency
+ # repository that tracks the problem with the dependency (we should create
one if it does not exist).
+ #
+ # Example exclusion (not needed any more as sqlalchemy-spanner==1.12.0has
been yanked in PyPI):
+ #
+ # additional_constraints_for_highest_resolution: list[str] =
["sqlalchemy-spanner!=1.12.0"]
+ #
# Current exclusions:
- # * sqlalchemy-spanner:
https://github.com/googleapis/python-spanner-sqlalchemy/issues/682
- additional_constraints_for_highest_resolution =
["sqlalchemy-spanner!=1.12.0"]
+ #
+ # * no exclusions
+ #
+ additional_constraints_for_highest_resolution: list[str] = []
result = run_command(
cmd=[