From 4663d286facb271570e5f535370b414155429495 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 5 Jul 2022 18:38:54 +0000 Subject: [PATCH 01/10] chore(python): drop python 3.6 Source-Link: https://github.com/googleapis/synthtool/commit/4f89b13af10d086458f9b379e56a614f9d6dab7b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c --- .github/.OwlBot.lock.yaml | 4 +- .kokoro/continuous/prerelease-deps.cfg | 7 ++ .kokoro/presubmit/prerelease-deps.cfg | 7 ++ .kokoro/test-samples-impl.sh | 4 +- README.rst | 66 +++++++++++--- noxfile.py | 88 +++++++++++++++++++ samples/snippets/noxfile.py | 2 +- .../templates/install_deps.tmpl.rst | 2 +- 8 files changed, 161 insertions(+), 19 deletions(-) create mode 100644 .kokoro/continuous/prerelease-deps.cfg create mode 100644 .kokoro/presubmit/prerelease-deps.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 757c9dc..1ce6085 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:81ed5ecdfc7cac5b699ba4537376f3563f6f04122c4ec9e735d3b3dc1d43dd32 -# created: 2022-05-05T22:08:23.383410683Z + digest: sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c +# created: 2022-07-05T18:31:20.838186805Z diff --git a/.kokoro/continuous/prerelease-deps.cfg b/.kokoro/continuous/prerelease-deps.cfg new file mode 100644 index 0000000..3595fb4 --- /dev/null +++ b/.kokoro/continuous/prerelease-deps.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Only run this nox session. +env_vars: { + key: "NOX_SESSION" + value: "prerelease_deps" +} diff --git a/.kokoro/presubmit/prerelease-deps.cfg b/.kokoro/presubmit/prerelease-deps.cfg new file mode 100644 index 0000000..3595fb4 --- /dev/null +++ b/.kokoro/presubmit/prerelease-deps.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Only run this nox session. +env_vars: { + key: "NOX_SESSION" + value: "prerelease_deps" +} diff --git a/.kokoro/test-samples-impl.sh b/.kokoro/test-samples-impl.sh index 8a324c9..2c6500c 100755 --- a/.kokoro/test-samples-impl.sh +++ b/.kokoro/test-samples-impl.sh @@ -33,7 +33,7 @@ export PYTHONUNBUFFERED=1 env | grep KOKORO # Install nox -python3.6 -m pip install --upgrade --quiet nox +python3.9 -m pip install --upgrade --quiet nox # Use secrets acessor service account to get secrets if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then @@ -76,7 +76,7 @@ for file in samples/**/requirements.txt; do echo "------------------------------------------------------------" # Use nox to execute the tests for the project. - python3.6 -m nox -s "$RUN_TESTS_SESSION" + python3.9 -m nox -s "$RUN_TESTS_SESSION" EXIT=$? # If this is a periodic build, send the test log to the FlakyBot. diff --git a/README.rst b/README.rst index 8ea047c..b9f7cc3 100644 --- a/README.rst +++ b/README.rst @@ -1,25 +1,40 @@ -Pandas Data Types for SQL systems (BigQuery, Spanner) -===================================================== +Python Client for Pandas Data Types for SQL systems (BigQuery, Spanner) API +=========================================================================== -|ga| |pypi| |versions| +|stable| |pypi| |versions| -`Pandas extension data types`_ for data from SQL systems such as `BigQuery`_. +`Pandas Data Types for SQL systems (BigQuery, Spanner) API`_: -- `Library Documentation`_ +- `Client Library Documentation`_ +- `Product Documentation`_ -.. |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 +.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg + :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels .. |pypi| image:: https://img.shields.io/pypi/v/db-dtypes.svg :target: https://pypi.org/project/db-dtypes/ .. |versions| image:: https://img.shields.io/pypi/pyversions/db-dtypes.svg :target: https://pypi.org/project/db-dtypes/ -.. _Pandas extension data types: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions -.. _BigQuery: https://cloud.google.com/bigquery/docs/ -.. _Library Documentation: https://googleapis.dev/python/db-dtypes/latest +.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API: +.. _Client Library Documentation: https://cloud.google.com/python/docs/reference//latest +.. _Product Documentation: +Quick Start +----------- + +In order to use this library, you first need to go through the following steps: + +1. `Select or create a Cloud Platform project.`_ +2. `Enable billing for your project.`_ +3. `Enable the Pandas Data Types for SQL systems (BigQuery, Spanner) API.`_ +4. `Setup Authentication.`_ + +.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project +.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project +.. _Enable the Pandas Data Types for SQL systems (BigQuery, Spanner) API.: +.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation ------------- +~~~~~~~~~~~~ Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to create isolated Python environments. The basic problem it addresses is one of @@ -32,13 +47,25 @@ dependencies. .. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +Code samples and snippets +~~~~~~~~~~~~~~~~~~~~~~~~~ + +Code samples and snippets live in the `samples/` folder. + + Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ -Python >= 3.6 +Our client libraries are compatible with all current [active](https://devguide.python.org/devcycle/#in-development-main-branch) and [maintenance](https://devguide.python.org/devcycle/#maintenance-branches) versions of +Python. + +Python >= 3.7 Unsupported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Python <= 3.5. +Python <= 3.6 + +If you are using an [end-of-life](https://devguide.python.org/devcycle/#end-of-life-branches) +version of Python, we recommend that you update as soon as possible to an actively supported version. Mac/Linux @@ -61,3 +88,16 @@ Windows virtualenv \Scripts\activate \Scripts\pip.exe install db-dtypes + +Next Steps +~~~~~~~~~~ + +- Read the `Client Library Documentation`_ for Pandas Data Types for SQL systems (BigQuery, Spanner) API + to see other available methods on the client. +- Read the `Pandas Data Types for SQL systems (BigQuery, Spanner) API Product documentation`_ to learn + more about the product and see How-to Guides. +- View this `README`_ to see the full list of Cloud + APIs that we cover. + +.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API Product documentation: +.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst diff --git a/noxfile.py b/noxfile.py index d417290..25cb1bb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -20,6 +20,7 @@ import os import pathlib import re +import re import shutil import warnings @@ -421,3 +422,90 @@ def docfx(session): os.path.join("docs", ""), os.path.join("docs", "_build", "html", ""), ) + + +@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS) +def prerelease_deps(session): + """Run all tests with prerelease versions of dependencies installed.""" + + # Install all dependencies + session.install("-e", ".[all, tests, tracing]") + session.install(*UNIT_TEST_STANDARD_DEPENDENCIES) + system_deps_all = ( + SYSTEM_TEST_STANDARD_DEPENDENCIES + + SYSTEM_TEST_EXTERNAL_DEPENDENCIES + + SYSTEM_TEST_EXTRAS + ) + session.install(*system_deps_all) + + # Because we test minimum dependency versions on the minimum Python + # version, the first version we test with in the unit tests sessions has a + # constraints file containing all dependencies and extras. + with open( + CURRENT_DIRECTORY + / "testing" + / f"constraints-{UNIT_TEST_PYTHON_VERSIONS[0]}.txt", + encoding="utf-8", + ) as constraints_file: + constraints_text = constraints_file.read() + + # Ignore leading whitespace and comment lines. + constraints_deps = [ + match.group(1) + for match in re.finditer( + r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE + ) + ] + + session.install(*constraints_deps) + + if os.path.exists("samples/snippets/requirements.txt"): + session.install("-r", "samples/snippets/requirements.txt") + + if os.path.exists("samples/snippets/requirements-test.txt"): + session.install("-r", "samples/snippets/requirements-test.txt") + + prerel_deps = [ + "protobuf", + # dependency of grpc + "six", + "googleapis-common-protos", + "grpcio", + "grpcio-status", + "google-api-core", + "proto-plus", + "google-cloud-testutils", + # dependencies of google-cloud-testutils" + "click", + ] + + for dep in prerel_deps: + session.install("--pre", "--no-deps", "--upgrade", dep) + + # Remaining dependencies + other_deps = [ + "requests", + "google-auth", + ] + session.install(*other_deps) + + # Print out prerelease package versions + session.run( + "python", "-c", "import google.protobuf; print(google.protobuf.__version__)" + ) + session.run("python", "-c", "import grpc; print(grpc.__version__)") + + session.run("py.test", "tests/unit") + + system_test_path = os.path.join("tests", "system.py") + system_test_folder_path = os.path.join("tests", "system") + + # Only run system tests if found. + if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path): + session.run("py.test", "tests/system") + + snippets_test_path = os.path.join("samples", "snippets") + + # Only run samples tests if found. + if os.path.exists(snippets_test_path): + session.run("py.test", "samples/snippets") diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index a40410b..29b5bc8 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to test samples. -ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] +ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] diff --git a/scripts/readme-gen/templates/install_deps.tmpl.rst b/scripts/readme-gen/templates/install_deps.tmpl.rst index 275d649..6f069c6 100644 --- a/scripts/readme-gen/templates/install_deps.tmpl.rst +++ b/scripts/readme-gen/templates/install_deps.tmpl.rst @@ -12,7 +12,7 @@ Install Dependencies .. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup -#. Create a virtualenv. Samples are compatible with Python 3.6+. +#. Create a virtualenv. Samples are compatible with Python 3.7+. .. code-block:: bash From ac289f3003513b3d86f7593ec151decb9b1324a5 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 7 Jul 2022 16:00:58 +0000 Subject: [PATCH 02/10] require python 3.7+ in setup.py --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index ece3ee5..759f88c 100644 --- a/setup.py +++ b/setup.py @@ -62,7 +62,6 @@ def readme(): "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", From 4aa8069329f9048e3bcd45760be5945e46c90e42 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 7 Jul 2022 16:01:32 +0000 Subject: [PATCH 03/10] remove python 3.6 sample configs --- .kokoro/samples/python3.6/common.cfg | 40 --------------------- .kokoro/samples/python3.6/continuous.cfg | 7 ---- .kokoro/samples/python3.6/periodic-head.cfg | 11 ------ .kokoro/samples/python3.6/periodic.cfg | 6 ---- .kokoro/samples/python3.6/presubmit.cfg | 6 ---- 5 files changed, 70 deletions(-) delete mode 100644 .kokoro/samples/python3.6/common.cfg delete mode 100644 .kokoro/samples/python3.6/continuous.cfg delete mode 100644 .kokoro/samples/python3.6/periodic-head.cfg delete mode 100644 .kokoro/samples/python3.6/periodic.cfg delete mode 100644 .kokoro/samples/python3.6/presubmit.cfg diff --git a/.kokoro/samples/python3.6/common.cfg b/.kokoro/samples/python3.6/common.cfg deleted file mode 100644 index 84c31ca..0000000 --- a/.kokoro/samples/python3.6/common.cfg +++ /dev/null @@ -1,40 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Specify which tests to run -env_vars: { - key: "RUN_TESTS_SESSION" - value: "py-3.6" -} - -# Declare build specific Cloud project. -env_vars: { - key: "BUILD_SPECIFIC_GCLOUD_PROJECT" - value: "python-docs-samples-tests-py36" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/python-db-dtypes-pandas/.kokoro/test-samples.sh" -} - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" -} - -# Download secrets for samples -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "python-db-dtypes-pandas/.kokoro/trampoline_v2.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.6/continuous.cfg b/.kokoro/samples/python3.6/continuous.cfg deleted file mode 100644 index 7218af1..0000000 --- a/.kokoro/samples/python3.6/continuous.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "INSTALL_LIBRARY_FROM_SOURCE" - value: "True" -} - diff --git a/.kokoro/samples/python3.6/periodic-head.cfg b/.kokoro/samples/python3.6/periodic-head.cfg deleted file mode 100644 index ee3d564..0000000 --- a/.kokoro/samples/python3.6/periodic-head.cfg +++ /dev/null @@ -1,11 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "INSTALL_LIBRARY_FROM_SOURCE" - value: "True" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/python-db-dtypes-pandas/.kokoro/test-samples-against-head.sh" -} diff --git a/.kokoro/samples/python3.6/periodic.cfg b/.kokoro/samples/python3.6/periodic.cfg deleted file mode 100644 index 71cd1e5..0000000 --- a/.kokoro/samples/python3.6/periodic.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "INSTALL_LIBRARY_FROM_SOURCE" - value: "False" -} diff --git a/.kokoro/samples/python3.6/presubmit.cfg b/.kokoro/samples/python3.6/presubmit.cfg deleted file mode 100644 index a1c8d97..0000000 --- a/.kokoro/samples/python3.6/presubmit.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "INSTALL_LIBRARY_FROM_SOURCE" - value: "True" -} \ No newline at end of file From 459790d9f2b4440d8181dd154dfd6b8301e979ae Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sun, 10 Jul 2022 11:04:43 +0000 Subject: [PATCH 04/10] update product documentation in .repo-metadata.json --- .repo-metadata.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 027751f..761c999 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,6 +1,7 @@ { "name": "db-dtypes", "name_pretty": "Pandas Data Types for SQL systems (BigQuery, Spanner)", + "product_documentation": "https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions", "client_documentation": "https://googleapis.dev/python/db-dtypes/latest/index.html", "release_level": "stable", "language": "python", @@ -9,5 +10,6 @@ "distribution_name": "db-dtypes", "api_id": "bigquery.googleapis.com", "default_version": "", - "codeowner_team": "@googleapis/api-bigquery" + "codeowner_team": "@googleapis/api-bigquery", + "api_description": "Pandas extension data types for data from SQL systems such as BigQuery." } From 2d4950a86ed76c48bf2d6aa28301d8afbab60024 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sun, 10 Jul 2022 11:06:28 +0000 Subject: [PATCH 05/10] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20?= =?UTF-8?q?post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index b9f7cc3..be6138e 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ Python Client for Pandas Data Types for SQL systems (BigQuery, Spanner) API |stable| |pypi| |versions| -`Pandas Data Types for SQL systems (BigQuery, Spanner) API`_: +`Pandas Data Types for SQL systems (BigQuery, Spanner) API`_: Pandas extension data types for data from SQL systems such as BigQuery. - `Client Library Documentation`_ - `Product Documentation`_ @@ -14,9 +14,9 @@ Python Client for Pandas Data Types for SQL systems (BigQuery, Spanner) API :target: https://pypi.org/project/db-dtypes/ .. |versions| image:: https://img.shields.io/pypi/pyversions/db-dtypes.svg :target: https://pypi.org/project/db-dtypes/ -.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API: +.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions .. _Client Library Documentation: https://cloud.google.com/python/docs/reference//latest -.. _Product Documentation: +.. _Product Documentation: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions Quick Start ----------- @@ -30,7 +30,7 @@ In order to use this library, you first need to go through the following steps: .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the Pandas Data Types for SQL systems (BigQuery, Spanner) API.: +.. _Enable the Pandas Data Types for SQL systems (BigQuery, Spanner) API.: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions .. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -99,5 +99,5 @@ Next Steps - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API Product documentation: +.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API Product documentation: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst From 43b2ca0c631cd75c2ca21a2bf5d922b4e3600ad4 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sun, 10 Jul 2022 11:28:48 +0000 Subject: [PATCH 06/10] exclude templated readme --- README.rst | 66 +++++++++++------------------------------------------- owlbot.py | 2 +- 2 files changed, 14 insertions(+), 54 deletions(-) diff --git a/README.rst b/README.rst index be6138e..8ea047c 100644 --- a/README.rst +++ b/README.rst @@ -1,40 +1,25 @@ -Python Client for Pandas Data Types for SQL systems (BigQuery, Spanner) API -=========================================================================== +Pandas Data Types for SQL systems (BigQuery, Spanner) +===================================================== -|stable| |pypi| |versions| +|ga| |pypi| |versions| -`Pandas Data Types for SQL systems (BigQuery, Spanner) API`_: Pandas extension data types for data from SQL systems such as BigQuery. +`Pandas extension data types`_ for data from SQL systems such as `BigQuery`_. -- `Client Library Documentation`_ -- `Product Documentation`_ +- `Library Documentation`_ -.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg - :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels +.. |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 .. |pypi| image:: https://img.shields.io/pypi/v/db-dtypes.svg :target: https://pypi.org/project/db-dtypes/ .. |versions| image:: https://img.shields.io/pypi/pyversions/db-dtypes.svg :target: https://pypi.org/project/db-dtypes/ -.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions -.. _Client Library Documentation: https://cloud.google.com/python/docs/reference//latest -.. _Product Documentation: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions +.. _Pandas extension data types: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions +.. _BigQuery: https://cloud.google.com/bigquery/docs/ +.. _Library Documentation: https://googleapis.dev/python/db-dtypes/latest -Quick Start ------------ - -In order to use this library, you first need to go through the following steps: - -1. `Select or create a Cloud Platform project.`_ -2. `Enable billing for your project.`_ -3. `Enable the Pandas Data Types for SQL systems (BigQuery, Spanner) API.`_ -4. `Setup Authentication.`_ - -.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project -.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the Pandas Data Types for SQL systems (BigQuery, Spanner) API.: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions -.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation -~~~~~~~~~~~~ +------------ Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to create isolated Python environments. The basic problem it addresses is one of @@ -47,25 +32,13 @@ dependencies. .. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ -Code samples and snippets -~~~~~~~~~~~~~~~~~~~~~~~~~ - -Code samples and snippets live in the `samples/` folder. - - Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ -Our client libraries are compatible with all current [active](https://devguide.python.org/devcycle/#in-development-main-branch) and [maintenance](https://devguide.python.org/devcycle/#maintenance-branches) versions of -Python. - -Python >= 3.7 +Python >= 3.6 Unsupported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Python <= 3.6 - -If you are using an [end-of-life](https://devguide.python.org/devcycle/#end-of-life-branches) -version of Python, we recommend that you update as soon as possible to an actively supported version. +Python <= 3.5. Mac/Linux @@ -88,16 +61,3 @@ Windows virtualenv \Scripts\activate \Scripts\pip.exe install db-dtypes - -Next Steps -~~~~~~~~~~ - -- Read the `Client Library Documentation`_ for Pandas Data Types for SQL systems (BigQuery, Spanner) API - to see other available methods on the client. -- Read the `Pandas Data Types for SQL systems (BigQuery, Spanner) API Product documentation`_ to learn - more about the product and see How-to Guides. -- View this `README`_ to see the full list of Cloud - APIs that we cover. - -.. _Pandas Data Types for SQL systems (BigQuery, Spanner) API Product documentation: https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#ecosystem-extensions -.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst diff --git a/owlbot.py b/owlbot.py index 383ae37..5afc287 100644 --- a/owlbot.py +++ b/owlbot.py @@ -35,7 +35,7 @@ "pandas": "https://pandas.pydata.org/pandas-docs/stable/" }, ) -s.move(templated_files, excludes=["docs/multiprocessing.rst"]) +s.move(templated_files, excludes=["docs/multiprocessing.rst", "README.rst"]) # ---------------------------------------------------------------------------- # Fixup files From 607b299283937895869e2acf3837fc9a6c1657e6 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sun, 10 Jul 2022 11:34:26 +0000 Subject: [PATCH 07/10] require python 3.7+ in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 759f88c..67403c2 100644 --- a/setup.py +++ b/setup.py @@ -71,6 +71,6 @@ def readme(): ], platforms="Posix; MacOS X; Windows", install_requires=dependencies, - python_requires=">=3.6, <3.11", + python_requires=">=3.7, <3.11", tests_require=["pytest"], ) From 53c021977bc6861af22526f4aa0281a2394eaff8 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sun, 10 Jul 2022 11:40:33 +0000 Subject: [PATCH 08/10] remove python 3.6 from noxfile --- owlbot.py | 1 - 1 file changed, 1 deletion(-) diff --git a/owlbot.py b/owlbot.py index 5afc287..4b89096 100644 --- a/owlbot.py +++ b/owlbot.py @@ -28,7 +28,6 @@ # Add templated files # ---------------------------------------------------------------------------- templated_files = common.py_library( - unit_test_python_versions=["3.6", "3.7", "3.8", "3.9", "3.10"], system_test_python_versions=["3.8"], cov_level=100, intersphinx_dependencies={ From 98fb4c7f35c75cd0bb35d8f6c727f96142f0b59d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sun, 10 Jul 2022 11:41:55 +0000 Subject: [PATCH 09/10] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20?= =?UTF-8?q?post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .github/workflows/unittest.yml | 2 +- CONTRIBUTING.rst | 6 ++---- noxfile.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index e5be6ed..5531b01 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ['3.6', '3.7', '3.8', '3.9', '3.10'] + python: ['3.7', '3.8', '3.9', '3.10'] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 22f6382..5f36f12 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -22,7 +22,7 @@ In order to add a feature: documentation. - The feature must work fully on the following CPython versions: - 3.6, 3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows. + 3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows. - The feature must not add unnecessary dependencies (where "unnecessary" is of course subjective, but new dependencies should @@ -221,13 +221,11 @@ Supported Python Versions We support: -- `Python 3.6`_ - `Python 3.7`_ - `Python 3.8`_ - `Python 3.9`_ - `Python 3.10`_ -.. _Python 3.6: https://docs.python.org/3.6/ .. _Python 3.7: https://docs.python.org/3.7/ .. _Python 3.8: https://docs.python.org/3.8/ .. _Python 3.9: https://docs.python.org/3.9/ @@ -239,7 +237,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_. .. _config: https://github.com/googleapis/python-db-dtypes-pandas/blob/main/noxfile.py -We also explicitly decided to support Python 3 beginning with version 3.6. +We also explicitly decided to support Python 3 beginning with version 3.7. Reasons for this include: - Encouraging use of newest versions of Python 3 diff --git a/noxfile.py b/noxfile.py index 25cb1bb..a6ef0a7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -32,7 +32,7 @@ DEFAULT_PYTHON_VERSION = "3.8" -UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] +UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"] UNIT_TEST_STANDARD_DEPENDENCIES = [ "mock", "asyncmock", From abbb8550bd3c483b5abdbc427ed102334e71d1d2 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sun, 10 Jul 2022 11:57:32 +0000 Subject: [PATCH 10/10] update README --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 8ea047c..4288be5 100644 --- a/README.rst +++ b/README.rst @@ -34,11 +34,11 @@ dependencies. Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ -Python >= 3.6 +Python >= 3.7 Unsupported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Python <= 3.5. +Python <= 3.6. Mac/Linux