diff --git a/.github/workflows/configure_release_please.yml b/.github/workflows/configure_release_please.yml index bcf9a1ec6dfd..a2de49c3fae5 100644 --- a/.github/workflows/configure_release_please.yml +++ b/.github/workflows/configure_release_please.yml @@ -48,7 +48,7 @@ jobs: - name: Set up Python 3.11 uses: actions/setup-python@v6 with: - python-version: 3.13 + python-version: 3.14 - name: Run configure_release_please.py run: python3 configure_release_please.py working-directory: ./scripts/configure_release_please diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 76dbad827909..5a57c85f3a9a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v6 with: - python-version: "3.13" + python-version: "3.14" - name: Install nox run: | python -m pip install --upgrade setuptools pip wheel diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc8b3e5d3950..122102d5d944 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v6 with: - python-version: "3.13" + python-version: "3.14" - name: Install script dependencies run: pip3 install -r requirements.txt working-directory: ./scripts diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml index 90316a6cfb7a..8aa1dad4e3b8 100644 --- a/.github/workflows/scripts.yml +++ b/.github/workflows/scripts.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v6 with: - python-version: "3.13" + python-version: "3.14" - name: Install pytest run: | python -m pip install pytest diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index f8b17e347d84..c7d2fe26f44b 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - python: ['3.7', '3.8', '3.9', '3.10', "3.11", "3.12", "3.13"] + python: ['3.7', '3.8', '3.9', '3.10', "3.11", "3.12", "3.13", "3.14"] steps: - name: Checkout uses: actions/checkout@v4 @@ -86,8 +86,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.13"] - option: ["core_deps_from_source"] + python: ["3.14"] + option: ["core_deps_from_source-3.14"] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/ci/run_single_test.sh b/ci/run_single_test.sh index 6811e7cebf2b..f72144e14efb 100755 --- a/ci/run_single_test.sh +++ b/ci/run_single_test.sh @@ -61,7 +61,7 @@ case ${TEST_TYPE} in rm -rf docs/_build ;; prerelease) - nox -s prerelease_deps + nox -s prerelease_deps-3.14 retval=$? ;; unit) @@ -94,6 +94,10 @@ case ${TEST_TYPE} in nox -s unit-3.13 retval=$? ;; + "3.14") + nox -s unit-3.14 + retval=$? + ;; *) echo "unsupported PY_VERSION" exit 1 diff --git a/packages/google-cloud-bigquery-storage/noxfile.py b/packages/google-cloud-bigquery-storage/noxfile.py index 2c272d17bc01..119bf6a3b90c 100644 --- a/packages/google-cloud-bigquery-storage/noxfile.py +++ b/packages/google-cloud-bigquery-storage/noxfile.py @@ -35,6 +35,7 @@ "3.11", "3.12", "3.13", + "3.14", ] DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1] @@ -62,7 +63,15 @@ ] UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} -SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = [ + "3.8", + "3.9", + "3.10", + "3.11", + "3.12", + "3.13", + "3.14", +] SYSTEM_TEST_STANDARD_DEPENDENCIES = [ "mock", "pytest", @@ -236,6 +245,13 @@ def unit(session, protobuf_implementation): if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"): session.skip("cpp implementation is not supported in python 3.11+") + # TODO(https://github.com/googleapis/google-cloud-python/issues/14686): + # Run tests with 3.14 once this bug is fixed + if session.python == "3.14": + session.skip( + "3.14 is not yet supported. See https://github.com/googleapis/google-cloud-python/issues/14686" + ) + constraints_path = str( CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" ) @@ -459,7 +475,7 @@ def docfx(session): ) -@nox.session(python=DEFAULT_PYTHON_VERSION) +@nox.session(python=["3.13", "3.14"]) @nox.parametrize( "protobuf_implementation", ["python", "upb", "cpp"], @@ -475,6 +491,13 @@ def prerelease_deps(session, protobuf_implementation): if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"): session.skip("cpp implementation is not supported in python 3.11+") + # TODO(https://github.com/googleapis/google-cloud-python/issues/14686): + # Run tests with 3.14 once this bug is fixed + if session.python == "3.14": + session.skip( + "3.14 is not yet supported. See https://github.com/googleapis/google-cloud-python/issues/14686" + ) + # Install all dependencies session.install("-e", ".") @@ -558,7 +581,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=DEFAULT_PYTHON_VERSION) +@nox.session(python=["3.13", "3.14"]) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -568,6 +591,13 @@ def core_deps_from_source(session, protobuf_implementation): rather than pulling the dependencies from PyPI. """ + # TODO(https://github.com/googleapis/google-cloud-python/issues/14686): + # Run tests with 3.14 once this bug is fixed + if session.python == "3.14": + session.skip( + "3.14 is not yet supported. See https://github.com/googleapis/google-cloud-python/issues/14686" + ) + # Install all dependencies session.install("-e", ".") diff --git a/packages/google-cloud-bigquery-storage/samples/to_dataframe/requirements.txt b/packages/google-cloud-bigquery-storage/samples/to_dataframe/requirements.txt index 982eec47895c..9e645977017d 100644 --- a/packages/google-cloud-bigquery-storage/samples/to_dataframe/requirements.txt +++ b/packages/google-cloud-bigquery-storage/samples/to_dataframe/requirements.txt @@ -1,4 +1,4 @@ -google-auth==2.40.3 +google-auth==2.41.1 google-cloud-bigquery-storage==2.33.1 google-cloud-bigquery===3.30.0; python_version <= '3.8' google-cloud-bigquery==3.38.0; python_version >= '3.9' @@ -9,11 +9,11 @@ ipython===7.31.1; python_version == '3.7' ipython===8.10.0; python_version == '3.8' ipython===8.18.1; python_version == '3.9' ipython===8.33.0; python_version == '3.10' -ipython==9.5.0; python_version >= '3.11' +ipython==9.6.0; python_version >= '3.11' ipywidgets==8.1.7 pandas===1.3.5; python_version == '3.7' pandas===2.0.3; python_version == '3.8' -pandas==2.3.2; python_version >= '3.9' +pandas==2.3.3; python_version >= '3.9' tqdm==4.67.1 db-dtypes===1.4.2; python_version <= '3.8' db-dtypes==1.4.3; python_version >= '3.9' diff --git a/packages/google-cloud-bigquery-storage/testing/constraints-3.14.txt b/packages/google-cloud-bigquery-storage/testing/constraints-3.14.txt new file mode 100644 index 000000000000..e69de29bb2d1