3636DEFAULT_PYTHON_VERSION = "3.10"
3737# TODO(https://github.com/googleapis/google-auth-library-python/issues/1787):
3838# Remove or restore testing for Python 3.7/3.8
39- UNIT_TEST_PYTHON_VERSIONS = ["3.9" , "3.10" , "3.11" , "3.12" , "3.13" ]
39+ UNIT_TEST_PYTHON_VERSIONS = ["3.9" , "3.10" , "3.11" , "3.12" , "3.13" , "3.14" ]
4040
4141# Error if a python version is missing
4242nox .options .error_on_missing_interpreters = True
5353 "unit-3.11" ,
5454 "unit-3.12" ,
5555 "unit-3.13" ,
56+ "unit-3.14" ,
5657 # cover must be last to avoid error `No data to report`
5758 "cover" ,
5859 "docs" ,
@@ -105,6 +106,7 @@ def mypy(session):
105106 "types-requests" ,
106107 "types-setuptools" ,
107108 "types-mock" ,
109+ "pytest<8.0.0" ,
108110 )
109111 session .run ("mypy" , "-p" , "google" , "-p" , "tests" , "-p" , "tests_async" )
110112
@@ -129,6 +131,7 @@ def unit(session):
129131
130132@nox .session (python = DEFAULT_PYTHON_VERSION )
131133def cover (session ):
134+ session .env ["PIP_EXTRA_INDEX_URL" ] = "https://pypi.org/simple"
132135 session .install ("-e" , ".[testing]" )
133136 session .run (
134137 "pytest" ,
@@ -143,7 +146,7 @@ def cover(session):
143146 session .run ("coverage" , "report" , "--show-missing" , "--fail-under=100" )
144147
145148
146- @nox .session (python = "3.10 " )
149+ @nox .session (python = "3.9 " )
147150def docs (session ):
148151 """Build the docs for this library."""
149152
@@ -165,52 +168,6 @@ def docs(session):
165168 )
166169
167170
168- @nox .session (python = "3.10" )
169- def docfx (session ):
170- """Build the docfx yaml files for this library."""
171-
172- session .install ("-e" , "." )
173- session .install (
174- # We need to pin to specific versions of the `sphinxcontrib-*` packages
175- # which still support sphinx 4.x.
176- # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
177- # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
178- "sphinxcontrib-applehelp==1.0.4" ,
179- "sphinxcontrib-devhelp==1.0.2" ,
180- "sphinxcontrib-htmlhelp==2.0.1" ,
181- "sphinxcontrib-qthelp==1.0.3" ,
182- "sphinxcontrib-serializinghtml==1.1.5" ,
183- "gcp-sphinx-docfx-yaml" ,
184- "alabaster" ,
185- "recommonmark" ,
186- )
187-
188- shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
189- session .run (
190- "sphinx-build" ,
191- "-T" , # show full traceback on exception
192- "-N" , # no colors
193- "-D" ,
194- (
195- "extensions=sphinx.ext.autodoc,"
196- "sphinx.ext.autosummary,"
197- "docfx_yaml.extension,"
198- "sphinx.ext.intersphinx,"
199- "sphinx.ext.coverage,"
200- "sphinx.ext.napoleon,"
201- "sphinx.ext.todo,"
202- "sphinx.ext.viewcode,"
203- "recommonmark"
204- ),
205- "-b" ,
206- "html" ,
207- "-d" ,
208- os .path .join ("docs" , "_build" , "doctrees" , "" ),
209- os .path .join ("docs" , "" ),
210- os .path .join ("docs" , "_build" , "html" , "" ),
211- )
212-
213-
214171@nox .session (python = "pypy" )
215172def pypy (session ):
216173 session .install ("-e" , ".[testing]" )
0 commit comments