Skip to content

Commit 6961f1a

Browse files
committed
test extras for 3.10
1 parent 74e5816 commit 6961f1a

3 files changed

Lines changed: 27 additions & 7 deletions

File tree

packages/google-auth/noxfile.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +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-
extras_str = "testing,pyopenssl,enterprise_cert"
174173
if install_deprecated_extras:
174+
extras_str = "testing,pyopenssl,enterprise_cert,rsa"
175175
# rsa and oauth2client were both archived and support dropped,
176-
# but we still test old code paths
176+
# but we still test old code paths
177177
session.install("oauth2client")
178-
extras_str += ",rsa"
179178

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)
179+
# Use the dedicated extras constraints file if it exists
180+
extras_constraints = CURRENT_DIRECTORY / "testing" / f"constraints-extras-{session.python}.txt"
181+
if extras_constraints.exists():
182+
constraints_path = str(extras_constraints)
183+
else:
184+
constraints_path = str(
185+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
186+
)
184187
else:
188+
extras_str = "testing"
185189
constraints_path = str(
186190
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
187191
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This constraints file is used to check that lower bounds
2+
# are correct in setup.py on Python 3.14
3+
pyasn1-modules==0.2.1
4+
setuptools==40.3.0
5+
cryptography==38.0.3
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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.10
3+
pyasn1-modules==0.2.1
4+
setuptools==40.3.0
5+
cryptography==41.0.5
6+
pyjwt==2.0
7+
pyopenssl==23.2.0
8+
pyu2f==0.1.5
9+
rsa==3.1.4
10+
aiohttp==3.8.0
11+
requests==2.20.0

0 commit comments

Comments
 (0)