From 6f5ee147fd951cf723304efcf2a747573bd7a213 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Mar 2021 01:35:06 -0700 Subject: [PATCH 1/5] changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. --- bigquery-connection-v1-py.tar.gz | 0 synth.metadata | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 bigquery-connection-v1-py.tar.gz diff --git a/bigquery-connection-v1-py.tar.gz b/bigquery-connection-v1-py.tar.gz new file mode 100644 index 0000000..e69de29 diff --git a/synth.metadata b/synth.metadata index 2afc92e..750194a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-bigquery-connection.git", - "sha": "92b58a3354a2c38aaf6c279525d5f7f471705770" + "sha": "c74e78478fc4f0a3f98a291d92bba455ac87fbc4" } }, { @@ -98,6 +98,7 @@ "CONTRIBUTING.rst", "LICENSE", "MANIFEST.in", + "bigquery-connection-v1-py.tar.gz", "docs/_static/custom.css", "docs/_templates/layout.html", "docs/bigquery_connection_v1/connection_service.rst", From a64a0ca9b49297e784746e1fcc7c2791ee30824c Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Mar 2021 01:35:48 -0700 Subject: [PATCH 2/5] chore(deps): update precommit hook pycqa/flake8 to v3.9.0 [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pycqa/flake8](https://gitlab.com/pycqa/flake8) | repository | minor | `3.8.4` -> `3.9.0` | --- ### Release Notes
pycqa/flake8 ### [`v3.9.0`](https://gitlab.com/pycqa/flake8/compare/3.8.4...3.9.0) [Compare Source](https://gitlab.com/pycqa/flake8/compare/3.8.4...3.9.0)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/synthtool). Source-Author: WhiteSource Renovate Source-Date: Tue Mar 23 17:38:03 2021 +0100 Source-Repo: googleapis/synthtool Source-Sha: f5c5904fb0c6aa3b3730eadf4e5a4485afc65726 Source-Link: https://github.com/googleapis/synthtool/commit/f5c5904fb0c6aa3b3730eadf4e5a4485afc65726 --- .pre-commit-config.yaml | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9024b1..32302e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,6 @@ repos: hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 + rev: 3.9.0 hooks: - id: flake8 diff --git a/synth.metadata b/synth.metadata index 750194a..45a329c 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,14 +19,14 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "79c8dd7ee768292f933012d3a69a5b4676404cda" + "sha": "f5c5904fb0c6aa3b3730eadf4e5a4485afc65726" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "79c8dd7ee768292f933012d3a69a5b4676404cda" + "sha": "f5c5904fb0c6aa3b3730eadf4e5a4485afc65726" } } ], From b0783c8c43c2a646915b583d36114be678a30bd4 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Mar 2021 01:35:48 -0700 Subject: [PATCH 3/5] test(python): use constraints files to check dependency lower bounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use a constraints file when installing dependencies for system and unit tests nox sessions. https://pip.pypa.io/en/stable/user_guide/#constraints-files > Constraints files are requirements files that **only control which version of a requirement is installed, not whether it is installed or not**. Their syntax and contents is nearly identical to Requirements Files. There is one key difference: Including a package in a constraints file does not trigger installation of the package. ``` testing ├── constraints-3.10.txt ├── constraints-3.11.txt ├── constraints-3.6.txt ├── constraints-3.7.txt ├── constraints-3.8.txt └── constraints-3.9.txt ``` Going forward, one constraints file (currently 3.6) will be populated with every library requirement and extra listed in the `setup.py`. The constraints file will pin each requirement to the lower bound. This ensures that library maintainers will see test failures if they forget to update a lower bound on a dependency. See https://github.com/googleapis/python-bigquery/pull/263 for an example Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue Mar 23 10:52:02 2021 -0600 Source-Repo: googleapis/synthtool Source-Sha: 86ed43d4f56e6404d068e62e497029018879c771 Source-Link: https://github.com/googleapis/synthtool/commit/86ed43d4f56e6404d068e62e497029018879c771 --- noxfile.py | 22 ++++++++++++++-------- synth.metadata | 4 ++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/noxfile.py b/noxfile.py index d6d974c..ae8392b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -18,6 +18,7 @@ from __future__ import absolute_import import os +import pathlib import shutil import nox @@ -30,6 +31,8 @@ SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] +CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() + # 'docfx' is excluded since it only needs to run in 'docs-presubmit' nox.options.sessions = [ "unit", @@ -84,13 +87,15 @@ def lint_setup_py(session): def default(session): # Install all test dependencies, then install this package in-place. - session.install("asyncmock", "pytest-asyncio") - session.install( - "mock", "pytest", "pytest-cov", + constraints_path = str( + CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" ) + session.install("asyncmock", "pytest-asyncio", "-c", constraints_path) - session.install("-e", ".") + session.install("mock", "pytest", "pytest-cov", "-c", constraints_path) + + session.install("-e", ".", "-c", constraints_path) # Run py.test against the unit tests. session.run( @@ -117,6 +122,9 @@ def unit(session): @nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS) def system(session): """Run the system test suite.""" + constraints_path = str( + CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" + ) system_test_path = os.path.join("tests", "system.py") system_test_folder_path = os.path.join("tests", "system") @@ -141,10 +149,8 @@ def system(session): # Install all test dependencies, then install this package into the # virtualenv's dist-packages. - session.install( - "mock", "pytest", "google-cloud-testutils", - ) - session.install("-e", ".") + session.install("mock", "pytest", "google-cloud-testutils", "-c", constraints_path) + session.install("-e", ".", "-c", constraints_path) # Run py.test against the system tests. if system_test_exists: diff --git a/synth.metadata b/synth.metadata index 45a329c..211dc26 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,14 +19,14 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f5c5904fb0c6aa3b3730eadf4e5a4485afc65726" + "sha": "86ed43d4f56e6404d068e62e497029018879c771" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f5c5904fb0c6aa3b3730eadf4e5a4485afc65726" + "sha": "86ed43d4f56e6404d068e62e497029018879c771" } } ], From 8e625147758b3cf7320528e92378af46befadb67 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Fri, 2 Apr 2021 16:10:27 +0000 Subject: [PATCH 4/5] fix: add version range for grpc-google-iam-v1 --- setup.py | 6 ++---- testing/constraints-3.6.txt | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 29523ec..9ec98f1 100644 --- a/setup.py +++ b/setup.py @@ -40,13 +40,11 @@ platforms="Posix; MacOS X; Windows", include_package_data=True, install_requires=( - "google-api-core >= 1.21.0, < 2.0.0dev", + "google-api-core >= 1.22.2, < 2.0.0dev", "proto-plus >= 1.4.0", - "grpc-google-iam-v1", - "libcst >= 0.2.5", + "grpc-google-iam-v1 >= 0.12.3, < 0.13.0dev", ), python_requires=">=3.6", - scripts=["scripts/fixup_keywords.py"], classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index 2e33cbc..237151f 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -5,7 +5,6 @@ # # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", # Then this file should have foo==1.14.0 -google-api-core==1.21.0 +google-api-core==1.22.2 proto-plus==1.4.0 -grpc-google-iam-v1==0.9.0 -libcst==0.2.5 \ No newline at end of file +grpc-google-iam-v1==0.12.3 From 2fcbcdebc808494b68fad1df2e98ccf15d8dc472 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Fri, 2 Apr 2021 16:11:41 +0000 Subject: [PATCH 5/5] chore: exclude tarfile --- bigquery-connection-v1-py.tar.gz | 0 synth.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 bigquery-connection-v1-py.tar.gz diff --git a/bigquery-connection-v1-py.tar.gz b/bigquery-connection-v1-py.tar.gz deleted file mode 100644 index e69de29..0000000 diff --git a/synth.py b/synth.py index d773546..5c0d206 100644 --- a/synth.py +++ b/synth.py @@ -31,7 +31,7 @@ bazel_target=f"//google/cloud/bigquery/connection/v1:bigquery-connection-v1-py" ) -s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst"]) +s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst", "*.tar.gz"]) # ---------------------------------------------------------------------------- # Add templated files