Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion providers/google/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
2 changes: 1 addition & 1 deletion providers/google/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
2 changes: 1 addition & 1 deletion providers/google/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions scripts/in_container/run_generate_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down
Loading