diff --git a/providers/google/README.rst b/providers/google/README.rst index 64b8e593ce9b3..abef199cc9c86 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 11073735e9919..1f94ba0614d77 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 0fba54cb3980a..a4033cc7e23ee 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 52a3b6a07f4b2..edb8de1df96ad 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=[