diff --git a/README.rst b/README.rst index 614d2a44d3..2419029c29 100644 --- a/README.rst +++ b/README.rst @@ -12,22 +12,29 @@ powered by the BigQuery engine. BigQuery DataFrames is an open-source package. You can run ``pip install --upgrade bigframes`` to install the latest version. -.. raw:: html - -
-

⚠️ Breaking Changes in BigQuery DataFrames v2.0

-

Version 2.0 introduces breaking changes for improved security and performance. Key default behaviors have changed:

- -

Important: If you are not ready to adapt to these changes, please pin your dependency to a version less than 2.0 (e.g., bigframes==1.42.0) to avoid disruption.

-

To learn about these changes and how to migrate to version 2.0, see: updated introduction guide.

-
+⚠️ Warning: Breaking Changes in BigQuery DataFrames v2.0 +-------------------------------------------------------- + +Version 2.0 introduces breaking changes for improved security and performance. Key default behaviors have changed, including + +* **Large Results (>10GB):** The default value for ``allow_large_results`` has changed to ``False``. + Methods like ``to_pandas()`` will now fail if the query result's compressed data size exceeds 10GB, + unless large results are explicitly permitted. +* **Remote Function Security:** The library no longer automatically lets the Compute Engine default service + account become the identity of the Cloud Run functions. If that is desired, it has to be indicated by passing + ``cloud_function_service_account="default"``. And network ingress now defaults to ``"internal-only"``. +* **@remote_function Argument Passing:** Arguments other than ``input_types``, ``output_type``, and ``dataset`` + to ``remote_function`` must now be passed using keyword syntax, as positional arguments are no longer supported. +* **Endpoint Connections:** Automatic fallback to locational endpoints in certain regions is removed. +* **LLM Updates (Gemini Integration):** Integrations now default to the ``gemini-2.0-flash-001`` model. + PaLM2 support has been removed; please migrate any existing PaLM2 usage to Gemini. **Note:** The current default + model will be removed in Version 3.0. + +**Important:** If you are not ready to adapt to these changes, please pin your dependency to a version less than 2.0 +(e.g., ``bigframes==1.42.0``) to avoid disruption. + +To learn about these changes and how to migrate to version 2.0, see the +`updated introduction guide `_. .. |GA| image:: https://img.shields.io/badge/support-GA-gold.svg :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availability diff --git a/noxfile.py b/noxfile.py index bcab34d0c0..bb4ba91a3a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -184,6 +184,14 @@ def lint_setup_py(session): session.install("docutils", "pygments") session.run("python", "setup.py", "check", "--restructuredtext", "--strict") + session.install("twine", "wheel") + shutil.rmtree("build", ignore_errors=True) + shutil.rmtree("dist", ignore_errors=True) + session.run("python", "setup.py", "sdist") + session.run( + "python", "-m", "twine", "check", *pathlib.Path("dist").glob("*.tar.gz") + ) + def install_unittest_dependencies(session, install_test_extra, *constraints): standard_deps = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_DEPENDENCIES diff --git a/setup.py b/setup.py index 34e013c9a3..1692b89b5c 100644 --- a/setup.py +++ b/setup.py @@ -117,6 +117,7 @@ version=version_id, description=description, long_description=readme, + long_description_content_type="text/x-rst", author="Google LLC", author_email="bigframes-feedback@google.com", license="Apache 2.0",