Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Aug 14, 2024
1 parent 0f26a6c commit 4cc54fa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
s._tracked_paths.add("googleapis")

# Create folders for dependencies of the protos that we want to compile
os.makedirs("google/api", exist_ok=True)
os.makedirs("google/iam/v1", exist_ok=True)
os.makedirs("google/rpc/context", exist_ok=True)
os.makedirs("google/type", exist_ok=True)
common_apis = ["google/api","google/iam/v1","google/rpc/context","google/type"]
_ = [os.makedirs(dir, exist_ok=True) for dir in common_apis]

# Copy dependencies of the protos that we want to compile from googleapis
s.copy("googleapis/google/api/*.proto", "google/api")
Expand Down Expand Up @@ -74,10 +72,7 @@

# Clean up the folders for dependencies which are shipped via `googleapis-common-protos`
# We should not ship them via this repository
shutil.rmtree('google/api')
shutil.rmtree("google/iam")
shutil.rmtree('google/rpc')
shutil.rmtree("google/type")
_ = [shutil.rmtree(dir) for dir in common_apis]

s.shell.run(["nox", "-s", "blacken"], hide_output=False)

Expand Down

0 comments on commit 4cc54fa

Please sign in to comment.