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

Commit5ce4d13

Browse files
kiraksichalmerlowegcf-owl-bot[bot]tswast
authored
fix: move grpc, proto-plus and protobuf packages to extras (#1721)
* chore: move grpc, proto-plus and protobuff packages to extras* formatted with black* feat: add `job_timeout_ms` to job configuration classes (#1675)* fix: adds new property and tests* 🦉 Updates from OwlBot post-processorSeehttps://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md* updates docs to correct a sphinx failure* Updates formatting* Update tests/system/test_query.py* 🦉 Updates from OwlBot post-processorSeehttps://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md* Update google/cloud/bigquery/job/base.py* updates one test and uses int_or_none* Update tests/system/test_query.pytesting something.* Update tests/system/test_query.py* testing coverage feature* 🦉 Updates from OwlBot post-processorSeehttps://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md* minor edits* tweaks to noxfile for testing purposes* add new test to base as experiment* adds a test, updates import statements* add another test* edit to tests* formatting fixes* update noxfile to correct debug code* removes unneeded comments.---------Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>---------Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>Co-authored-by: Tim Swast <swast@google.com>
1 parent222e86e commit5ce4d13

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

‎setup.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,16 @@
2929
# 'Development Status :: 5 - Production/Stable'
3030
release_status="Development Status :: 5 - Production/Stable"
3131
dependencies= [
32-
"grpcio >= 1.47.0, < 2.0dev",# https://github.com/googleapis/python-bigquery/issues/1262
33-
"grpcio >= 1.49.1, < 2.0dev; python_version>='3.11'",
3432
# NOTE: Maintainers, please do not require google-api-core>=2.x.x
3533
# Until this issue is closed
3634
# https://github.com/googleapis/google-cloud-python/issues/10566
37-
"google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0",
38-
"proto-plus >= 1.15.0, <2.0.0dev",
35+
"google-api-core >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0",
3936
# NOTE: Maintainers, please do not require google-cloud-core>=2.x.x
4037
# Until this issue is closed
4138
# https://github.com/googleapis/google-cloud-python/issues/10566
4239
"google-cloud-core >= 1.6.0, <3.0.0dev",
4340
"google-resumable-media >= 0.6.0, < 3.0dev",
4441
"packaging >= 20.0.0",
45-
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",# For the legacy proto-based types.
4642
"python-dateutil >= 2.7.2, <3.0dev",
4743
"requests >= 2.21.0, < 3.0.0dev",
4844
]
@@ -82,6 +78,10 @@
8278
"opentelemetry-sdk >= 1.1.0",
8379
"opentelemetry-instrumentation >= 0.20b0",
8480
],
81+
"bigquery_v2": [
82+
"proto-plus >= 1.15.0, <2.0.0dev",
83+
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",# For the legacy proto-based types.
84+
],
8585
}
8686

8787
all_extras= []

‎tests/unit/test_legacy_types.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
importpytest
17+
1618
importwarnings
1719

20+
try:
21+
importproto# type: ignore
22+
exceptImportError:# pragma: NO COVER
23+
proto=None
24+
1825

26+
@pytest.mark.skipif(protoisNone,reason="proto is not installed")
1927
deftest_importing_legacy_types_emits_warning():
2028
withwarnings.catch_warnings(record=True)aswarned:
2129
fromgoogle.cloud.bigquery_v2importtypes# noqa: F401

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp