Skip to content

Commit

Permalink
chore(python): rename default branch to main (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored Sep 1, 2021
1 parent cc47ca0 commit a5d59b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 43 deletions.
6 changes: 3 additions & 3 deletions packages/google-cloud-python-speech/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ Coding Style
export GOOGLE_CLOUD_TESTING_BRANCH="main"

By doing this, you are specifying the location of the most up-to-date
version of ``python-speech``. The the suggested remote name ``upstream``
should point to the official ``googleapis`` checkout and the
the branch should be the main branch on that remote (``main``).
version of ``python-speech``. The
remote name ``upstream`` should point to the official ``googleapis``
checkout and the branch should be the default branch on that remote (``main``).

- This repository contains configuration for the
`pre-commit <https://pre-commit.com/>`__ tool, which automates checking
Expand Down
16 changes: 5 additions & 11 deletions packages/google-cloud-python-speech/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = "index"
# The root toctree document.
root_doc = "index"

# General information about the project.
project = "google-cloud-speech"
Expand Down Expand Up @@ -280,7 +280,7 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(
master_doc,
root_doc,
"google-cloud-speech.tex",
"google-cloud-speech Documentation",
author,
Expand Down Expand Up @@ -314,13 +314,7 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(
master_doc,
"google-cloud-speech",
"google-cloud-speech Documentation",
[author],
1,
)
(root_doc, "google-cloud-speech", "google-cloud-speech Documentation", [author], 1,)
]

# If true, show URL addresses after external links.
Expand All @@ -334,7 +328,7 @@
# dir menu entry, description, category)
texinfo_documents = [
(
master_doc,
root_doc,
"google-cloud-speech",
"google-cloud-speech Documentation",
author,
Expand Down
29 changes: 0 additions & 29 deletions packages/google-cloud-python-speech/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,32 +69,3 @@ class SpeechClient(SpeechHelpers, SpeechClient):
python.py_samples(skip_readmes=True)

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

# ----------------------------------------------------------------------------
# Main Branch migration
# ----------------------------------------------------------------------------

s.replace(
"*.rst",
"master",
"main"
)

s.replace(
"*.rst",
"google-cloud-python/blob/main",
"google-cloud-python/blob/master"
)

s.replace(
"CONTRIBUTING.rst",
"kubernetes/community/blob/main",
"kubernetes/community/blob/master"
)

s.replace(
".kokoro/*",
"master",
"main"
)

0 comments on commit a5d59b9

Please sign in to comment.