Skip to content

Commit 05c68c4

Browse files
authored
FIX: update minimum google-cloud-bigquery version to 1.11.1 (#298)
* FIX: update minimum google-cloud-bigquery version to 1.11.1 Version 1.11.0 was the first version to include a progress_bar_type argument. https://googleapis.dev/python/bigquery/latest/changelog.html#id51
1 parent e0a038d commit 05c68c4

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

ci/requirements-3.5.pip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pandas==0.19.0
22
google-auth==1.4.1
33
google-auth-oauthlib==0.0.1
4-
google-cloud-bigquery==1.9.0
4+
google-cloud-bigquery==1.11.1
55
pydata-google-auth==0.1.2

ci/requirements-3.6-0.20.1.conda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ codecov
22
coverage
33
fastavro
44
flake8
5-
google-cloud-bigquery==1.9.0
6-
google-cloud-bigquery-storage==0.5.0
5+
google-cloud-bigquery==1.11.1
6+
google-cloud-bigquery-storage
77
pydata-google-auth
88
pytest
99
pytest-cov

docs/source/changelog.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ Changelog
1010
argument to limit the number of rows in the results DataFrame. Set
1111
``max_results`` to 0 to ignore query outputs, such as for DML or DDL
1212
queries. (:issue:`102`)
13+
- Add ``progress_bar_type`` argument to :func:`~pandas_gbq.read_gbq()`. Use
14+
this argument to display a progress bar when downloading data.
15+
(:issue:`182`)
1316

14-
- Add ``progress_bar_type`` argument to :func:`~pandas_gbq.read_gbq()`. Use this
15-
argument to display a progress bar when downloading data. (:issue:`182`)
17+
Dependency updates
18+
~~~~~~~~~~~~~~~~~~
19+
20+
- Update the minimum version of ``google-cloud-bigquery`` to 1.11.1.
21+
(:issue:`296`)
1622

1723
Documentation
1824
~~~~~~~~~~~~~

pandas_gbq/gbq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _check_google_client_version():
4545
raise ImportError("Could not import pkg_resources (setuptools).")
4646

4747
# https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/bigquery/CHANGELOG.md
48-
bigquery_minimum_version = pkg_resources.parse_version("1.9.0")
48+
bigquery_minimum_version = pkg_resources.parse_version("1.11.0")
4949
bigquery_client_info_version = pkg_resources.parse_version(
5050
BIGQUERY_CLIENT_INFO_VERSION
5151
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def readme():
2222
"pydata-google-auth",
2323
"google-auth",
2424
"google-auth-oauthlib",
25-
"google-cloud-bigquery>=1.9.0",
25+
"google-cloud-bigquery>=1.11.1",
2626
]
2727

2828
extras = {"tqdm": "tqdm>=4.23.0"}

tests/system/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_get_service_account_credentials_private_key_path(private_key_path):
7474

7575

7676
def test_get_service_account_credentials_private_key_contents(
77-
private_key_contents
77+
private_key_contents,
7878
):
7979
from google.auth.credentials import Credentials
8080

tests/unit/test_gbq.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _make_connector(project_id="some-project", **kwargs):
3131
def min_bq_version():
3232
import pkg_resources
3333

34-
return pkg_resources.parse_version("1.9.0")
34+
return pkg_resources.parse_version("1.11.0")
3535

3636

3737
def mock_get_credentials_no_project(*args, **kwargs):
@@ -327,7 +327,7 @@ def test_read_gbq_with_inferred_project_id_from_service_account_credentials(
327327

328328

329329
def test_read_gbq_without_inferred_project_id_from_compute_engine_credentials(
330-
mock_compute_engine_credentials
330+
mock_compute_engine_credentials,
331331
):
332332
with pytest.raises(ValueError, match="Could not determine project ID"):
333333
gbq.read_gbq(
@@ -406,7 +406,7 @@ def test_read_gbq_with_verbose_new_pandas_warns_deprecation(min_bq_version):
406406

407407

408408
def test_read_gbq_with_not_verbose_new_pandas_warns_deprecation(
409-
min_bq_version
409+
min_bq_version,
410410
):
411411
import pkg_resources
412412

0 commit comments

Comments
 (0)