Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

chore: update coverage and use latest sphinx #158

Merged
merged 21 commits into from
Apr 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a74215c
changes without context
yoshi-automation Apr 3, 2021
c8ea13e
chore(python): skip docfx in main presubmit
yoshi-automation Apr 3, 2021
c690d3a
chore: add missing quotation mark
yoshi-automation Apr 3, 2021
511e652
chore: add 3.9 to noxfile template
yoshi-automation Apr 3, 2021
5d96885
build(python): make `NOX_SESSION` optional
yoshi-automation Apr 3, 2021
d3fc93b
chore: Add header checker config to python library synth
yoshi-automation Apr 3, 2021
826763b
chore: add noxfile parameters for extra dependencies
yoshi-automation Apr 3, 2021
0c9f5b3
build: migrate to flakybot
yoshi-automation Apr 3, 2021
c465f2a
chore(python): include py.typed files in release
yoshi-automation Apr 3, 2021
8b80ab0
docs: update python contributing guide
yoshi-automation Apr 3, 2021
af552c8
build(python): enable flakybot on library unit and system tests
yoshi-automation Apr 3, 2021
228414b
test: install pyopenssl for mtls testing
yoshi-automation Apr 3, 2021
5cf694f
chore: add pre-commit-config to renovate ignore paths
yoshi-automation Apr 3, 2021
a378910
build(python): fail nox sessions if a python version is missing
yoshi-automation Apr 3, 2021
a7c52d8
chore(python): add kokoro configs for periodic builds against head
yoshi-automation Apr 3, 2021
6927edf
chore(deps): update precommit hook pycqa/flake8 to v3.9.0
yoshi-automation Apr 3, 2021
02ca922
test(python): use constraints files to check dependency lower bounds
yoshi-automation Apr 3, 2021
818f840
build(python): update docfx job to use new plugin
yoshi-automation Apr 3, 2021
6007931
chore: regen
busunkim96 Apr 5, 2021
eeceee6
Merge branch 'master' into autosynth-synthtool
busunkim96 Apr 5, 2021
0526f48
fix: rename `policy_` to `policy`
busunkim96 Apr 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def cover(session):
test runs (not system test runs), and then erases coverage data.
"""
session.install("coverage", "pytest-cov")
session.run("coverage", "report", "--show-missing", "--fail-under=98")
session.run("coverage", "report", "--show-missing", "--fail-under=100")

session.run("coverage", "erase")

Expand All @@ -189,7 +189,7 @@ def docs(session):
"""Build the docs for this library."""

session.install("-e", ".")
session.install("sphinx<3.0.0", "alabaster", "recommonmark")
session.install("sphinx", "alabaster", "recommonmark")

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
Expand All @@ -211,9 +211,7 @@ def docfx(session):
"""Build the docfx yaml files for this library."""

session.install("-e", ".")
session.install(
"sphinx<3.0.0", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
)
session.install("sphinx", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml")

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
Expand Down
10 changes: 5 additions & 5 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
"git": {
"name": ".",
"remote": "git@github.com:googleapis/python-dataproc.git",
"sha": "398cdb59ee69a26133a4d76680cf881f2906bbca"
"sha": "eeceee6fec75370b996119616928426c5bfc12bc"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "8ff7d794576311d3d68d4df2ac6da93bbfcd7476",
"internalRef": "366472163"
"sha": "fa7915f8d43926de5effb815129a274579fa84df",
"internalRef": "366869955"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "ff39353f34a36e7643b86e97724e4027ab466dc6"
"sha": "bf04d88353da12e9326236164dcb3150dfbfcff8"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "ff39353f34a36e7643b86e97724e4027ab466dc6"
"sha": "bf04d88353da12e9326236164dcb3150dfbfcff8"
}
}
],
Expand Down
6 changes: 3 additions & 3 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
templated_files = common.py_library(
samples=True, # set to True only if there are samples
microgenerator=True,
cov_level=98,
)
s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file

# Rename `policy_` to `policy` to avoid breaking change in a GA library
# Only replace if a non-alphanumeric (\W) character follows `policy_`
s.replace(["google/**/*.py", "scripts/fixup*.py", "tests/unit/**/*.py"], "policy_(\W)", "policy\g<1>")
# ----------------------------------------------------------------------------
# Samples templates
# ----------------------------------------------------------------------------
python.py_samples(skip_readmes=True)

# TODO(busunkim): Use latest sphinx after microgenerator transition
s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"')

# Temporarily disable warnings due to
# https://github.com/googleapis/gapic-generator-python/issues/525
Expand Down