Skip to content

Commit 214a44b

Browse files
.
2 parents c4a7a56 + 7f20c23 commit 214a44b

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

scripts/populate_tox/package_dependencies.jsonl

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/populate_tox/populate_tox.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,13 @@ def fetch_package_dependencies(
202202
python_version: ThreadedVersion,
203203
) -> dict:
204204
"""Fetch package dependencies metadata from cache or, failing that, PyPI."""
205+
target = TEST_SUITE_CONFIG[integration]["package"]
205206
constraints = _get_dependency_probe_constraints(
206207
integration, version, python_version
207208
)
208-
constraints_hash = hashlib.md5("\n".join(constraints).encode("utf-8")).hexdigest()
209+
constraints_hash = hashlib.md5(
210+
"\n".join([target, *constraints]).encode("utf-8")
211+
).hexdigest()
209212
package_dependencies = _fetch_package_dependencies_from_cache(
210213
package, version, python_version, constraints_hash
211214
)
@@ -226,7 +229,7 @@ def fetch_package_dependencies(
226229
"-m",
227230
"pip",
228231
"install",
229-
f"{package}=={version}",
232+
f"{target}=={version}",
230233
"--only-binary",
231234
"grpcio-tools", # Prevent source builds that hang CI. grpcio-tools is a build-time dependency pinned by apache-beam.
232235
"--dry-run",

0 commit comments

Comments
 (0)