Content-Length: 360701 | pFad | https://github.com/googleapis/python-bigquery/commit/5ce4d136af97b91fbe1cc56bba1021e50a9c8476

7A fix: move grpc, proto-plus and protobuf packages to extras (#1721) · googleapis/python-bigquery@5ce4d13 · GitHub
Skip to content

Commit 5ce4d13

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-processor See https://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-processor See https://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.py testing something. * Update tests/system/test_query.py * testing coverage feature * 🦉 Updates from OwlBot post-processor See https://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 parent 222e86e commit 5ce4d13

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+
import pytest
17+
1618
import warnings
1719

20+
try:
21+
import proto # type: ignore
22+
except ImportError: # pragma: NO COVER
23+
proto = None
24+
1825

26+
@pytest.mark.skipif(proto is None, reason="proto is not installed")
1927
def test_importing_legacy_types_emits_warning():
2028
with warnings.catch_warnings(record=True) as warned:
2129
from google.cloud.bigquery_v2 import types # noqa: F401

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-bigquery/commit/5ce4d136af97b91fbe1cc56bba1021e50a9c8476

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy