Skip to content

Commit

Permalink
add workaroud from PR #203
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jan 11, 2022
1 parent 1016721 commit 54cddbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
17 changes: 7 additions & 10 deletions owlbot.py
Expand Up @@ -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)
6 changes: 2 additions & 4 deletions samples/beam/noxfile.py
Expand Up @@ -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
Expand Down

0 comments on commit 54cddbb

Please sign in to comment.