Skip to content

Commit

Permalink
chore(python): Block pushing non-cloud libraries to Cloud RAD (#360)
Browse files Browse the repository at this point in the history
* chore(python): omit google/__init__.py in coverage

Source-Link: googleapis/synthtool@694118b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ec49167c606648a063d1222220b48119c912562849a0528f35bfb592a9f72737

* fix replacement in owlbot.py

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Oct 26, 2021
1 parent b3a665d commit 392c152
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Expand Up @@ -18,6 +18,7 @@
[run]
branch = True
omit =
google/__init__.py
sqlalchemy_bigquery/requirements.py

[report]
Expand Down
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:58f73ba196b5414782605236dd0712a73541b44ff2ff4d3a36ec41092dd6fa5b
digest: sha256:ec49167c606648a063d1222220b48119c912562849a0528f35bfb592a9f72737
4 changes: 3 additions & 1 deletion .kokoro/docs/common.cfg
Expand Up @@ -30,7 +30,9 @@ env_vars: {

env_vars: {
key: "V2_STAGING_BUCKET"
value: "docs-staging-v2"
# Push non-cloud library docs to `docs-staging-v2-staging` instead of the
# Cloud RAD bucket `docs-staging-v2`
value: "docs-staging-v2-staging"
}

# It will upload the docker image after successful builds.
Expand Down
2 changes: 1 addition & 1 deletion owlbot.py
Expand Up @@ -63,7 +63,7 @@
)

s.replace(
["noxfile.py"], "google/cloud", "sqlalchemy_bigquery",
["noxfile.py"], "--cov=google", "--cov=sqlalchemy_bigquery",
)

def place_before(path, text, *before_text, escape=None):
Expand Down

0 comments on commit 392c152

Please sign in to comment.