Skip to content

Commit

Permalink
Merge branch 'main' into add-pangea-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
chalmerlowe authored Sep 11, 2024
2 parents bee33ef + 325519a commit 15acfb3
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions google/cloud/bigquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
from google.cloud.bigquery.enums import SqlTypeNames
from google.cloud.bigquery.enums import StandardSqlTypeNames
from google.cloud.bigquery.exceptions import LegacyBigQueryStorageError
from google.cloud.bigquery.exceptions import LegacyPandasError
from google.cloud.bigquery.exceptions import LegacyPyarrowError
from google.cloud.bigquery.external_config import ExternalConfig
from google.cloud.bigquery.external_config import BigtableOptions
Expand Down
2 changes: 1 addition & 1 deletion samples/desktopapp/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
google-cloud-testutils==1.4.0
pytest===7.4.4; python_version == '3.7'
pytest==8.3.2; python_version >= '3.8'
pytest==8.3.3; python_version >= '3.8'
mock==5.1.0
2 changes: 1 addition & 1 deletion samples/geography/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest===7.4.4; python_version == '3.7'
pytest==8.3.2; python_version >= '3.8'
pytest==8.3.3; python_version >= '3.8'
mock==5.1.0
13 changes: 7 additions & 6 deletions samples/geography/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
attrs==24.2.0
certifi==2024.7.4
certifi==2024.8.30
cffi===1.15.1; python_version == '3.7'
cffi==1.17.0; python_version >= '3.8'
cffi==1.17.1; python_version >= '3.8'
charset-normalizer==3.3.2
click==8.1.7
click-plugins==1.1.1
Expand All @@ -13,16 +13,17 @@ geojson==3.1.0
geopandas===0.10.2; python_version == '3.7'
geopandas===0.13.2; python_version == '3.8'
geopandas==1.0.1; python_version >= '3.9'
google-api-core==2.19.1
google-api-core==2.19.2
google-auth==2.34.0
google-cloud-bigquery==3.25.0
google-cloud-bigquery-storage==2.25.0
google-cloud-bigquery-storage==2.26.0
google-cloud-core==2.4.1
google-crc32c==1.5.0
google-crc32c==1.5.0; python_version < '3.9'
google-crc32c==1.6.0; python_version >= '3.9'
google-resumable-media==2.7.2
googleapis-common-protos==1.65.0
grpcio===1.62.2; python_version == '3.7'
grpcio==1.66.0; python_version >= '3.8'
grpcio==1.66.1; python_version >= '3.8'
idna==3.8
munch==4.0.0
mypy-extensions==1.0.0
Expand Down
2 changes: 1 addition & 1 deletion samples/magics/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
google-cloud-testutils==1.4.0
pytest===7.4.4; python_version == '3.7'
pytest==8.3.2; python_version >= '3.8'
pytest==8.3.3; python_version >= '3.8'
mock==5.1.0
4 changes: 2 additions & 2 deletions samples/magics/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bigquery_magics==0.1.1
bigquery_magics==0.2.0
db-dtypes==1.3.0
google.cloud.bigquery==3.25.0
google-cloud-bigquery-storage==2.25.0
google-cloud-bigquery-storage==2.26.0
ipython===7.31.1; python_version == '3.7'
ipython===8.0.1; python_version == '3.8'
ipython===8.18.1; python_version >= '3.9'
Expand Down
2 changes: 1 addition & 1 deletion samples/notebooks/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
google-cloud-testutils==1.4.0
pytest===7.4.4; python_version == '3.7'
pytest==8.3.2; python_version >= '3.8'
pytest==8.3.3; python_version >= '3.8'
mock==5.1.0
4 changes: 2 additions & 2 deletions samples/notebooks/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bigquery-magics==0.1.1
bigquery-magics==0.2.0
db-dtypes==1.3.0
google-cloud-bigquery==3.25.0
google-cloud-bigquery-storage==2.25.0
google-cloud-bigquery-storage==2.26.0
ipython===7.31.1; python_version == '3.7'
ipython===8.0.1; python_version == '3.8'
ipython===8.18.1; python_version >= '3.9'
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# samples/snippets should be runnable with no "extras"
google-cloud-testutils==1.4.0
pytest===7.4.4; python_version == '3.7'
pytest==8.3.2; python_version >= '3.8'
pytest==8.3.3; python_version >= '3.8'
mock==5.1.0
2 changes: 1 addition & 1 deletion samples/snippets/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def grant_access(
# Make an API request to get the view dataset ACLs.
view_dataset = client.get_dataset(view_dataset_id)

analyst_group_email = "data_analysts@example.com"
analyst_group_email = "example-analyst-group@google.com"
# [END bigquery_grant_view_access]
# To facilitate testing, we replace values with alternatives
# provided by the testing harness.
Expand Down
3 changes: 1 addition & 2 deletions samples/snippets/view_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def test_view(

project_id, dataset_id, table_id = view_id.split(".")
overrides: view.OverridesDict = {
"analyst_group_email": "[email protected]",
"view_dataset_id": view_dataset_id,
"source_dataset_id": source_dataset_id,
"view_reference": {
Expand All @@ -127,5 +126,5 @@ def test_view(
assert len(view_dataset.access_entries) != 0
assert len(source_dataset.access_entries) != 0
out, _ = capsys.readouterr()
assert "cloud-dpes-bigquery@google.com" in out
assert "example-analyst-group@google.com" in out
assert table_id in out

0 comments on commit 15acfb3

Please sign in to comment.