Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit e892758

Browse files
committed
use dict for new constraints
1 parent 628d730 commit e892758

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

noxfile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,15 @@ def showcase_library(
361361
# Install the library with a constraints file.
362362
session.install("-e", tmp_dir, "-r", constraints_path)
363363
else:
364-
# modify constraints file to support async_rest
364+
# modify constraints file to support async_rest min constraints
365+
async_rest_constraints = {"google-auth": "2.35.0"}
365366
constraints = [
366367
line.strip()
367368
for line in open(constraints_path)
368-
if "google-auth" not in line
369+
if all([key not in line for key in async_rest_constraints.keys()])
369370
and not line.startswith("#")
370371
and line.strip()
371-
]
372+
] + [f"{key}=={value}" for key, value in async_rest_constraints.items()]
372373
session.install("-e", f"{tmp_dir}[async_rest]", *constraints)
373374

374375
# Exclude `google-auth==2.40.0` which contains a regression

0 commit comments

Comments
 (0)