@@ -188,10 +188,12 @@ def pytype(session):
188
188
def mypy (session ):
189
189
"""Run type-checking."""
190
190
session .install (".[grpc]" , "mypy" )
191
+ # Exclude types-protobuf==4.24.0.20240106
192
+ # See https://github.com/python/typeshed/issues/11254
191
193
session .install (
192
194
"types-setuptools" ,
193
195
"types-requests" ,
194
- "types-protobuf" ,
196
+ "types-protobuf!=4.24.0.20240106 " ,
195
197
"types-mock" ,
196
198
"types-dataclasses" ,
197
199
)
@@ -215,7 +217,20 @@ def docs(session):
215
217
"""Build the docs for this library."""
216
218
217
219
session .install ("-e" , ".[grpc]" )
218
- session .install ("sphinx==4.2.0" , "alabaster" , "recommonmark" )
220
+ session .install (
221
+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
222
+ # which still support sphinx 4.x.
223
+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
224
+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
225
+ "sphinxcontrib-applehelp==1.0.4" ,
226
+ "sphinxcontrib-devhelp==1.0.2" ,
227
+ "sphinxcontrib-htmlhelp==2.0.1" ,
228
+ "sphinxcontrib-qthelp==1.0.3" ,
229
+ "sphinxcontrib-serializinghtml==1.1.5" ,
230
+ "sphinx==4.5.0" ,
231
+ "alabaster" ,
232
+ "recommonmark" ,
233
+ )
219
234
220
235
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
221
236
session .run (
@@ -237,7 +252,20 @@ def docfx(session):
237
252
"""Build the docfx yaml files for this library."""
238
253
239
254
session .install ("-e" , "." )
240
- session .install ("alabaster" , "recommonmark" , "gcp-sphinx-docfx-yaml" )
255
+ session .install (
256
+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
257
+ # which still support sphinx 4.x.
258
+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
259
+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
260
+ "sphinxcontrib-applehelp==1.0.4" ,
261
+ "sphinxcontrib-devhelp==1.0.2" ,
262
+ "sphinxcontrib-htmlhelp==2.0.1" ,
263
+ "sphinxcontrib-qthelp==1.0.3" ,
264
+ "sphinxcontrib-serializinghtml==1.1.5" ,
265
+ "gcp-sphinx-docfx-yaml" ,
266
+ "alabaster" ,
267
+ "recommonmark" ,
268
+ )
241
269
242
270
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
243
271
session .run (
0 commit comments