From 54cddbb5e2c3c4d8e2716aba8f4a115b84ff2a8c Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 11 Jan 2022 22:09:45 +0000 Subject: [PATCH] add workaroud from PR #203 --- owlbot.py | 17 +++++++---------- samples/beam/noxfile.py | 6 ++---- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/owlbot.py b/owlbot.py index 947384337..6ab6579e1 100644 --- a/owlbot.py +++ b/owlbot.py @@ -219,16 +219,13 @@ def lint_setup_py(session): python.py_samples(skip_readmes=True) -# Note: python-docs-samples is not yet using 'main': -#s.replace( -# "samples/**/*.md", -# r"python-docs-samples/blob/master/", -# "python-docs-samples/blob/main/", -#) s.replace( - "samples/**/*.md", - r"google-cloud-python/blob/master/", - "google-cloud-python/blob/main/", -) + "samples/beam/noxfile.py", + """INSTALL_LIBRARY_FROM_SOURCE \= os.environ.get\("INSTALL_LIBRARY_FROM_SOURCE", False\) in \( + "True", + "true", +\)""", + """# todo(kolea2): temporary workaround to install pinned dep version +INSTALL_LIBRARY_FROM_SOURCE = False""") s.shell.run(["nox", "-s", "blacken"], hide_output=False) diff --git a/samples/beam/noxfile.py b/samples/beam/noxfile.py index 93a9122cc..d7567dee9 100644 --- a/samples/beam/noxfile.py +++ b/samples/beam/noxfile.py @@ -94,10 +94,8 @@ def get_pytest_env_vars() -> Dict[str, str]: TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( - "True", - "true", -) +# todo(kolea2): temporary workaround to install pinned dep version +INSTALL_LIBRARY_FROM_SOURCE = False # Error if a python version is missing nox.options.error_on_missing_interpreters = True