@@ -42,11 +42,13 @@ def lint(session):
42
42
def mypy (session ):
43
43
"""Run type-checking."""
44
44
session .install ("." , "mypy" )
45
+ # Exclude types-protobuf==4.24.0.20240106
46
+ # See https://github.com/python/typeshed/issues/11254
45
47
session .install (
46
48
"types-setuptools" ,
47
49
"types-requests" ,
48
50
"types-mock" ,
49
- "types-protobuf" ,
51
+ "types-protobuf!=4.24.0.20240106 " ,
50
52
)
51
53
session .run ("mypy" , "-p" , "google" , "-p" , "tests" )
52
54
@@ -123,7 +125,20 @@ def docs(session):
123
125
124
126
session .install ("." , "grpcio >= 1.8.2" , "grpcio-gcp >= 0.2.2" )
125
127
session .install ("-e" , "." )
126
- session .install ("sphinx==4.0.1" , "alabaster" , "recommonmark" )
128
+ session .install (
129
+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
130
+ # which still support sphinx 4.x.
131
+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
132
+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
133
+ "sphinxcontrib-applehelp==1.0.4" ,
134
+ "sphinxcontrib-devhelp==1.0.2" ,
135
+ "sphinxcontrib-htmlhelp==2.0.1" ,
136
+ "sphinxcontrib-qthelp==1.0.3" ,
137
+ "sphinxcontrib-serializinghtml==1.1.5" ,
138
+ "sphinx==4.5.0" ,
139
+ "alabaster" ,
140
+ "recommonmark" ,
141
+ )
127
142
128
143
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
129
144
session .run (
@@ -145,7 +160,20 @@ def docfx(session):
145
160
"""Build the docfx yaml files for this library."""
146
161
147
162
session .install ("-e" , "." )
148
- session .install ("gcp-sphinx-docfx-yaml" , "alabaster" , "recommonmark" )
163
+ session .install (
164
+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
165
+ # which still support sphinx 4.x.
166
+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
167
+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
168
+ "sphinxcontrib-applehelp==1.0.4" ,
169
+ "sphinxcontrib-devhelp==1.0.2" ,
170
+ "sphinxcontrib-htmlhelp==2.0.1" ,
171
+ "sphinxcontrib-qthelp==1.0.3" ,
172
+ "sphinxcontrib-serializinghtml==1.1.5" ,
173
+ "gcp-sphinx-docfx-yaml" ,
174
+ "alabaster" ,
175
+ "recommonmark" ,
176
+ )
149
177
150
178
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
151
179
session .run (
0 commit comments