gapic-generator 1.30.1__py3-none-any.whl → 1.30.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gapic/templates/noxfile.py.j2 +39 -38
- {gapic_generator-1.30.1.dist-info → gapic_generator-1.30.2.dist-info}/METADATA +1 -1
- {gapic_generator-1.30.1.dist-info → gapic_generator-1.30.2.dist-info}/RECORD +14 -14
- tests/integration/goldens/asset/noxfile.py +39 -37
- tests/integration/goldens/credentials/noxfile.py +39 -37
- tests/integration/goldens/eventarc/noxfile.py +39 -37
- tests/integration/goldens/logging/noxfile.py +39 -37
- tests/integration/goldens/logging_internal/noxfile.py +39 -37
- tests/integration/goldens/redis/noxfile.py +39 -37
- tests/integration/goldens/redis_selective/noxfile.py +39 -37
- {gapic_generator-1.30.1.dist-info → gapic_generator-1.30.2.dist-info}/WHEEL +0 -0
- {gapic_generator-1.30.1.dist-info → gapic_generator-1.30.2.dist-info}/entry_points.txt +0 -0
- {gapic_generator-1.30.1.dist-info → gapic_generator-1.30.2.dist-info}/licenses/LICENSE +0 -0
- {gapic_generator-1.30.1.dist-info → gapic_generator-1.30.2.dist-info}/top_level.txt +0 -0
gapic/templates/noxfile.py.j2
CHANGED
|
@@ -16,21 +16,14 @@ BLACK_VERSION = "black[jupyter]==23.7.0"
|
|
|
16
16
|
ISORT_VERSION = "isort==5.11.0"
|
|
17
17
|
|
|
18
18
|
{% if api.naming.module_namespace %}
|
|
19
|
-
FORMAT_PATHS = ["docs", "{{ api.naming.module_namespace[0] }}", "tests", "setup.py"]
|
|
20
19
|
LINT_PATHS = ["docs", "{{ api.naming.module_namespace[0] }}", "tests", "noxfile.py", "setup.py"]
|
|
21
20
|
{% else %}
|
|
22
|
-
FORMAT_PATHS = ["docs", "{{ api.naming.versioned_module_name }}", "tests", "setup.py"]
|
|
23
21
|
LINT_PATHS = ["docs", "{{ api.naming.versioned_module_name }}", "tests", "noxfile.py", "setup.py"]
|
|
24
22
|
{% endif %}
|
|
25
23
|
|
|
26
|
-
# We're most interested in ensuring that code is formatted properly
|
|
27
|
-
# and less concerned about the line length.
|
|
28
|
-
LINT_LINE_LENGTH = 150
|
|
29
|
-
|
|
30
24
|
# Add samples to the list of directories to format if the directory exists.
|
|
31
25
|
if os.path.isdir("samples"):
|
|
32
26
|
LINT_PATHS.append("samples")
|
|
33
|
-
FORMAT_PATHS.append("samples")
|
|
34
27
|
|
|
35
28
|
ALL_PYTHON = [
|
|
36
29
|
"3.7",
|
|
@@ -159,7 +152,6 @@ def lint(session):
|
|
|
159
152
|
"black",
|
|
160
153
|
"--check",
|
|
161
154
|
*LINT_PATHS,
|
|
162
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
163
155
|
)
|
|
164
156
|
|
|
165
157
|
{% if api.naming.module_namespace %}
|
|
@@ -175,8 +167,7 @@ def blacken(session):
|
|
|
175
167
|
session.install(BLACK_VERSION)
|
|
176
168
|
session.run(
|
|
177
169
|
"black",
|
|
178
|
-
*
|
|
179
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
170
|
+
*LINT_PATHS,
|
|
180
171
|
)
|
|
181
172
|
|
|
182
173
|
|
|
@@ -192,12 +183,11 @@ def format(session):
|
|
|
192
183
|
session.run(
|
|
193
184
|
"isort",
|
|
194
185
|
"--fss",
|
|
195
|
-
*
|
|
186
|
+
*LINT_PATHS,
|
|
196
187
|
)
|
|
197
188
|
session.run(
|
|
198
189
|
"black",
|
|
199
|
-
*
|
|
200
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
190
|
+
*LINT_PATHS,
|
|
201
191
|
)
|
|
202
192
|
|
|
203
193
|
|
|
@@ -214,7 +204,8 @@ def install_unittest_dependencies(session, *constraints):
|
|
|
214
204
|
|
|
215
205
|
if UNIT_TEST_EXTERNAL_DEPENDENCIES:
|
|
216
206
|
warnings.warn(
|
|
217
|
-
"'unit_test_external_dependencies' is deprecated. Instead, please
|
|
207
|
+
"'unit_test_external_dependencies' is deprecated. Instead, please "
|
|
208
|
+
"use 'unit_test_dependencies' or 'unit_test_local_dependencies'.",
|
|
218
209
|
DeprecationWarning,
|
|
219
210
|
)
|
|
220
211
|
session.install(*UNIT_TEST_EXTERNAL_DEPENDENCIES, *constraints)
|
|
@@ -245,15 +236,12 @@ def unit(session, protobuf_implementation):
|
|
|
245
236
|
|
|
246
237
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
247
238
|
# Remove this check once support for Protobuf 3.x is dropped.
|
|
248
|
-
if protobuf_implementation == "cpp" and session.python in (
|
|
249
|
-
"3.11",
|
|
250
|
-
"3.12",
|
|
251
|
-
"3.13",
|
|
252
|
-
"3.14",
|
|
253
|
-
):
|
|
239
|
+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
|
|
254
240
|
session.skip("cpp implementation is not supported in python 3.11+")
|
|
255
241
|
|
|
256
|
-
constraints_path = str(
|
|
242
|
+
constraints_path = str(
|
|
243
|
+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
|
|
244
|
+
)
|
|
257
245
|
install_unittest_dependencies(session, "-c", constraints_path)
|
|
258
246
|
|
|
259
247
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
@@ -316,7 +304,9 @@ def install_systemtest_dependencies(session, *constraints):
|
|
|
316
304
|
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
|
|
317
305
|
def system(session):
|
|
318
306
|
"""Run the system test suite."""
|
|
319
|
-
constraints_path = str(
|
|
307
|
+
constraints_path = str(
|
|
308
|
+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
|
|
309
|
+
)
|
|
320
310
|
system_test_path = os.path.join("tests", "system.py")
|
|
321
311
|
system_test_folder_path = os.path.join("tests", "system")
|
|
322
312
|
|
|
@@ -393,10 +383,8 @@ def docs(session):
|
|
|
393
383
|
"-W", # warnings as errors
|
|
394
384
|
"-T", # show full traceback on exception
|
|
395
385
|
"-N", # no colors
|
|
396
|
-
"-b", # builder
|
|
397
|
-
"
|
|
398
|
-
"-d", # cache directory
|
|
399
|
-
os.path.join("docs", "_build", "doctrees", ""),
|
|
386
|
+
"-b", "html", # builder
|
|
387
|
+
"-d", os.path.join("docs", "_build", "doctrees", ""), # cache directory
|
|
400
388
|
# paths to build:
|
|
401
389
|
os.path.join("docs", ""),
|
|
402
390
|
os.path.join("docs", "_build", "html", ""),
|
|
@@ -464,12 +452,7 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
464
452
|
|
|
465
453
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
466
454
|
# Remove this check once support for Protobuf 3.x is dropped.
|
|
467
|
-
if protobuf_implementation == "cpp" and session.python in (
|
|
468
|
-
"3.11",
|
|
469
|
-
"3.12",
|
|
470
|
-
"3.13",
|
|
471
|
-
"3.14",
|
|
472
|
-
):
|
|
455
|
+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
|
|
473
456
|
session.skip("cpp implementation is not supported in python 3.11+")
|
|
474
457
|
|
|
475
458
|
# Install all dependencies
|
|
@@ -480,7 +463,11 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
480
463
|
session.install(*unit_deps_all)
|
|
481
464
|
|
|
482
465
|
# Install dependencies for the system test environment
|
|
483
|
-
system_deps_all =
|
|
466
|
+
system_deps_all = (
|
|
467
|
+
SYSTEM_TEST_STANDARD_DEPENDENCIES
|
|
468
|
+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
|
|
469
|
+
+ SYSTEM_TEST_EXTRAS
|
|
470
|
+
)
|
|
484
471
|
session.install(*system_deps_all)
|
|
485
472
|
|
|
486
473
|
# Because we test minimum dependency versions on the minimum Python
|
|
@@ -492,8 +479,13 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
492
479
|
) as constraints_file:
|
|
493
480
|
constraints_text = constraints_file.read()
|
|
494
481
|
|
|
495
|
-
# Ignore leading
|
|
496
|
-
constraints_deps = [
|
|
482
|
+
# Ignore leading whitespace and comment lines.
|
|
483
|
+
constraints_deps = [
|
|
484
|
+
match.group(1)
|
|
485
|
+
for match in re.finditer(
|
|
486
|
+
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
|
|
487
|
+
)
|
|
488
|
+
]
|
|
497
489
|
|
|
498
490
|
# Install dependencies specified in `testing/constraints-X.txt`.
|
|
499
491
|
session.install(*constraints_deps)
|
|
@@ -564,7 +556,11 @@ def core_deps_from_source(session, protobuf_implementation):
|
|
|
564
556
|
session.install(*unit_deps_all)
|
|
565
557
|
|
|
566
558
|
# Install dependencies for the system test environment
|
|
567
|
-
system_deps_all =
|
|
559
|
+
system_deps_all = (
|
|
560
|
+
SYSTEM_TEST_STANDARD_DEPENDENCIES
|
|
561
|
+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
|
|
562
|
+
+ SYSTEM_TEST_EXTRAS
|
|
563
|
+
)
|
|
568
564
|
session.install(*system_deps_all)
|
|
569
565
|
|
|
570
566
|
# Because we test minimum dependency versions on the minimum Python
|
|
@@ -576,8 +572,13 @@ def core_deps_from_source(session, protobuf_implementation):
|
|
|
576
572
|
) as constraints_file:
|
|
577
573
|
constraints_text = constraints_file.read()
|
|
578
574
|
|
|
579
|
-
# Ignore leading
|
|
580
|
-
constraints_deps = [
|
|
575
|
+
# Ignore leading whitespace and comment lines.
|
|
576
|
+
constraints_deps = [
|
|
577
|
+
match.group(1)
|
|
578
|
+
for match in re.finditer(
|
|
579
|
+
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
|
|
580
|
+
)
|
|
581
|
+
]
|
|
581
582
|
|
|
582
583
|
# Install dependencies specified in `testing/constraints-X.txt`.
|
|
583
584
|
session.install(*constraints_deps)
|
|
@@ -37,7 +37,7 @@ gapic/templates/_base.py.j2,sha256=dHWbvqXFqg7Q9PAOM1eTKfvAVW5GqtzurXqXCKIENqg,1
|
|
|
37
37
|
gapic/templates/_license.j2,sha256=Uo6Ox63057cG3O2ahnelWqdHzChYgJHfFNIW7EFewZ4,576
|
|
38
38
|
gapic/templates/_pypi_packages.j2,sha256=q5caIgrVbIk2zTJcc4V7U7VdynrlF1OZ8uUf8yCKbjE,1714
|
|
39
39
|
gapic/templates/mypy.ini.j2,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
40
|
-
gapic/templates/noxfile.py.j2,sha256=
|
|
40
|
+
gapic/templates/noxfile.py.j2,sha256=ye91rOL6y6K1Ydvev95JENZjSds3hzQW0sPo-D6IgZM,19823
|
|
41
41
|
gapic/templates/setup.py.j2,sha256=R1cDIkTBl0_-JkVAdTb_8lP9O-K8o5W2-_iG2toRAX8,4587
|
|
42
42
|
gapic/templates/%namespace/%name/__init__.py.j2,sha256=rQDtpxxreJPnI1fBMEjEM76pkBfjnK5Th_DZB3lCtPM,3226
|
|
43
43
|
gapic/templates/%namespace/%name/gapic_version.py.j2,sha256=r-BucJE_mQfWWPnJgHMDgS5mxyaJjmui1NFdSJBqBtA,134
|
|
@@ -110,7 +110,7 @@ gapic/utils/reserved_names.py,sha256=M3E9H42wfQFvn2biBKTlxPXQar5Zw5eP3ved2AUUG2c
|
|
|
110
110
|
gapic/utils/rst.py,sha256=Jr-U6whWZcenjdnzyw-VFiIvS9ToqM-_4QaH59lM2fI,2801
|
|
111
111
|
gapic/utils/uri_conv.py,sha256=fiLI3Ga9CAtouQJcg0Uuu3bwzDral2sZWcRxpLwYmYc,1705
|
|
112
112
|
gapic/utils/uri_sample.py,sha256=1NOKPUE_HWqy46CKzigM2aYp8xqO4ioXmDmBDrQLS9M,3191
|
|
113
|
-
gapic_generator-1.30.
|
|
113
|
+
gapic_generator-1.30.2.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
114
114
|
rules_python_gapic/pytest.py,sha256=cL3qIqEOyfJdAb3p3ogWvyGBKqjp5J5qxgkIrjc7-JA,612
|
|
115
115
|
rules_python_gapic/test.py,sha256=WCsGlzyjVaAy-C79SmL1nw7iyTPRJrlQOdK7uhDEmyM,346
|
|
116
116
|
test_utils/__init__.py,sha256=uwvIt0wvGRORvAV_5AzMHejrBe2E4R4LHwpCd5x_us4,575
|
|
@@ -173,7 +173,7 @@ tests/integration/goldens/asset/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6
|
|
|
173
173
|
tests/integration/goldens/asset/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
174
174
|
tests/integration/goldens/asset/README.rst,sha256=0xtXyFvDFR5TFaEjmKrAL-Vk2WhKprgTzOsyIWj9ms0,5530
|
|
175
175
|
tests/integration/goldens/asset/mypy.ini,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
176
|
-
tests/integration/goldens/asset/noxfile.py,sha256=
|
|
176
|
+
tests/integration/goldens/asset/noxfile.py,sha256=La54wL5B7bQd2ub-yVTiLHl-ibv9Tn7g5HtarWlZDwM,19479
|
|
177
177
|
tests/integration/goldens/asset/setup.py,sha256=4DUNpSYco2Lj-j1J6n5aEU9bidADiDlkO7wjXURKUxM,3571
|
|
178
178
|
tests/integration/goldens/asset/docs/conf.py,sha256=W9I2__vuXN5muLZV7AcN7lR1Ei-jdWaNOJA6sSyhFIs,12400
|
|
179
179
|
tests/integration/goldens/asset/docs/index.rst,sha256=HnyCJx8RLBX4v3-w2o_OKJLC3BJYBRFoXrsQdkRWk08,137
|
|
@@ -272,7 +272,7 @@ tests/integration/goldens/credentials/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6
|
|
|
272
272
|
tests/integration/goldens/credentials/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
273
273
|
tests/integration/goldens/credentials/README.rst,sha256=v9SiCcskmp1IunV8wwV9Mz-jmC3rvXDmGTwWND8rdc0,5538
|
|
274
274
|
tests/integration/goldens/credentials/mypy.ini,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
275
|
-
tests/integration/goldens/credentials/noxfile.py,sha256=
|
|
275
|
+
tests/integration/goldens/credentials/noxfile.py,sha256=_ZX2AbY-qth321p1O2RW7N6dDFobip0oz-KU-BcEAek,19483
|
|
276
276
|
tests/integration/goldens/credentials/setup.py,sha256=AJI2y5w0SC6eOspZqgWoVy70i8o6MxUNC9ssvcqTjd4,3436
|
|
277
277
|
tests/integration/goldens/credentials/docs/conf.py,sha256=StI6nc3_pBSElDLQGFwsBOuF2fOpeKrTHo07FfmuFf0,12446
|
|
278
278
|
tests/integration/goldens/credentials/docs/index.rst,sha256=LKYGQ__JiYwti3ZsKbByYfsRfKMDKEOHI0u5hCPrlCg,149
|
|
@@ -332,7 +332,7 @@ tests/integration/goldens/eventarc/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfB
|
|
|
332
332
|
tests/integration/goldens/eventarc/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
333
333
|
tests/integration/goldens/eventarc/README.rst,sha256=MZMGJSbd1fUcyyiR43M1yjOaGNHmNa7J4fMRMJRArGk,5536
|
|
334
334
|
tests/integration/goldens/eventarc/mypy.ini,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
335
|
-
tests/integration/goldens/eventarc/noxfile.py,sha256=
|
|
335
|
+
tests/integration/goldens/eventarc/noxfile.py,sha256=Cbzva2HXWekwJXh1vbfsuyth4Jv6jTKEf-99Iv0A1yg,19482
|
|
336
336
|
tests/integration/goldens/eventarc/setup.py,sha256=q8ii7cIDUXhuRk23KbPAHyJCHB5br4ugmYA6Nbt2pMI,3479
|
|
337
337
|
tests/integration/goldens/eventarc/docs/conf.py,sha256=Yp9Py3mvpoOcIg601Nq9CLGlhnxzh5-47BOeU77v0Uo,12436
|
|
338
338
|
tests/integration/goldens/eventarc/docs/index.rst,sha256=6LorcVeaJ5jclPRUOinNhLFrNXcxVZpiyKPpnivBNU4,143
|
|
@@ -422,7 +422,7 @@ tests/integration/goldens/logging/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBD
|
|
|
422
422
|
tests/integration/goldens/logging/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
423
423
|
tests/integration/goldens/logging/README.rst,sha256=CWnp40Jr_XGK6aoXBq-n64zj35q52UwgJUPv69-e5uw,5534
|
|
424
424
|
tests/integration/goldens/logging/mypy.ini,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
425
|
-
tests/integration/goldens/logging/noxfile.py,sha256=
|
|
425
|
+
tests/integration/goldens/logging/noxfile.py,sha256=z9Ld2r-suNsu0gSi1HD5xjil_ILlXO3JdoOUYUQmyLU,19481
|
|
426
426
|
tests/integration/goldens/logging/setup.py,sha256=Nn1K-bMSFymrH-W_LwvzeahufNwBr8BC57TBEzLnYhQ,3428
|
|
427
427
|
tests/integration/goldens/logging/docs/conf.py,sha256=c95nfmWXBC4ZCkxZ270Dc7gE74dIBpSD41AYdHgh1AQ,12424
|
|
428
428
|
tests/integration/goldens/logging/docs/index.rst,sha256=TyP51C4E2XH5iZSwfpxcHFd3O2oSrXZ8tKUuxg0BN-o,141
|
|
@@ -583,7 +583,7 @@ tests/integration/goldens/logging_internal/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dW
|
|
|
583
583
|
tests/integration/goldens/logging_internal/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
584
584
|
tests/integration/goldens/logging_internal/README.rst,sha256=CWnp40Jr_XGK6aoXBq-n64zj35q52UwgJUPv69-e5uw,5534
|
|
585
585
|
tests/integration/goldens/logging_internal/mypy.ini,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
586
|
-
tests/integration/goldens/logging_internal/noxfile.py,sha256=
|
|
586
|
+
tests/integration/goldens/logging_internal/noxfile.py,sha256=z9Ld2r-suNsu0gSi1HD5xjil_ILlXO3JdoOUYUQmyLU,19481
|
|
587
587
|
tests/integration/goldens/logging_internal/setup.py,sha256=Nn1K-bMSFymrH-W_LwvzeahufNwBr8BC57TBEzLnYhQ,3428
|
|
588
588
|
tests/integration/goldens/logging_internal/docs/conf.py,sha256=c95nfmWXBC4ZCkxZ270Dc7gE74dIBpSD41AYdHgh1AQ,12424
|
|
589
589
|
tests/integration/goldens/logging_internal/docs/index.rst,sha256=TyP51C4E2XH5iZSwfpxcHFd3O2oSrXZ8tKUuxg0BN-o,141
|
|
@@ -744,7 +744,7 @@ tests/integration/goldens/redis/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6
|
|
|
744
744
|
tests/integration/goldens/redis/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
745
745
|
tests/integration/goldens/redis/README.rst,sha256=mF9pylXti_adqie7oSWJjTtJPggvCPYz8B3uVDzIG1o,5530
|
|
746
746
|
tests/integration/goldens/redis/mypy.ini,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
747
|
-
tests/integration/goldens/redis/noxfile.py,sha256=
|
|
747
|
+
tests/integration/goldens/redis/noxfile.py,sha256=Sg18FM043ZoN5Tm4Xnkw0Fd6wYBlFMb9pBVelYczJ20,19479
|
|
748
748
|
tests/integration/goldens/redis/setup.py,sha256=kBL5jjR0Gpcaf1w0kjNBVB9DTg1yGxVUiIxhsJ1QStA,3548
|
|
749
749
|
tests/integration/goldens/redis/docs/conf.py,sha256=PFC8LO4vNZnPMc8QZHmWCtgSQNpG18GtbGZH6_KUy1A,12400
|
|
750
750
|
tests/integration/goldens/redis/docs/index.rst,sha256=GGblsEI24NcyNgh32MkpCc_2TjVDDBDRIat_yHpPgcY,137
|
|
@@ -819,7 +819,7 @@ tests/integration/goldens/redis_selective/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWg
|
|
|
819
819
|
tests/integration/goldens/redis_selective/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
820
820
|
tests/integration/goldens/redis_selective/README.rst,sha256=mF9pylXti_adqie7oSWJjTtJPggvCPYz8B3uVDzIG1o,5530
|
|
821
821
|
tests/integration/goldens/redis_selective/mypy.ini,sha256=lWDiiMOnvcafIGYGwmOIyEZ8pVmUnqgTjzsFiNOI-nk,54
|
|
822
|
-
tests/integration/goldens/redis_selective/noxfile.py,sha256=
|
|
822
|
+
tests/integration/goldens/redis_selective/noxfile.py,sha256=Sg18FM043ZoN5Tm4Xnkw0Fd6wYBlFMb9pBVelYczJ20,19479
|
|
823
823
|
tests/integration/goldens/redis_selective/setup.py,sha256=kBL5jjR0Gpcaf1w0kjNBVB9DTg1yGxVUiIxhsJ1QStA,3548
|
|
824
824
|
tests/integration/goldens/redis_selective/docs/conf.py,sha256=PFC8LO4vNZnPMc8QZHmWCtgSQNpG18GtbGZH6_KUy1A,12400
|
|
825
825
|
tests/integration/goldens/redis_selective/docs/index.rst,sha256=GGblsEI24NcyNgh32MkpCc_2TjVDDBDRIat_yHpPgcY,137
|
|
@@ -952,8 +952,8 @@ tests/unit/utils/test_lines.py,sha256=nGhHsbicSOKVAWEwcaZI3XizKT5n6-kpWoOt1GjrKc
|
|
|
952
952
|
tests/unit/utils/test_rst.py,sha256=FoTbSc6qpq6cRPeur4GvT2TCKF5m4YlLDplx8ZG5TOc,2232
|
|
953
953
|
tests/unit/utils/test_uri_conv.py,sha256=OLj51y1N-UukFLZJNWHr-QZ9eOWVk4bA4DwD5ask_TA,1118
|
|
954
954
|
tests/unit/utils/test_uri_sample.py,sha256=lnE8HIRIX1I3qqmu0R0vcS4AfB7r6KJwcbxlcFXBVwc,1187
|
|
955
|
-
gapic_generator-1.30.
|
|
956
|
-
gapic_generator-1.30.
|
|
957
|
-
gapic_generator-1.30.
|
|
958
|
-
gapic_generator-1.30.
|
|
959
|
-
gapic_generator-1.30.
|
|
955
|
+
gapic_generator-1.30.2.dist-info/METADATA,sha256=-Lz-J53soFe5c8F6DIyvY4_cg9yUVB-jaDReGB8pJIg,4905
|
|
956
|
+
gapic_generator-1.30.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
957
|
+
gapic_generator-1.30.2.dist-info/entry_points.txt,sha256=AJx-UiTN0b_RJbY6QXm7lQ-k1PkRYGX6CnZqQETrleA,110
|
|
958
|
+
gapic_generator-1.30.2.dist-info/top_level.txt,sha256=jCXBy3WahW-Qvc-5x6oG8i9D_JbAUd2buqQt-UfaHKI,42
|
|
959
|
+
gapic_generator-1.30.2.dist-info/RECORD,,
|
|
@@ -26,17 +26,11 @@ import nox
|
|
|
26
26
|
BLACK_VERSION = "black[jupyter]==23.7.0"
|
|
27
27
|
ISORT_VERSION = "isort==5.11.0"
|
|
28
28
|
|
|
29
|
-
FORMAT_PATHS = ["docs", "google", "tests", "setup.py"]
|
|
30
29
|
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
|
|
31
30
|
|
|
32
|
-
# We're most interested in ensuring that code is formatted properly
|
|
33
|
-
# and less concerned about the line length.
|
|
34
|
-
LINT_LINE_LENGTH = 150
|
|
35
|
-
|
|
36
31
|
# Add samples to the list of directories to format if the directory exists.
|
|
37
32
|
if os.path.isdir("samples"):
|
|
38
33
|
LINT_PATHS.append("samples")
|
|
39
|
-
FORMAT_PATHS.append("samples")
|
|
40
34
|
|
|
41
35
|
ALL_PYTHON = [
|
|
42
36
|
"3.7",
|
|
@@ -161,7 +155,6 @@ def lint(session):
|
|
|
161
155
|
"black",
|
|
162
156
|
"--check",
|
|
163
157
|
*LINT_PATHS,
|
|
164
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
165
158
|
)
|
|
166
159
|
|
|
167
160
|
session.run("flake8", "google", "tests")
|
|
@@ -173,8 +166,7 @@ def blacken(session):
|
|
|
173
166
|
session.install(BLACK_VERSION)
|
|
174
167
|
session.run(
|
|
175
168
|
"black",
|
|
176
|
-
*
|
|
177
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
169
|
+
*LINT_PATHS,
|
|
178
170
|
)
|
|
179
171
|
|
|
180
172
|
|
|
@@ -190,12 +182,11 @@ def format(session):
|
|
|
190
182
|
session.run(
|
|
191
183
|
"isort",
|
|
192
184
|
"--fss",
|
|
193
|
-
*
|
|
185
|
+
*LINT_PATHS,
|
|
194
186
|
)
|
|
195
187
|
session.run(
|
|
196
188
|
"black",
|
|
197
|
-
*
|
|
198
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
189
|
+
*LINT_PATHS,
|
|
199
190
|
)
|
|
200
191
|
|
|
201
192
|
|
|
@@ -212,7 +203,8 @@ def install_unittest_dependencies(session, *constraints):
|
|
|
212
203
|
|
|
213
204
|
if UNIT_TEST_EXTERNAL_DEPENDENCIES:
|
|
214
205
|
warnings.warn(
|
|
215
|
-
"'unit_test_external_dependencies' is deprecated. Instead, please
|
|
206
|
+
"'unit_test_external_dependencies' is deprecated. Instead, please "
|
|
207
|
+
"use 'unit_test_dependencies' or 'unit_test_local_dependencies'.",
|
|
216
208
|
DeprecationWarning,
|
|
217
209
|
)
|
|
218
210
|
session.install(*UNIT_TEST_EXTERNAL_DEPENDENCIES, *constraints)
|
|
@@ -243,15 +235,12 @@ def unit(session, protobuf_implementation):
|
|
|
243
235
|
|
|
244
236
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
245
237
|
# Remove this check once support for Protobuf 3.x is dropped.
|
|
246
|
-
if protobuf_implementation == "cpp" and session.python in (
|
|
247
|
-
"3.11",
|
|
248
|
-
"3.12",
|
|
249
|
-
"3.13",
|
|
250
|
-
"3.14",
|
|
251
|
-
):
|
|
238
|
+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
|
|
252
239
|
session.skip("cpp implementation is not supported in python 3.11+")
|
|
253
240
|
|
|
254
|
-
constraints_path = str(
|
|
241
|
+
constraints_path = str(
|
|
242
|
+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
|
|
243
|
+
)
|
|
255
244
|
install_unittest_dependencies(session, "-c", constraints_path)
|
|
256
245
|
|
|
257
246
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
@@ -309,7 +298,9 @@ def install_systemtest_dependencies(session, *constraints):
|
|
|
309
298
|
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
|
|
310
299
|
def system(session):
|
|
311
300
|
"""Run the system test suite."""
|
|
312
|
-
constraints_path = str(
|
|
301
|
+
constraints_path = str(
|
|
302
|
+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
|
|
303
|
+
)
|
|
313
304
|
system_test_path = os.path.join("tests", "system.py")
|
|
314
305
|
system_test_folder_path = os.path.join("tests", "system")
|
|
315
306
|
|
|
@@ -386,10 +377,8 @@ def docs(session):
|
|
|
386
377
|
"-W", # warnings as errors
|
|
387
378
|
"-T", # show full traceback on exception
|
|
388
379
|
"-N", # no colors
|
|
389
|
-
"-b", # builder
|
|
390
|
-
"
|
|
391
|
-
"-d", # cache directory
|
|
392
|
-
os.path.join("docs", "_build", "doctrees", ""),
|
|
380
|
+
"-b", "html", # builder
|
|
381
|
+
"-d", os.path.join("docs", "_build", "doctrees", ""), # cache directory
|
|
393
382
|
# paths to build:
|
|
394
383
|
os.path.join("docs", ""),
|
|
395
384
|
os.path.join("docs", "_build", "html", ""),
|
|
@@ -457,12 +446,7 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
457
446
|
|
|
458
447
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
459
448
|
# Remove this check once support for Protobuf 3.x is dropped.
|
|
460
|
-
if protobuf_implementation == "cpp" and session.python in (
|
|
461
|
-
"3.11",
|
|
462
|
-
"3.12",
|
|
463
|
-
"3.13",
|
|
464
|
-
"3.14",
|
|
465
|
-
):
|
|
449
|
+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
|
|
466
450
|
session.skip("cpp implementation is not supported in python 3.11+")
|
|
467
451
|
|
|
468
452
|
# Install all dependencies
|
|
@@ -473,7 +457,11 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
473
457
|
session.install(*unit_deps_all)
|
|
474
458
|
|
|
475
459
|
# Install dependencies for the system test environment
|
|
476
|
-
system_deps_all =
|
|
460
|
+
system_deps_all = (
|
|
461
|
+
SYSTEM_TEST_STANDARD_DEPENDENCIES
|
|
462
|
+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
|
|
463
|
+
+ SYSTEM_TEST_EXTRAS
|
|
464
|
+
)
|
|
477
465
|
session.install(*system_deps_all)
|
|
478
466
|
|
|
479
467
|
# Because we test minimum dependency versions on the minimum Python
|
|
@@ -485,8 +473,13 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
485
473
|
) as constraints_file:
|
|
486
474
|
constraints_text = constraints_file.read()
|
|
487
475
|
|
|
488
|
-
# Ignore leading
|
|
489
|
-
constraints_deps = [
|
|
476
|
+
# Ignore leading whitespace and comment lines.
|
|
477
|
+
constraints_deps = [
|
|
478
|
+
match.group(1)
|
|
479
|
+
for match in re.finditer(
|
|
480
|
+
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
|
|
481
|
+
)
|
|
482
|
+
]
|
|
490
483
|
|
|
491
484
|
# Install dependencies specified in `testing/constraints-X.txt`.
|
|
492
485
|
session.install(*constraints_deps)
|
|
@@ -557,7 +550,11 @@ def core_deps_from_source(session, protobuf_implementation):
|
|
|
557
550
|
session.install(*unit_deps_all)
|
|
558
551
|
|
|
559
552
|
# Install dependencies for the system test environment
|
|
560
|
-
system_deps_all =
|
|
553
|
+
system_deps_all = (
|
|
554
|
+
SYSTEM_TEST_STANDARD_DEPENDENCIES
|
|
555
|
+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
|
|
556
|
+
+ SYSTEM_TEST_EXTRAS
|
|
557
|
+
)
|
|
561
558
|
session.install(*system_deps_all)
|
|
562
559
|
|
|
563
560
|
# Because we test minimum dependency versions on the minimum Python
|
|
@@ -569,8 +566,13 @@ def core_deps_from_source(session, protobuf_implementation):
|
|
|
569
566
|
) as constraints_file:
|
|
570
567
|
constraints_text = constraints_file.read()
|
|
571
568
|
|
|
572
|
-
# Ignore leading
|
|
573
|
-
constraints_deps = [
|
|
569
|
+
# Ignore leading whitespace and comment lines.
|
|
570
|
+
constraints_deps = [
|
|
571
|
+
match.group(1)
|
|
572
|
+
for match in re.finditer(
|
|
573
|
+
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
|
|
574
|
+
)
|
|
575
|
+
]
|
|
574
576
|
|
|
575
577
|
# Install dependencies specified in `testing/constraints-X.txt`.
|
|
576
578
|
session.install(*constraints_deps)
|
|
@@ -26,17 +26,11 @@ import nox
|
|
|
26
26
|
BLACK_VERSION = "black[jupyter]==23.7.0"
|
|
27
27
|
ISORT_VERSION = "isort==5.11.0"
|
|
28
28
|
|
|
29
|
-
FORMAT_PATHS = ["docs", "google", "tests", "setup.py"]
|
|
30
29
|
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
|
|
31
30
|
|
|
32
|
-
# We're most interested in ensuring that code is formatted properly
|
|
33
|
-
# and less concerned about the line length.
|
|
34
|
-
LINT_LINE_LENGTH = 150
|
|
35
|
-
|
|
36
31
|
# Add samples to the list of directories to format if the directory exists.
|
|
37
32
|
if os.path.isdir("samples"):
|
|
38
33
|
LINT_PATHS.append("samples")
|
|
39
|
-
FORMAT_PATHS.append("samples")
|
|
40
34
|
|
|
41
35
|
ALL_PYTHON = [
|
|
42
36
|
"3.7",
|
|
@@ -161,7 +155,6 @@ def lint(session):
|
|
|
161
155
|
"black",
|
|
162
156
|
"--check",
|
|
163
157
|
*LINT_PATHS,
|
|
164
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
165
158
|
)
|
|
166
159
|
|
|
167
160
|
session.run("flake8", "google", "tests")
|
|
@@ -173,8 +166,7 @@ def blacken(session):
|
|
|
173
166
|
session.install(BLACK_VERSION)
|
|
174
167
|
session.run(
|
|
175
168
|
"black",
|
|
176
|
-
*
|
|
177
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
169
|
+
*LINT_PATHS,
|
|
178
170
|
)
|
|
179
171
|
|
|
180
172
|
|
|
@@ -190,12 +182,11 @@ def format(session):
|
|
|
190
182
|
session.run(
|
|
191
183
|
"isort",
|
|
192
184
|
"--fss",
|
|
193
|
-
*
|
|
185
|
+
*LINT_PATHS,
|
|
194
186
|
)
|
|
195
187
|
session.run(
|
|
196
188
|
"black",
|
|
197
|
-
*
|
|
198
|
-
f"--line-length={LINT_LINE_LENGTH}",
|
|
189
|
+
*LINT_PATHS,
|
|
199
190
|
)
|
|
200
191
|
|
|
201
192
|
|
|
@@ -212,7 +203,8 @@ def install_unittest_dependencies(session, *constraints):
|
|
|
212
203
|
|
|
213
204
|
if UNIT_TEST_EXTERNAL_DEPENDENCIES:
|
|
214
205
|
warnings.warn(
|
|
215
|
-
"'unit_test_external_dependencies' is deprecated. Instead, please
|
|
206
|
+
"'unit_test_external_dependencies' is deprecated. Instead, please "
|
|
207
|
+
"use 'unit_test_dependencies' or 'unit_test_local_dependencies'.",
|
|
216
208
|
DeprecationWarning,
|
|
217
209
|
)
|
|
218
210
|
session.install(*UNIT_TEST_EXTERNAL_DEPENDENCIES, *constraints)
|
|
@@ -243,15 +235,12 @@ def unit(session, protobuf_implementation):
|
|
|
243
235
|
|
|
244
236
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
245
237
|
# Remove this check once support for Protobuf 3.x is dropped.
|
|
246
|
-
if protobuf_implementation == "cpp" and session.python in (
|
|
247
|
-
"3.11",
|
|
248
|
-
"3.12",
|
|
249
|
-
"3.13",
|
|
250
|
-
"3.14",
|
|
251
|
-
):
|
|
238
|
+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
|
|
252
239
|
session.skip("cpp implementation is not supported in python 3.11+")
|
|
253
240
|
|
|
254
|
-
constraints_path = str(
|
|
241
|
+
constraints_path = str(
|
|
242
|
+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
|
|
243
|
+
)
|
|
255
244
|
install_unittest_dependencies(session, "-c", constraints_path)
|
|
256
245
|
|
|
257
246
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
@@ -309,7 +298,9 @@ def install_systemtest_dependencies(session, *constraints):
|
|
|
309
298
|
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
|
|
310
299
|
def system(session):
|
|
311
300
|
"""Run the system test suite."""
|
|
312
|
-
constraints_path = str(
|
|
301
|
+
constraints_path = str(
|
|
302
|
+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
|
|
303
|
+
)
|
|
313
304
|
system_test_path = os.path.join("tests", "system.py")
|
|
314
305
|
system_test_folder_path = os.path.join("tests", "system")
|
|
315
306
|
|
|
@@ -386,10 +377,8 @@ def docs(session):
|
|
|
386
377
|
"-W", # warnings as errors
|
|
387
378
|
"-T", # show full traceback on exception
|
|
388
379
|
"-N", # no colors
|
|
389
|
-
"-b", # builder
|
|
390
|
-
"
|
|
391
|
-
"-d", # cache directory
|
|
392
|
-
os.path.join("docs", "_build", "doctrees", ""),
|
|
380
|
+
"-b", "html", # builder
|
|
381
|
+
"-d", os.path.join("docs", "_build", "doctrees", ""), # cache directory
|
|
393
382
|
# paths to build:
|
|
394
383
|
os.path.join("docs", ""),
|
|
395
384
|
os.path.join("docs", "_build", "html", ""),
|
|
@@ -457,12 +446,7 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
457
446
|
|
|
458
447
|
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
|
|
459
448
|
# Remove this check once support for Protobuf 3.x is dropped.
|
|
460
|
-
if protobuf_implementation == "cpp" and session.python in (
|
|
461
|
-
"3.11",
|
|
462
|
-
"3.12",
|
|
463
|
-
"3.13",
|
|
464
|
-
"3.14",
|
|
465
|
-
):
|
|
449
|
+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
|
|
466
450
|
session.skip("cpp implementation is not supported in python 3.11+")
|
|
467
451
|
|
|
468
452
|
# Install all dependencies
|
|
@@ -473,7 +457,11 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
473
457
|
session.install(*unit_deps_all)
|
|
474
458
|
|
|
475
459
|
# Install dependencies for the system test environment
|
|
476
|
-
system_deps_all =
|
|
460
|
+
system_deps_all = (
|
|
461
|
+
SYSTEM_TEST_STANDARD_DEPENDENCIES
|
|
462
|
+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
|
|
463
|
+
+ SYSTEM_TEST_EXTRAS
|
|
464
|
+
)
|
|
477
465
|
session.install(*system_deps_all)
|
|
478
466
|
|
|
479
467
|
# Because we test minimum dependency versions on the minimum Python
|
|
@@ -485,8 +473,13 @@ def prerelease_deps(session, protobuf_implementation):
|
|
|
485
473
|
) as constraints_file:
|
|
486
474
|
constraints_text = constraints_file.read()
|
|
487
475
|
|
|
488
|
-
# Ignore leading
|
|
489
|
-
constraints_deps = [
|
|
476
|
+
# Ignore leading whitespace and comment lines.
|
|
477
|
+
constraints_deps = [
|
|
478
|
+
match.group(1)
|
|
479
|
+
for match in re.finditer(
|
|
480
|
+
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
|
|
481
|
+
)
|
|
482
|
+
]
|
|
490
483
|
|
|
491
484
|
# Install dependencies specified in `testing/constraints-X.txt`.
|
|
492
485
|
session.install(*constraints_deps)
|
|
@@ -557,7 +550,11 @@ def core_deps_from_source(session, protobuf_implementation):
|
|
|
557
550
|
session.install(*unit_deps_all)
|
|
558
551
|
|
|
559
552
|
# Install dependencies for the system test environment
|
|
560
|
-
system_deps_all =
|
|
553
|
+
system_deps_all = (
|
|
554
|
+
SYSTEM_TEST_STANDARD_DEPENDENCIES
|
|
555
|
+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
|
|
556
|
+
+ SYSTEM_TEST_EXTRAS
|
|
557
|
+
)
|
|
561
558
|
session.install(*system_deps_all)
|
|
562
559
|
|
|
563
560
|
# Because we test minimum dependency versions on the minimum Python
|
|
@@ -569,8 +566,13 @@ def core_deps_from_source(session, protobuf_implementation):
|
|
|
569
566
|
) as constraints_file:
|
|
570
567
|
constraints_text = constraints_file.read()
|
|
571
568
|
|
|
572
|
-
# Ignore leading
|
|
573
|
-
constraints_deps = [
|
|
569
|
+
# Ignore leading whitespace and comment lines.
|
|
570
|
+
constraints_deps = [
|
|
571
|
+
match.group(1)
|
|
572
|
+
for match in re.finditer(
|
|
573
|
+
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
|
|
574
|
+
)
|
|
575
|
+
]
|
|
574
576
|
|
|
575
577
|
# Install dependencies specified in `testing/constraints-X.txt`.
|
|
576
578
|
session.install(*constraints_deps)
|