Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ libraries:
default_version: v1beta
- name: google-cloud-bigquery
version: 3.41.0
skip_generate: true
python:
library_type: GAPIC_COMBO
metadata_name_override: bigquery
Expand Down
5 changes: 0 additions & 5 deletions packages/google-cloud-bigquery/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"api_id": "bigquery.googleapis.com",
"api_shortname": "bigquery",
"client_documentation": "https://cloud.google.com/python/docs/reference/bigquery/latest",
"default_version": "v2",
"distribution_name": "google-cloud-bigquery",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559654",
"language": "python",
"library_type": "GAPIC_COMBO",
"name": "bigquery",
"name_pretty": "Google Cloud BigQuery",
"product_documentation": "https://cloud.google.com/bigquery",
"release_level": "stable",
"repo": "googleapis/google-cloud-python"
}
Comment thread
chalmerlowe marked this conversation as resolved.
4 changes: 2 additions & 2 deletions packages/google-cloud-bigquery/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ dependencies.

Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.9
Python >= 3.10

Unsupported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Python == 2.7, Python == 3.5, Python == 3.6, Python == 3.7, and Python == 3.8.
Python <= 3.9.

The last version of this library compatible with Python 2.7 and 3.5 is
`google-cloud-bigquery==1.28.0`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- :class:`~google.cloud.bigquery.table.Table` represents a single "relation".
"""

import sys
import warnings

from google.cloud.bigquery import version as bigquery_version
Expand Down Expand Up @@ -116,20 +117,16 @@
from google.cloud.bigquery.table import TimePartitioningType
from google.cloud.bigquery.table import TimePartitioning
from google.cloud.bigquery.encryption_configuration import EncryptionConfiguration
from google.cloud.bigquery import _versions_helpers

try:
import bigquery_magics # type: ignore
except ImportError:
bigquery_magics = None

sys_major, sys_minor, sys_micro = _versions_helpers.extract_runtime_version()

if sys_major == 3 and sys_minor in (7, 8):
if sys.version_info < (3, 10):
warnings.warn(
"The python-bigquery library no longer supports Python 3.7 "
"and Python 3.8. "
f"Your Python version is {sys_major}.{sys_minor}.{sys_micro}. We "
"The python-bigquery library no longer supports Python <= 3.9. "
f"Your Python version is {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}. We "
"recommend that you update soon to ensure ongoing support. For "
"more details, see: [Google Cloud Client Libraries Supported Python Versions policy](https://cloud.google.com/python/docs/supported-python-versions)",
FutureWarning,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Shared helper functions for verifying versions of installed modules."""

import sys
from typing import Any

import packaging.version
Expand Down Expand Up @@ -249,16 +247,3 @@ def try_import(self, raise_if_error: bool = False) -> Any:
and PYARROW_VERSIONS.try_import() is not None
and PYARROW_VERSIONS.installed_version >= _MIN_PYARROW_VERSION_RANGE
)


def extract_runtime_version():
# Retrieve the version information
version_info = sys.version_info

# Extract the major, minor, and micro components
major = version_info.major
minor = version_info.minor
micro = version_info.micro

# Display the version number in a clear format
return major, minor, micro
2 changes: 1 addition & 1 deletion packages/google-cloud-bigquery/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[mypy]
python_version = 3.8
python_version = 3.14
namespace_packages = True
9 changes: 5 additions & 4 deletions packages/google-cloud-bigquery/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import nox

MYPY_VERSION = "mypy==1.6.1"
MYPY_VERSION = "mypy<1.16.0"
BLACK_VERSION = "black==23.7.0"
ISORT_VERSION = "isort==5.10.1"
BLACK_PATHS = (
Expand All @@ -36,7 +36,8 @@
)

DEFAULT_PYTHON_VERSION = "3.14"
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
ALL_PYTHON = ["3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_PYTHON_VERSIONS = ALL_PYTHON
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

SYSTEM_TEST_PYTHON_VERSIONS = UNIT_TEST_PYTHON_VERSIONS
Expand Down Expand Up @@ -170,12 +171,12 @@ def unit(session, test_type):
# so that it continues to be an optional dependency.
# https://github.com/googleapis/google-cloud-python/issues/1877
if session.python == UNIT_TEST_PYTHON_VERSIONS[0]:
session.install("pyarrow==4.0.0", "numpy==1.20.2")
session.install("pyarrow==6.0.0", "numpy==1.22.0")

default(session, install_extras=install_extras)


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=ALL_PYTHON)
@_calculate_duration
def mypy(session):
"""Run type checks with mypy."""
Expand Down
7 changes: 2 additions & 5 deletions packages/google-cloud-bigquery/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build-backend = "setuptools.build_meta"
name = "google-cloud-bigquery"
authors = [{ name = "Google LLC", email = "googleapis-packages@google.com" }]
license = { text = "Apache 2.0" }
requires-python = ">=3.8"
requires-python = ">=3.10"
description = "Google BigQuery API client library"
readme = "README.rst"
classifiers = [
Expand All @@ -32,8 +32,6 @@ classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -86,8 +84,7 @@ ipywidgets = ["ipywidgets >= 7.7.1", "ipykernel >= 6.2.0"]
geopandas = ["geopandas >= 0.9.0, < 2.0.0", "Shapely >= 1.8.4, < 3.0.0"]
ipython = ["ipython >= 7.23.1", "bigquery-magics >= 0.6.0"]
matplotlib = [
"matplotlib >= 3.7.1, <= 3.9.2; python_version == '3.9'",
"matplotlib >= 3.10.3; python_version >= '3.10'",
"matplotlib >= 3.10.3",
]
tqdm = ["tqdm >= 4.23.4, < 5.0.0"]
opentelemetry = [
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-bigquery/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

[pytype]
python_version = 3.8
python_version = 3.10
inputs =
google/cloud/
exclude =
Expand Down
26 changes: 26 additions & 0 deletions packages/google-cloud-bigquery/testing/constraints-3.10.txt
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
google-api-core==2.11.1
google-auth==2.14.1
google-cloud-core==2.4.1
google-resumable-media==2.0.0
packaging==24.2.0
python-dateutil==2.8.2
requests==2.21.0
google-cloud-bigquery-storage==2.18.0
grpcio==1.47.0
grpcio-status==1.47.0
pyarrow==6.0.0
pandas==1.3.5
pandas-gbq==0.26.1
db-dtypes==1.0.4
ipywidgets==7.7.1
ipykernel==6.2.0
geopandas==0.9.0
Shapely==1.8.4
ipython==7.23.1
bigquery-magics==0.6.0
matplotlib==3.10.3
tqdm==4.23.4
opentelemetry-api==1.16.0
opentelemetry-sdk==1.16.0
opentelemetry-instrumentation==0.37b0
proto-plus==1.22.3
protobuf==4.25.8
33 changes: 0 additions & 33 deletions packages/google-cloud-bigquery/testing/constraints-3.9.txt

This file was deleted.

Loading