From 72c127545b009dfd10032b20c3407bf6c3a389b8 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 11 Dec 2019 16:35:00 -0800 Subject: [PATCH] chore(bigquery): release 1.23.0 (#9961) * chore(bigquery): release 1.23.0 * doc: sentence-case for changelog * fix: add timeouts to unit tests --- bigquery/CHANGELOG.md | 20 ++++++++++++++++++++ bigquery/setup.py | 2 +- bigquery/tests/unit/test__http.py | 12 ++++++++++-- bigquery/tests/unit/test_client.py | 1 + 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/bigquery/CHANGELOG.md b/bigquery/CHANGELOG.md index 7b76ae652200..3f51c5e88583 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' 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)