From eb794050dc47a4c5d1b0bb1177d8dc2c057d49ac Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 11 Dec 2019 13:33:21 -0800 Subject: [PATCH 1/3] chore(bigquery): release 1.23.0 --- bigquery/CHANGELOG.md | 20 ++++++++++++++++++++ bigquery/setup.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/bigquery/CHANGELOG.md b/bigquery/CHANGELOG.md index 7b76ae652200..e3a1a1bf1254 100644 --- a/bigquery/CHANGELOG.md +++ b/bigquery/CHANGELOG.md @@ -4,6 +4,26 @@ [1]: https://pypi.org/project/google-cloud-bigquery/#history +## 1.23.0 + +12-11-2019 13:31 PST + +### New Features + +- add `close()` method to client for releasing open sockets ([#9894](https://github.com/googleapis/google-cloud-python/pull/9894)) +- add support of `use_avro_logical_types` for extract jobs ([#9642](https://github.com/googleapis/google-cloud-python/pull/9642)) +- add support for hive partitioning options configuration ([#9626](https://github.com/googleapis/google-cloud-python/pull/9626)) +- add description for routine entities ([#9785](https://github.com/googleapis/google-cloud-python/pull/9785)) + +### Documentation + +- update code samples to use strings for table and dataset IDs ([#9495](https://github.com/googleapis/google-cloud-python/pull/9495)) + +### Internal / Testing Changes + +- run unit tests with Python 3.8 ([#9880](https://github.com/googleapis/google-cloud-python/pull/9880)) +- import `Mapping` from `collections.abc` not from `collections` ([#9826](https://github.com/googleapis/google-cloud-python/pull/9826)) + ## 1.22.0 11-13-2019 12:23 PST diff --git a/bigquery/setup.py b/bigquery/setup.py index 45c99e7d9bfc..1b17fa88f368 100644 --- a/bigquery/setup.py +++ b/bigquery/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-bigquery" description = "Google BigQuery API client library" -version = "1.22.0" +version = "1.23.0" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta' From f499e7eb34395a9acf2b2e7cff5e12e2515d7077 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 11 Dec 2019 14:49:50 -0800 Subject: [PATCH 2/3] doc: sentence-case for changelog --- bigquery/CHANGELOG.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bigquery/CHANGELOG.md b/bigquery/CHANGELOG.md index e3a1a1bf1254..3f51c5e88583 100644 --- a/bigquery/CHANGELOG.md +++ b/bigquery/CHANGELOG.md @@ -10,19 +10,19 @@ ### New Features -- add `close()` method to client for releasing open sockets ([#9894](https://github.com/googleapis/google-cloud-python/pull/9894)) -- add support of `use_avro_logical_types` for extract jobs ([#9642](https://github.com/googleapis/google-cloud-python/pull/9642)) -- add support for hive partitioning options configuration ([#9626](https://github.com/googleapis/google-cloud-python/pull/9626)) -- add description for routine entities ([#9785](https://github.com/googleapis/google-cloud-python/pull/9785)) +- Add `close()` method to client for releasing open sockets. ([#9894](https://github.com/googleapis/google-cloud-python/pull/9894)) +- Add support of `use_avro_logical_types` for extract jobs. ([#9642](https://github.com/googleapis/google-cloud-python/pull/9642)) +- Add support for hive partitioning options configuration. ([#9626](https://github.com/googleapis/google-cloud-python/pull/9626)) +- Add description for routine entities. ([#9785](https://github.com/googleapis/google-cloud-python/pull/9785)) ### Documentation -- update code samples to use strings for table and dataset IDs ([#9495](https://github.com/googleapis/google-cloud-python/pull/9495)) +- Update code samples to use strings for table and dataset IDs. ([#9495](https://github.com/googleapis/google-cloud-python/pull/9495)) ### Internal / Testing Changes -- run unit tests with Python 3.8 ([#9880](https://github.com/googleapis/google-cloud-python/pull/9880)) -- import `Mapping` from `collections.abc` not from `collections` ([#9826](https://github.com/googleapis/google-cloud-python/pull/9826)) +- Run unit tests with Python 3.8. ([#9880](https://github.com/googleapis/google-cloud-python/pull/9880)) +- Import `Mapping` from `collections.abc` not from `collections`. ([#9826](https://github.com/googleapis/google-cloud-python/pull/9826)) ## 1.22.0 From c10002e49475fd91dd260b05d66b7d42f8c7add9 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 11 Dec 2019 14:57:17 -0800 Subject: [PATCH 3/3] fix: add timeouts to unit tests --- bigquery/tests/unit/test__http.py | 12 ++++++++++-- bigquery/tests/unit/test_client.py | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bigquery/tests/unit/test__http.py b/bigquery/tests/unit/test__http.py index 629e8031a52f..1d8313776a0e 100644 --- a/bigquery/tests/unit/test__http.py +++ b/bigquery/tests/unit/test__http.py @@ -75,7 +75,11 @@ def test_user_agent(self): } expected_uri = conn.build_api_url("/rainbow") http.request.assert_called_once_with( - data=req_data, headers=expected_headers, method="GET", url=expected_uri + data=req_data, + headers=expected_headers, + method="GET", + url=expected_uri, + timeout=None, ) self.assertIn("my-application/1.2.3", conn.user_agent) @@ -104,5 +108,9 @@ def test_extra_headers_replace(self): } expected_uri = conn.build_api_url("/rainbow") http.request.assert_called_once_with( - data=req_data, headers=expected_headers, method="GET", url=expected_uri + data=req_data, + headers=expected_headers, + method="GET", + url=expected_uri, + timeout=None, ) diff --git a/bigquery/tests/unit/test_client.py b/bigquery/tests/unit/test_client.py index 8a82b2e19aa8..e661c86970db 100644 --- a/bigquery/tests/unit/test_client.py +++ b/bigquery/tests/unit/test_client.py @@ -1552,6 +1552,7 @@ def test_get_table_sets_user_agent(self): "User-Agent": expected_user_agent, }, data=mock.ANY, + timeout=None, ) self.assertIn("my-application/1.2.3", expected_user_agent)