Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit542ca65

Browse files
committed
fix: bump grpcio version to use stable aio API
1 parenta12c051 commit542ca65

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

‎google/api_core/grpc_helpers_async.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
importfunctools
2323

2424
importgrpc
25-
fromgrpc.experimentalimportaio
25+
fromgrpcimportaio
2626

2727
fromgoogle.api_coreimportexceptions,grpc_helpers
2828

‎noxfile.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def default(session):
8080
)
8181

8282
# Install all test dependencies, then install this package in-place.
83-
session.install("mock","pytest","pytest-cov","grpcio >= 1.0.2")
83+
session.install("mock","pytest","pytest-cov","grpcio >= 1.33.2")
8484
session.install("-e",".","-c",constraints_path)
8585

8686
pytest_args= [
@@ -142,7 +142,7 @@ def lint_setup_py(session):
142142
defpytype(session):
143143
"""Run type-checking."""
144144
session.install(
145-
".","grpcio >= 1.8.2","grpcio-gcp >= 0.2.2","pytype >= 2019.3.21"
145+
".","grpcio >= 1.33.2","grpcio-gcp >= 0.2.2","pytype >= 2019.3.21"
146146
)
147147
session.run("pytype")
148148

@@ -163,7 +163,7 @@ def cover(session):
163163
defdocs(session):
164164
"""Build the docs for this library."""
165165

166-
session.install(".","grpcio >= 1.8.2","grpcio-gcp >= 0.2.2")
166+
session.install(".","grpcio >= 1.33.2","grpcio-gcp >= 0.2.2")
167167
session.install("-e",".")
168168
session.install("sphinx==4.0.1","alabaster","recommonmark")
169169

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'futures >= 3.2.0; python_version < "3.2"',
4141
]
4242
extras= {
43-
"grpc":"grpcio >= 1.29.0, < 2.0dev",
43+
"grpc":"grpcio >= 1.33.2, < 2.0dev",
4444
"grpcgcp":"grpcio-gcp >= 0.2.2",
4545
"grpcio-gcp":"grpcio-gcp >= 0.2.2",
4646
}

‎testing/constraints-3.6.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ requests==2.18.0
1212
setuptools==40.3.0
1313
packaging==14.3
1414
six==1.13.0
15-
grpcio==1.29.0
15+
grpcio==1.33.2
1616
grpcio-gcp==0.2.2
1717
grpcio-gcp==0.2.2

‎tests/asyncio/gapic/test_method_async.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
importdatetime
1616

17-
fromgrpc.experimentalimportaio
17+
fromgrpcimportaio
1818
importmock
1919
importpytest
2020

‎tests/asyncio/operations_v1/test_operations_async_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
fromgrpc.experimentalimportaio
15+
fromgrpcimportaio
1616
importmock
1717
importpytest
1818

‎tests/asyncio/test_grpc_helpers_async.py‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
importgrpc
16-
fromgrpc.experimentalimportaio
16+
fromgrpcimportaio
1717
importmock
1818
importpytest
1919

@@ -270,7 +270,7 @@ def test_wrap_errors_streaming(wrap_stream_errors):
270270
autospec=True,
271271
return_value=(mock.sentinel.credentials,mock.sentinel.projet),
272272
)
273-
@mock.patch("grpc.experimental.aio.secure_channel")
273+
@mock.patch("grpc.aio.secure_channel")
274274
deftest_create_channel_implicit(grpc_secure_channel,default,composite_creds_call):
275275
target="example.com:443"
276276
composite_creds=composite_creds_call.return_value
@@ -295,7 +295,7 @@ def test_create_channel_implicit(grpc_secure_channel, default, composite_creds_c
295295
autospec=True,
296296
return_value=(mock.sentinel.credentials,mock.sentinel.projet),
297297
)
298-
@mock.patch("grpc.experimental.aio.secure_channel")
298+
@mock.patch("grpc.aio.secure_channel")
299299
deftest_create_channel_implicit_with_default_host(
300300
grpc_secure_channel,default,composite_creds_call,request,auth_metadata_plugin
301301
):
@@ -319,7 +319,7 @@ def test_create_channel_implicit_with_default_host(
319319
"google.auth.default",
320320
return_value=(mock.sentinel.credentials,mock.sentinel.projet),
321321
)
322-
@mock.patch("grpc.experimental.aio.secure_channel")
322+
@mock.patch("grpc.aio.secure_channel")
323323
deftest_create_channel_implicit_with_ssl_creds(
324324
grpc_secure_channel,default,composite_creds_call
325325
):
@@ -341,7 +341,7 @@ def test_create_channel_implicit_with_ssl_creds(
341341
autospec=True,
342342
return_value=(mock.sentinel.credentials,mock.sentinel.projet),
343343
)
344-
@mock.patch("grpc.experimental.aio.secure_channel")
344+
@mock.patch("grpc.aio.secure_channel")
345345
deftest_create_channel_implicit_with_scopes(
346346
grpc_secure_channel,default,composite_creds_call
347347
):
@@ -362,7 +362,7 @@ def test_create_channel_implicit_with_scopes(
362362
autospec=True,
363363
return_value=(mock.sentinel.credentials,mock.sentinel.projet),
364364
)
365-
@mock.patch("grpc.experimental.aio.secure_channel")
365+
@mock.patch("grpc.aio.secure_channel")
366366
deftest_create_channel_implicit_with_default_scopes(
367367
grpc_secure_channel,default,composite_creds_call
368368
):
@@ -394,7 +394,7 @@ def test_create_channel_explicit_with_duplicate_credentials():
394394

395395
@mock.patch("grpc.composite_channel_credentials")
396396
@mock.patch("google.auth.credentials.with_scopes_if_required",autospec=True)
397-
@mock.patch("grpc.experimental.aio.secure_channel")
397+
@mock.patch("grpc.aio.secure_channel")
398398
deftest_create_channel_explicit(grpc_secure_channel,auth_creds,composite_creds_call):
399399
target="example.com:443"
400400
composite_creds=composite_creds_call.return_value
@@ -411,7 +411,7 @@ def test_create_channel_explicit(grpc_secure_channel, auth_creds, composite_cred
411411

412412

413413
@mock.patch("grpc.composite_channel_credentials")
414-
@mock.patch("grpc.experimental.aio.secure_channel")
414+
@mock.patch("grpc.aio.secure_channel")
415415
deftest_create_channel_explicit_scoped(grpc_secure_channel,composite_creds_call):
416416
target="example.com:443"
417417
scopes= ["1","2"]
@@ -430,7 +430,7 @@ def test_create_channel_explicit_scoped(grpc_secure_channel, composite_creds_cal
430430

431431

432432
@mock.patch("grpc.composite_channel_credentials")
433-
@mock.patch("grpc.experimental.aio.secure_channel")
433+
@mock.patch("grpc.aio.secure_channel")
434434
deftest_create_channel_explicit_default_scopes(
435435
grpc_secure_channel,composite_creds_call
436436
):
@@ -453,7 +453,7 @@ def test_create_channel_explicit_default_scopes(
453453

454454

455455
@mock.patch("grpc.composite_channel_credentials")
456-
@mock.patch("grpc.experimental.aio.secure_channel")
456+
@mock.patch("grpc.aio.secure_channel")
457457
deftest_create_channel_explicit_with_quota_project(
458458
grpc_secure_channel,composite_creds_call
459459
):
@@ -474,7 +474,7 @@ def test_create_channel_explicit_with_quota_project(
474474

475475

476476
@mock.patch("grpc.composite_channel_credentials")
477-
@mock.patch("grpc.experimental.aio.secure_channel")
477+
@mock.patch("grpc.aio.secure_channel")
478478
@mock.patch(
479479
"google.auth.load_credentials_from_file",
480480
autospec=True,
@@ -500,7 +500,7 @@ def test_create_channnel_with_credentials_file(
500500

501501

502502
@mock.patch("grpc.composite_channel_credentials")
503-
@mock.patch("grpc.experimental.aio.secure_channel")
503+
@mock.patch("grpc.aio.secure_channel")
504504
@mock.patch(
505505
"google.auth.load_credentials_from_file",
506506
autospec=True,
@@ -527,7 +527,7 @@ def test_create_channel_with_credentials_file_and_scopes(
527527

528528

529529
@mock.patch("grpc.composite_channel_credentials")
530-
@mock.patch("grpc.experimental.aio.secure_channel")
530+
@mock.patch("grpc.aio.secure_channel")
531531
@mock.patch(
532532
"google.auth.load_credentials_from_file",
533533
autospec=True,
@@ -556,7 +556,7 @@ def test_create_channel_with_credentials_file_and_default_scopes(
556556
@pytest.mark.skipif(
557557
grpc_helpers_async.HAS_GRPC_GCP,reason="grpc_gcp module not available"
558558
)
559-
@mock.patch("grpc.experimental.aio.secure_channel")
559+
@mock.patch("grpc.aio.secure_channel")
560560
deftest_create_channel_without_grpc_gcp(grpc_secure_channel):
561561
target="example.com:443"
562562
scopes= ["test_scope"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp