File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 3131 "setup.py" ,
3232]
3333
34+ DEFAULT_PYTHON_VERSION = "3.10"
35+
3436test_dependencies = [
3537 "django>=2.0.0" ,
3638 "google-auth" ,
4547 "coverage" ,
4648]
4749
50+ nox .options .sessions = [
51+ # TODO(https://github.com/googleapis/google-api-python-client/issues/2622):
52+ # Remove or restore testing for Python 3.7/3.8
53+ "unit-3.9" ,
54+ "unit-3.10" ,
55+ "unit-3.11" ,
56+ "unit-3.12" ,
57+ "unit-3.13" ,
58+ "lint" ,
59+ "format" ,
60+ "scripts" ,
61+ ]
62+
63+ # Error if a python version is missing
64+ nox .options .error_on_missing_interpreters = True
65+
4866
49- @nox .session (python = [ "3.7" ] )
67+ @nox .session (python = DEFAULT_PYTHON_VERSION )
5068def lint (session ):
5169 session .install ("flake8" )
5270 session .run (
@@ -60,7 +78,7 @@ def lint(session):
6078 )
6179
6280
63- @nox .session (python = "3.8" )
81+ @nox .session (python = DEFAULT_PYTHON_VERSION )
6482def format (session ):
6583 """
6684 Run isort to sort imports. Then run black
@@ -128,7 +146,7 @@ def unit(session, oauth2client):
128146 )
129147
130148
131- @nox .session (python = [ "3.9" ] )
149+ @nox .session (python = DEFAULT_PYTHON_VERSION )
132150def scripts (session ):
133151 session .install (* test_dependencies )
134152 session .install ("-e" , "." )
You can’t perform that action at this time.
0 commit comments