Skip to content

Commit fe91d93

Browse files
shuoweilparthea
andauthored
feat: add pandas-gbq to optional extras (#18020)
Adds `pandas-gbq>=0.35.1` and `pyarrow>=3.0.0` to the `pandas` optional extra in `google-cloud-bigquery-storage`, while keeping `pyarrow` extra lightweight without pandas dependencies. ### Details - Updates `extras["pandas"]` in setup.py to include `pyarrow>=3.0.0` and `pandas-gbq>=0.35.1`. - Keeps `extras["pyarrow"]` as `pyarrow>=3.0.0` only so pure Arrow/Polars/DuckDB workflows avoid pulling in `pandas` and `numpy`. Fixes #<526614511> 🦕 --------- Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent d206212 commit fe91d93

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • packages/google-cloud-bigquery-storage

packages/google-cloud-bigquery-storage/setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@
5454
"protobuf >= 6.33.5, < 8.0.0",
5555
]
5656
extras = {
57-
"pandas": ["pandas>=1.1.3"],
58-
"fastavro": ["fastavro>=1.1.0"],
59-
"pyarrow": ["pyarrow>=3.0.0"],
57+
"pandas": [
58+
"pandas >= 1.1.3, < 3.0.0",
59+
"pyarrow >= 3.0.0",
60+
"pandas-gbq >= 0.35.1, < 2.0.0",
61+
],
62+
"fastavro": ["fastavro >= 1.1.0, < 2.0.0"],
63+
"pyarrow": ["pyarrow >= 3.0.0"],
6064
}
6165
url = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-bigquery-storage"
6266

0 commit comments

Comments
 (0)