Skip to content

Commit 3722638

Browse files
authored
chore(migration): Migrate code from googleapis/python-bigquery-pandas into packages/pandas-gbq (#16047)
See #10988. This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.
2 parents 3716018 + c8edc8f commit 3722638

File tree

102 files changed

+15433
-3
lines changed

Some content is hidden

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

102 files changed

+15433
-3
lines changed

.kokoro/system.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ packages_with_system_tests=(
9898
"google-cloud-logging"
9999
"google-cloud-pubsub"
100100
"google-cloud-testutils"
101+
"pandas-gbq"
101102
)
102103

103104
# A file for running system tests

.librarian/state.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4103,6 +4103,15 @@ libraries:
41034103
- README.rst
41044104
- docs/summary_overview.md
41054105
tag_format: '{id}-v{version}'
4106+
- id: pandas-gbq
4107+
version: 0.34.0
4108+
last_generated_commit: ""
4109+
apis: []
4110+
source_roots:
4111+
- packages/pandas-gbq
4112+
preserve_regex: []
4113+
remove_regex: []
4114+
tag_format: '{id}-v{version}'
41064115
- id: proto-plus
41074116
version: 1.27.1
41084117
last_generated_commit: ""

packages/pandas-gbq/.coveragerc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2024 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
[run]
18+
branch = True
19+
omit =
20+
google/__init__.py
21+
google/cloud/__init__.py
22+
23+
[report]
24+
fail_under = 95
25+
show_missing = True
26+
exclude_lines =
27+
# Re-enable the standard pragma
28+
pragma: NO COVER
29+
# Ignore debug-only repr
30+
def __repr__
31+
# Ignore abstract methods
32+
raise NotImplementedError
33+
omit =
34+
*/gapic/*.py
35+
*/proto/*.py
36+
*/site-packages/*.py
37+
google/cloud/__init__.py

packages/pandas-gbq/.flake8

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2024 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# Generated by synthtool. DO NOT EDIT!
18+
[flake8]
19+
ignore = E203, E231, E266, E501, W503
20+
exclude =
21+
# Exclude generated code.
22+
**/proto/**
23+
**/gapic/**
24+
**/services/**
25+
**/types/**
26+
*_pb2.py
27+
28+
# Standard linting exemptions.
29+
**/.nox/**
30+
__pycache__,
31+
.git,
32+
*.pyc,
33+
conf.py

packages/pandas-gbq/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pandas_gbq/_version.py export-subst
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2017 pandas-gbq Authors All rights reserved.
2+
# Use of this source code is governed by a BSD-style
3+
# license that can be found in the LICENSE file.
4+
5+
# .readthedocs.yaml
6+
# Read the Docs configuration file
7+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
8+
9+
version: 2
10+
11+
build:
12+
os: ubuntu-22.04
13+
tools:
14+
python: "3.11"
15+
16+
python:
17+
install:
18+
- requirements: docs/requirements-docs.txt
19+
20+
# Explicit configuration path is required by ReadtheDocs starting Jan 20, 2025.
21+
# See: https://about.readthedocs.com/blog/2024/12/deprecate-config-files-without-sphinx-or-mkdocs-config/
22+
version: 2
23+
sphinx:
24+
configuration: docs/conf.py
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "pandas-gbq",
3+
"name_pretty": "Google BigQuery connector for pandas",
4+
"product_documentation": "https://cloud.google.com/bigquery",
5+
"client_documentation": "https://googleapis.dev/python/pandas-gbq/latest/",
6+
"issue_tracker": "https://github.com/googleapis/python-bigquery-pandas/issues",
7+
"release_level": "preview",
8+
"language": "python",
9+
"library_type": "INTEGRATION",
10+
"repo": "googleapis/google-cloud-python",
11+
"distribution_name": "pandas-gbq",
12+
"api_id": "bigquery.googleapis.com",
13+
"default_version": "",
14+
"codeowner_team": "@googleapis/cloud-sdk-python-team @googleapis/bigquery-dataframe-team"
15+
}

packages/pandas-gbq/AUTHORS.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
About the Copyright Holders
2+
===========================
3+
4+
* Copyright (c) 2008-2011 AQR Capital Management, LLC
5+
6+
AQR Capital Management began pandas development in 2008. Development was
7+
led by Wes McKinney. AQR released the source under this license in 2009.
8+
* Copyright (c) 2011-2012, Lambda Foundry, Inc.
9+
10+
Wes is now an employee of Lambda Foundry, and remains the pandas project
11+
lead.
12+
* Copyright (c) 2011-2012, PyData Development Team
13+
14+
The PyData Development Team is the collection of developers of the PyData
15+
project. This includes all of the PyData sub-projects, including pandas. The
16+
core team that coordinates development on GitHub can be found here:
17+
http://github.com/pydata.
18+
19+
Full credits for pandas contributors can be found in the documentation.
20+
21+
Our Copyright Policy
22+
====================
23+
24+
PyData uses a shared copyright model. Each contributor maintains copyright
25+
over their contributions to PyData. However, it is important to note that
26+
these contributions are typically only changes to the repositories. Thus,
27+
the PyData source code, in its entirety, is not the copyright of any single
28+
person or institution. Instead, it is the collective copyright of the
29+
entire PyData Development Team. If individual contributors want to maintain
30+
a record of what changes/contributions they have specific copyright on,
31+
they should indicate their copyright in the commit message of the change
32+
when they commit the change to one of the PyData repositories.
33+
34+
With this in mind, the following banner should be used in any source code
35+
file to indicate the copyright and license terms:
36+
37+
```
38+
#-----------------------------------------------------------------------------
39+
# Copyright (c) 2012, PyData Development Team
40+
# All rights reserved.
41+
#
42+
# Distributed under the terms of the BSD Simplified License.
43+
#
44+
# The full license is in the LICENSE file, distributed with this software.
45+
#-----------------------------------------------------------------------------
46+
```
47+
48+
Other licenses can be found in the LICENSES directory.
49+
50+
License
51+
=======
52+
53+
pandas is distributed under a 3-clause ("Simplified" or "New") BSD
54+
license. Parts of NumPy, SciPy, numpydoc, bottleneck, which all have
55+
BSD-compatible licenses, are included. Their licenses follow the pandas
56+
license.

0 commit comments

Comments
 (0)