Content-Length: 569587 | pFad | http://github.com/googleapis/python-bigquery/commit/222e86e4e8af321ad8908c1c65d39d10bab9f565

75 chore: standardize samples directory - delete unneeded dependencies (… · googleapis/python-bigquery@222e86e · GitHub
Skip to content

Commit 222e86e

Browse files
authored
chore: standardize samples directory - delete unneeded dependencies (#1732)
* chore: standardize samples directory = delete unneeded dependencies * Removed unused import for linter
1 parent f05dc69 commit 222e86e

9 files changed

+48
-346
lines changed

samples/desktopapp/conftest.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from google.cloud import bigquery
16+
import pytest
17+
18+
19+
@pytest.fixture
20+
def bigquery_client_patch(
21+
monkeypatch: pytest.MonkeyPatch, bigquery_client: bigquery.Client
22+
) -> None:
23+
monkeypatch.setattr(bigquery, "Client", lambda: bigquery_client)

samples/desktopapp/requirements.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
1-
db-dtypes==1.1.1
21
google-cloud-bigquery==3.11.4
3-
google-cloud-bigquery-storage==2.22.0
42
google-auth-oauthlib==1.0.0
5-
grpcio==1.57.0
6-
ipywidgets==8.1.0
7-
ipython===7.31.1; python_version == '3.7'
8-
ipython===8.0.1; python_version == '3.8'
9-
ipython==8.14.0; python_version >= '3.9'
10-
matplotlib===3.5.3; python_version == '3.7'
11-
matplotlib==3.7.2; python_version >= '3.8'
12-
pandas===1.3.5; python_version == '3.7'
13-
pandas==2.0.3; python_version >= '3.8'
14-
pyarrow==12.0.1; python_version == '3.7'
15-
pyarrow==14.0.1; python_version >= '3.8'
16-
pytz==2023.3
17-
typing-extensions==4.7.1

samples/magics/requirements.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
db-dtypes==1.1.1
2+
google.cloud.bigquery==3.11.4
23
google-cloud-bigquery-storage==2.22.0
3-
google-auth-oauthlib==1.0.0
4-
grpcio==1.57.0
5-
ipywidgets==8.1.0
64
ipython===7.31.1; python_version == '3.7'
75
ipython===8.0.1; python_version == '3.8'
86
ipython==8.14.0; python_version >= '3.9'
9-
matplotlib===3.5.3; python_version == '3.7'
10-
matplotlib==3.7.2; python_version >= '3.8'
117
pandas===1.3.5; python_version == '3.7'
128
pandas==2.0.3; python_version >= '3.8'
13-
pyarrow==12.0.1; python_version == '3.7'
14-
pyarrow==14.0.1; python_version >= '3.8'
15-
pytz==2023.3
16-
typing-extensions==4.7.1

samples/notebooks/conftest.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from google.cloud import bigquery
16+
import pytest
17+
18+
19+
@pytest.fixture
20+
def bigquery_client_patch(
21+
monkeypatch: pytest.MonkeyPatch, bigquery_client: bigquery.Client
22+
) -> None:
23+
monkeypatch.setattr(bigquery, "Client", lambda: bigquery_client)

samples/notebooks/requirements.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
db-dtypes==1.1.1
22
google-cloud-bigquery==3.11.4
33
google-cloud-bigquery-storage==2.22.0
4-
google-auth-oauthlib==1.0.0
5-
grpcio==1.57.0
6-
ipywidgets==8.1.0
74
ipython===7.31.1; python_version == '3.7'
85
ipython===8.0.1; python_version == '3.8'
96
ipython==8.14.0; python_version >= '3.9'
107
matplotlib===3.5.3; python_version == '3.7'
118
matplotlib==3.7.2; python_version >= '3.8'
129
pandas===1.3.5; python_version == '3.7'
1310
pandas==2.0.3; python_version >= '3.8'
14-
pyarrow==12.0.1; python_version == '3.7'
15-
pyarrow==14.0.1; python_version >= '3.8'
16-
pytz==2023.3
17-
typing-extensions==4.7.1

samples/snippets/jupyter_tutorial_test.py

Lines changed: 0 additions & 175 deletions
This file was deleted.

samples/snippets/requirements.txt

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
db-dtypes==1.1.1
2-
google-cloud-bigquery==3.11.4
3-
google-cloud-bigquery-storage==2.22.0
4-
google-auth-oauthlib==1.0.0
5-
grpcio==1.57.0
6-
ipywidgets==8.1.0
7-
ipython===7.31.1; python_version == '3.7'
8-
ipython===8.0.1; python_version == '3.8'
9-
ipython==8.14.0; python_version >= '3.9'
10-
matplotlib===3.5.3; python_version == '3.7'
11-
matplotlib==3.7.2; python_version >= '3.8'
12-
pandas===1.3.5; python_version == '3.7'
13-
pandas==2.0.3; python_version >= '3.8'
14-
pyarrow==12.0.1; python_version == '3.7'
15-
pyarrow==14.0.1; python_version >= '3.8'
16-
pytz==2023.3
17-
typing-extensions==4.7.1
1+
google-cloud-bigquery==3.11.4

samples/snippets/user_credentials.py

Lines changed: 0 additions & 78 deletions
This file was deleted.

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: http://github.com/googleapis/python-bigquery/commit/222e86e4e8af321ad8908c1c65d39d10bab9f565

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy