Skip to content

Commit 3014fee

Browse files
authored
chore(migration): Migrate code from googleapis/python-bigquery-storage into packages/google-cloud-bigquery-storage (googleapis#14413)
See googleapis#10991. This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history. # TODOs: - [x] lint - [x] docs test failure - [x] coverage test? - [x] two failing unit tests - [x] need to add test `core_deps_from_source` to noxfile - [x] prerelease failing because test name is different - [x] ~~need to set up librarian properly~~ (will do when we onboard handwritten libraries) - [x] owlbot clean up (looks like @parthea did it, need to understand what was done) - [x] might need to remove nox file - looks like each package has a noxfile, so no need to remove ~- [ ] renovate bot exclusion~ - [x] keep samples for now ~- [ ] will remove samples code in the future~ - [x] samples test in system tests in presubmits - [x] samples test in continuous tests - [x] samples test with main branch - [x] release setup ## Before Merging - [x] final rebase from monorepo before merge - [x] final rebase from split repo before merge - [ ] **Be sure to NOT Squash and Merge**
2 parents 09f78e3 + b8418b8 commit 3014fee

File tree

305 files changed

+68973
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+68973
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2021 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+
16+
deep-remove-regex:
17+
- /owl-bot-staging
18+
19+
deep-preserve-regex:
20+
- /owl-bot-staging/google-cloud-bigquery-storage/v1beta1
21+
22+
deep-copy-regex:
23+
- source: /google/cloud/bigquery/storage/(v.*)/.*-py
24+
dest: /owl-bot-staging/google-cloud-bigquery-storage/$1
25+
26+
begin-after-commit-hash: 79c15da3a71c276e23aa2746f9fa243741763179
27+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
show_missing = True
6+
omit =
7+
google/cloud/bigquery_storage/__init__.py
8+
google/cloud/bigquery_storage/gapic_version.py
9+
exclude_lines =
10+
# Re-enable the standard pragma
11+
pragma: NO COVER
12+
# Ignore debug-only repr
13+
def __repr__
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
[flake8]
17+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
18+
# Resolve flake8 lint issues
19+
ignore = E203, E231, E266, E501, W503
20+
exclude =
21+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
22+
# Ensure that generated code passes flake8 lint
23+
**/gapic/**
24+
**/services/**
25+
**/types/**
26+
# Exclude Protobuf gencode
27+
*_pb2.py
28+
29+
# Standard linting exemptions.
30+
**/.nox/**
31+
__pycache__,
32+
.git,
33+
*.pyc,
34+
conf.py
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
*.py[cod]
2+
*.sw[op]
3+
4+
# C extensions
5+
*.so
6+
7+
# Packages
8+
*.egg
9+
*.egg-info
10+
dist
11+
build
12+
eggs
13+
.eggs
14+
parts
15+
bin
16+
var
17+
sdist
18+
develop-eggs
19+
.installed.cfg
20+
lib
21+
lib64
22+
__pycache__
23+
24+
# Installer logs
25+
pip-log.txt
26+
27+
# Unit test / coverage reports
28+
.coverage
29+
.nox
30+
.cache
31+
.pytest_cache
32+
33+
34+
# Mac
35+
.DS_Store
36+
37+
# JetBrains
38+
.idea
39+
40+
# VS Code
41+
.vscode
42+
43+
# emacs
44+
*~
45+
46+
# Built documentation
47+
docs/_build
48+
bigquery/docs/generated
49+
docs.metadata
50+
51+
# Virtual environment
52+
env/
53+
venv/
54+
55+
# Test logs
56+
coverage.xml
57+
*sponge_log.xml
58+
59+
# System test environment variables.
60+
system_tests/local_test_setup
61+
62+
# Make sure a generated file isn't accidentally committed.
63+
pylintrc
64+
pylintrc.test
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2024 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+
# See https://pre-commit.com for more information
16+
# See https://pre-commit.com/hooks.html for more hooks
17+
repos:
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v4.0.1
20+
hooks:
21+
- id: trailing-whitespace
22+
- id: end-of-file-fixer
23+
- id: check-yaml
24+
- repo: https://github.com/psf/black
25+
rev: 23.7.0
26+
hooks:
27+
- id: black
28+
- repo: https://github.com/pycqa/flake8
29+
rev: 6.1.0
30+
hooks:
31+
- id: flake8
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
".": "2.33.1"
3+
}
4+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "bigquerystorage",
3+
"name_pretty": "Google BigQuery Storage",
4+
"product_documentation": "https://cloud.google.com/bigquery/docs/reference/storage/",
5+
"client_documentation": "https://cloud.google.com/python/docs/reference/bigquerystorage/latest",
6+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559654",
7+
"release_level": "stable",
8+
"language": "python",
9+
"library_type": "GAPIC_COMBO",
10+
"repo": "googleapis/python-bigquery-storage",
11+
"distribution_name": "google-cloud-bigquery-storage",
12+
"api_id": "bigquerystorage.googleapis.com",
13+
"requires_billing": true,
14+
"default_version": "v1",
15+
"codeowner_team": "@googleapis/api-bigquery",
16+
"api_shortname": "bigquerystorage"
17+
}

0 commit comments

Comments
 (0)