|
32 | 32 | ISORT_VERSION = "isort==5.11.0" |
33 | 33 | LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] |
34 | 34 |
|
35 | | -DEFAULT_PYTHON_VERSION = "3.8" |
| 35 | +DEFAULT_PYTHON_VERSION = "3.10" |
36 | 36 |
|
37 | 37 | UNIT_TEST_PYTHON_VERSIONS: List[str] = [ |
38 | 38 | "3.7", |
|
58 | 58 | UNIT_TEST_EXTRAS: List[str] = [] |
59 | 59 | UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} |
60 | 60 |
|
61 | | -SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8"] |
| 61 | +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.10"] |
62 | 62 | SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ |
63 | 63 | "mock", |
64 | 64 | "pytest", |
|
78 | 78 | "unit", |
79 | 79 | "system", |
80 | 80 | "mypy", |
81 | | - "mypy", |
82 | | - "mypy", |
83 | | - "mypy", |
84 | | - "mypy", |
85 | 81 | "cover", |
86 | 82 | "lint", |
87 | 83 | "lint_setup_py", |
88 | 84 | "blacken", |
89 | 85 | "docs", |
90 | 86 | "doctests", |
91 | | - "doctests", |
92 | | - "doctests", |
93 | | - "doctests", |
94 | | - "doctests", |
95 | 87 | "docfx", |
96 | 88 | "format", |
97 | 89 | ] |
@@ -162,70 +154,6 @@ def mypy(session): |
162 | 154 | session.run("mypy", "-p", "google.cloud.datastore") |
163 | 155 |
|
164 | 156 |
|
165 | | -@nox.session(python=DEFAULT_PYTHON_VERSION) |
166 | | -def mypy(session): |
167 | | - """Verify type hints are mypy compatible.""" |
168 | | - session.install("-e", ".") |
169 | | - # Exclude types-protobuf==4.24.0.20240106 |
170 | | - # See https://github.com/python/typeshed/issues/11254 |
171 | | - session.install( |
172 | | - "mypy", |
173 | | - "types-setuptools", |
174 | | - "types-mock", |
175 | | - "types-protobuf!=4.24.0.20240106", |
176 | | - "types-requests", |
177 | | - ) |
178 | | - session.run("mypy", "-p", "google.cloud.datastore") |
179 | | - |
180 | | - |
181 | | -@nox.session(python=DEFAULT_PYTHON_VERSION) |
182 | | -def mypy(session): |
183 | | - """Verify type hints are mypy compatible.""" |
184 | | - session.install("-e", ".") |
185 | | - # Exclude types-protobuf==4.24.0.20240106 |
186 | | - # See https://github.com/python/typeshed/issues/11254 |
187 | | - session.install( |
188 | | - "mypy", |
189 | | - "types-setuptools", |
190 | | - "types-mock", |
191 | | - "types-protobuf!=4.24.0.20240106", |
192 | | - "types-requests", |
193 | | - ) |
194 | | - session.run("mypy", "-p", "google.cloud.datastore") |
195 | | - |
196 | | - |
197 | | -@nox.session(python=DEFAULT_PYTHON_VERSION) |
198 | | -def mypy(session): |
199 | | - """Verify type hints are mypy compatible.""" |
200 | | - session.install("-e", ".") |
201 | | - # Exclude types-protobuf==4.24.0.20240106 |
202 | | - # See https://github.com/python/typeshed/issues/11254 |
203 | | - session.install( |
204 | | - "mypy", |
205 | | - "types-setuptools", |
206 | | - "types-mock", |
207 | | - "types-protobuf!=4.24.0.20240106", |
208 | | - "types-requests", |
209 | | - ) |
210 | | - session.run("mypy", "-p", "google.cloud.datastore") |
211 | | - |
212 | | - |
213 | | -@nox.session(python=DEFAULT_PYTHON_VERSION) |
214 | | -def mypy(session): |
215 | | - """Verify type hints are mypy compatible.""" |
216 | | - session.install("-e", ".") |
217 | | - # Exclude types-protobuf==4.24.0.20240106 |
218 | | - # See https://github.com/python/typeshed/issues/11254 |
219 | | - session.install( |
220 | | - "mypy", |
221 | | - "types-setuptools", |
222 | | - "types-mock", |
223 | | - "types-protobuf!=4.24.0.20240106", |
224 | | - "types-requests", |
225 | | - ) |
226 | | - session.run("mypy", "-p", "google.cloud.datastore") |
227 | | - |
228 | | - |
229 | 157 | @nox.session(python=DEFAULT_PYTHON_VERSION) |
230 | 158 | def lint_setup_py(session): |
231 | 159 | """Verify that setup.py is valid (including RST check).""" |
@@ -357,22 +285,6 @@ def system(session, disable_grpc): |
357 | 285 |
|
358 | 286 | install_systemtest_dependencies(session, "-c", constraints_path) |
359 | 287 |
|
360 | | - env = {} |
361 | | - if disable_grpc: |
362 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
363 | | - |
364 | | - env = {} |
365 | | - if disable_grpc: |
366 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
367 | | - |
368 | | - env = {} |
369 | | - if disable_grpc: |
370 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
371 | | - |
372 | | - env = {} |
373 | | - if disable_grpc: |
374 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
375 | | - |
376 | 288 | env = {} |
377 | 289 | if disable_grpc: |
378 | 290 | env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
@@ -453,50 +365,11 @@ def doctests(session): |
453 | 365 | session.install("mock", "pytest", "sphinx", "google-cloud-testutils") |
454 | 366 | session.install("-e", ".") |
455 | 367 |
|
456 | | - env = {} |
457 | | - if disable_grpc: |
458 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
459 | | - |
460 | | - env = {} |
461 | | - if disable_grpc: |
462 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
463 | | - |
464 | | - env = {} |
465 | | - if disable_grpc: |
466 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
467 | | - |
468 | | - env = {} |
469 | | - if disable_grpc: |
470 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
471 | | - |
472 | | - # Run py.test against the system tests. |
473 | | - session.run("py.test", "tests/doctests.py") |
474 | | - |
475 | | - |
476 | | -@nox.session(python="3.13") |
477 | | -def doctests(session): |
478 | | - # Install all test dependencies, then install this package into the |
479 | | - # virtualenv's dist-packages. |
480 | | - session.install("mock", "pytest", "sphinx", "google-cloud-testutils") |
481 | | - session.install("-e", ".") |
482 | | - |
483 | | - env = {} |
484 | | - if disable_grpc: |
485 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
486 | | - |
487 | | - env = {} |
488 | | - if disable_grpc: |
489 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
490 | | - |
491 | | - env = {} |
492 | | - if disable_grpc: |
493 | | - env["GOOGLE_CLOUD_DISABLE_GRPC"] = "True" |
494 | | - |
495 | 368 | # Run py.test against the system tests. |
496 | 369 | session.run("py.test", "tests/doctests.py") |
497 | 370 |
|
498 | 371 |
|
499 | | -@nox.session(python="3.13") |
| 372 | +@nox.session(python="3.10") |
500 | 373 | def docfx(session): |
501 | 374 | """Build the docfx yaml files for this library.""" |
502 | 375 |
|
|
0 commit comments