Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 70aa385

Browse files
authored
chore: remove local AsyncBidiRpc and use from google-api-core >= 2.27.0 (#1597)
* chore: user AsyncBidiRpc from google-api-core * update google-api-core version to min of 2.27.0 * update import statement in test files as well * fix python3.9 constraints file
1 parent 2da90fc commit 70aa385

6 files changed

Lines changed: 5 additions & 314 deletions

File tree

google/cloud/storage/_experimental/asyncio/async_read_object_stream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
from google.cloud.storage._experimental.asyncio.async_abstract_object_stream import (
2929
_AsyncAbstractObjectStream,
3030
)
31-
from google.cloud.storage._experimental.asyncio.bidi_async import AsyncBidiRpc
31+
32+
from google.api_core.bidi_async import AsyncBidiRpc
3233

3334

3435
class _AsyncReadObjectStream(_AsyncAbstractObjectStream):

google/cloud/storage/_experimental/asyncio/bidi_async.py

Lines changed: 0 additions & 230 deletions
This file was deleted.

google/cloud/storage/_experimental/asyncio/bidi_base.py

Lines changed: 0 additions & 80 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
release_status = "Development Status :: 5 - Production/Stable"
3030
dependencies = [
3131
"google-auth >= 2.26.1, < 3.0.0",
32-
"google-api-core >= 2.15.0, < 3.0.0",
32+
"google-api-core >= 2.27.0, < 3.0.0",
3333
"google-cloud-core >= 2.4.2, < 3.0.0",
3434
# The dependency "google-resumable-media" is no longer used. However, the
3535
# dependency is still included here to accommodate users who may be

testing/constraints-3.9.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
66
# Then this file should have google-cloud-foo==1.14.0
77
google-auth==2.26.1
8-
google-api-core==2.15.0
8+
google-api-core>=2.15.0
99
google-cloud-core==2.4.2
1010
google-resumable-media==2.7.2
1111
requests==2.22.0

tests/unit/asyncio/test_bidi_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
except ImportError: # pragma: NO COVER
3131
pytest.skip("No GRPC", allow_module_level=True)
3232

33-
from google.cloud.storage._experimental.asyncio import bidi_async
33+
from google.api_core import bidi_async
3434
from google.api_core import exceptions
3535

3636

0 commit comments

Comments
 (0)