Skip to content

Commit f83bb4a

Browse files
committed
address feedback
1 parent 87181fc commit f83bb4a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/google-auth/noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,19 +177,19 @@ def unit(session, install_extras):
177177
CURRENT_DIRECTORY / "testing" / f"constraints-extras-{session.python}.txt"
178178
)
179179

180+
install_args = []
180181
if install_extras:
181182
# rsa and oauth2client were both archived and support dropped,
182183
# but we still test old code paths
183184
session.install("oauth2client")
184-
extra_str = ".[testing,enterprise_cert,rsa]"
185+
install_args.extend(["-e", ".[testing,enterprise_cert,rsa]"])
186+
if extras_constraints_path.exists():
187+
install_args.extend(["-c", str(extras_constraints_path)])
185188
else:
186-
extra_str = ".[testing]"
189+
install_args.extend(["-e", ".[testing]"])
187190

188-
install_args = ["-e", extra_str]
189191
if constraints_path.exists():
190192
install_args.extend(["-c", str(constraints_path)])
191-
if install_extras and extras_constraints_path.exists():
192-
install_args.extend(["-c", str(extras_constraints_path)])
193193

194194
session.install(*install_args)
195195
session.run(

0 commit comments

Comments
 (0)