Skip to content
Draft
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
39 changes: 0 additions & 39 deletions .github/sync-repo-settings.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.14"
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python: ['3.9', '3.11', '3.12', '3.13']
python: ['3.9', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.14"
- name: Install coverage
run: |
python -m pip install --upgrade setuptools pip wheel
Expand Down
7 changes: 0 additions & 7 deletions .kokoro/continuous/prerelease-deps-3.13.cfg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Only run this nox session.
env_vars: {
key: "NOX_SESSION"
value: "prerelease_deps"
value: "prerelease_deps-3.14"
}
7 changes: 0 additions & 7 deletions .kokoro/continuous/prerelease-deps-3.8.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/prerelease-deps-3.10.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/prerelease-deps-3.12.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/prerelease-deps-3.13.cfg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Only run this nox session.
env_vars: {
key: "NOX_SESSION"
value: "prerelease_deps-3.11"
value: "prerelease_deps-3.14"
}
7 changes: 0 additions & 7 deletions .kokoro/presubmit/prerelease-deps-3.9.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/prerelease-deps.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/system-3.10.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/system-3.13.cfg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Only run this nox session.
env_vars: {
key: "NOX_SESSION"
value: "system-3.12"
value: "system-3.14"
}
10 changes: 6 additions & 4 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In order to add a feature:
documentation.

- The feature must work fully on the following CPython versions:
3.9, 3.11, 3.12 and 3.13 on both UNIX and Windows.
3.9, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.

- The feature must not add unnecessary dependencies (where
"unnecessary" is of course subjective, but new dependencies should
Expand Down Expand Up @@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.

- To run a single unit test::

$ nox -s unit-3.13 -- -k <name of test>
$ nox -s unit-3.14 -- -k <name of test>


.. note::
Expand Down Expand Up @@ -143,12 +143,12 @@ Running System Tests
$ nox -s system

# Run a single system test
$ nox -s system-3.13 -- -k <name of test>
$ nox -s system-3.14 -- -k <name of test>


.. note::

System tests are only configured to run under Python 3.9, 3.11, 3.12 and 3.13.
System tests are only configured to run under Python 3.9, 3.11, and 3.14.
For expediency, we do not run them in older versions of Python 3.

This alone will not run the tests. You'll need to change some local
Expand Down Expand Up @@ -225,11 +225,13 @@ We support:
- `Python 3.11`_
- `Python 3.12`_
- `Python 3.13`_
- `Python 3.14`_

.. _Python 3.9: https://docs.python.org/3.9/
.. _Python 3.11: https://docs.python.org/3.11/
.. _Python 3.12: https://docs.python.org/3.12/
.. _Python 3.13: https://docs.python.org/3.13/
.. _Python 3.14: https://docs.python.org/3.14/


Supported versions can be found in our ``noxfile.py`` `config`_.
Expand Down
34 changes: 27 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
ISORT_VERSION = "isort==5.11.0"
LINT_PATHS = ["docs", "bigquery_magics", "tests", "noxfile.py", "setup.py"]

DEFAULT_PYTHON_VERSION = "3.10"
DEFAULT_PYTHON_VERSION = "3.14"

UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13"]
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_STANDARD_DEPENDENCIES = [
"mock",
"asyncmock",
Expand Down Expand Up @@ -67,9 +67,14 @@
"bigframes",
"geopandas",
],
"3.14": [
"bqstorage",
"bigframes",
"geopandas",
],
}

SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13"]
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13", "3.14"]
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
"mock",
"pytest",
Expand Down Expand Up @@ -99,6 +104,11 @@
"bigframes",
"geopandas",
],
"3.14": [
"bqstorage",
"bigframes",
"geopandas",
],
}

CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
Expand Down Expand Up @@ -168,7 +178,7 @@ def format(session):
@nox.session(python=DEFAULT_PYTHON_VERSION)
def lint_setup_py(session):
"""Verify that setup.py is valid (including RST check)."""
session.install("docutils", "pygments")
session.install("docutils", "pygments", "setuptools")
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")


Expand Down Expand Up @@ -208,7 +218,12 @@ def install_unittest_dependencies(session, *constraints):
def unit(session, protobuf_implementation):
# Install all test dependencies, then install this package in-place.

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

constraints_path = str(
Expand Down Expand Up @@ -408,15 +423,20 @@ def docfx(session):
)


@nox.session(python="3.13")
@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.parametrize(
"protobuf_implementation",
["python", "upb", "cpp"],
)
def prerelease_deps(session, protobuf_implementation):
"""Run all tests with prerelease versions of dependencies installed."""

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

# Install all dependencies
Expand Down
7 changes: 4 additions & 3 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
"3.11": [],
"3.12": extras_storage + extras_spanner,
"3.13": extras_bf,
"3.14": extras_bf,
}
templated_files = common.py_library(
unit_test_python_versions=["3.9", "3.11", "3.12", "3.13"],
system_test_python_versions=["3.9", "3.11", "3.12", "3.13"],
unit_test_python_versions=["3.9", "3.11", "3.12", "3.13", "3.14"],
system_test_python_versions=["3.9", "3.11", "3.12", "3.13", "3.14"],
cov_level=100,
unit_test_extras_by_python=extras_by_python,
unit_test_external_dependencies=["google-cloud-testutils"],
Expand All @@ -50,7 +51,7 @@
"pandas": "https://pandas.pydata.org/pandas-docs/stable/",
"pydata-google-auth": "https://pydata-google-auth.readthedocs.io/en/latest/",
},
default_python_version="3.10",
default_python_version="3.14",
)
s.move(
templated_files,
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"packaging >= 20.0.0",
"pandas>=1.2.0",
"pyarrow >= 3.0.0",
# See https://arrow.apache.org/release/22.0.0.html
"pyarrow >= 22.0.0; python_version >= '3.14'",
"pydata-google-auth >=1.5.0",
"tqdm >= 4.7.4, <5.0.0",
]
Expand Down Expand Up @@ -110,6 +112,7 @@
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Internet",
],
Expand Down
Empty file added testing/constraints-3.14.txt
Empty file.
Loading