Skip to content

Commit f0b0a4f

Browse files
committed
test
1 parent 5f71643 commit f0b0a4f

3 files changed

Lines changed: 23 additions & 12 deletions

File tree

packages/google-auth/noxfile.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,22 @@ def unit(session, install_deprecated_extras):
170170
f"Extended tests only run on boundary Python versions ({min_py}, {max_py}) to reduce CI load."
171171
)
172172

173-
constraints_path = str(
174-
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
175-
)
176-
extras_str = "testing"
173+
extras_str = "testing,pyopenssl,enterprise_cert"
177174
if install_deprecated_extras:
178175
# rsa and oauth2client were both archived and support dropped,
179176
# but we still test old code paths
180177
session.install("oauth2client")
181178
extras_str += ",rsa"
179+
180+
# Use the dedicated extras constraints file if it exists
181+
extras_constraints = CURRENT_DIRECTORY / "testing" / f"constraints-extras-{session.python}.txt"
182+
if extras_constraints.exists():
183+
constraints_path = str(extras_constraints)
184+
else:
185+
constraints_path = str(
186+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
187+
)
188+
182189
session.install("-e", f".[{extras_str}]", "-c", constraints_path)
183190
session.run(
184191
"pytest",
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
# This constraints file is used to check that lower bounds
2-
# are correct in setup.py for Python 3.14
3-
pyasn1-modules==0.2.1
4-
setuptools==40.3.0
5-
cryptography==38.0.3
6-
pyjwt==2.0
7-
pyopenssl==23.2.0
8-
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This constraints file is used to check that lower bounds
2+
# are correct in setup.py for all dependencies and optional extras on Python 3.14
3+
pyasn1-modules==0.2.1
4+
setuptools==40.3.0
5+
cryptography==38.0.3
6+
pyjwt==2.0
7+
pyopenssl==20.0.0
8+
pyu2f==0.1.5
9+
rsa==3.1.4
10+
aiohttp==3.8.0
11+
requests==2.20.0
12+
urllib3==1.21.1

0 commit comments

Comments
 (0)