@@ -92,17 +92,19 @@ def mypy(session):
9292 session .install ("-e" , ".[all]" )
9393 session .install (MYPY_VERSION )
9494
95- # Just install the type info directly, since "mypy --install-types" might
96- # require an additional pass.
97- session .install ("types-protobuf" , "types-setuptools" )
98-
9995 # Version 2.1.1 of google-api-core version is the first type-checked release.
10096 # Version 2.2.0 of google-cloud-core version is the first type-checked release.
10197 session .install (
10298 "google-api-core[grpc]>=2.1.1" ,
10399 "google-cloud-core>=2.2.0" ,
104100 )
105101
102+ # Just install the type info directly, since "mypy --install-types" might
103+ # require an additional pass.
104+ # Exclude types-protobuf==4.24.0.20240106
105+ # See https://github.com/python/typeshed/issues/11254
106+ session .install ("types-protobuf!=4.24.0.20240106" , "types-setuptools" )
107+
106108 # TODO: Only check the hand-written layer, the generated code does not pass
107109 # mypy checks yet.
108110 # https://github.com/googleapis/gapic-generator-python/issues/1092
@@ -334,7 +336,16 @@ def docs(session):
334336
335337 session .install ("-e" , "." )
336338 session .install (
337- "sphinx==4.0.1" ,
339+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
340+ # which still support sphinx 4.x.
341+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
342+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
343+ "sphinxcontrib-applehelp==1.0.4" ,
344+ "sphinxcontrib-devhelp==1.0.2" ,
345+ "sphinxcontrib-htmlhelp==2.0.1" ,
346+ "sphinxcontrib-qthelp==1.0.3" ,
347+ "sphinxcontrib-serializinghtml==1.1.5" ,
348+ "sphinx==4.5.0" ,
338349 "alabaster" ,
339350 "recommonmark" ,
340351 )
@@ -360,6 +371,15 @@ def docfx(session):
360371
361372 session .install ("-e" , "." )
362373 session .install (
374+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
375+ # which still support sphinx 4.x.
376+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
377+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
378+ "sphinxcontrib-applehelp==1.0.4" ,
379+ "sphinxcontrib-devhelp==1.0.2" ,
380+ "sphinxcontrib-htmlhelp==2.0.1" ,
381+ "sphinxcontrib-qthelp==1.0.3" ,
382+ "sphinxcontrib-serializinghtml==1.1.5" ,
363383 "gcp-sphinx-docfx-yaml" ,
364384 "alabaster" ,
365385 "recommonmark" ,
0 commit comments