Skip to content

Commit fcca0be

Browse files
chore(python): rename default branch to main (#243)
1 parent cfb74c8 commit fcca0be

File tree

4 files changed

+9
-41
lines changed

4 files changed

+9
-41
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/repo-automation-bots/owlbot-python:latest
3-
digest: sha256:1456ea2b3b523ccff5e13030acef56d1de28f21249c62aa0f196265880338fa7
3+
digest: sha256:0ffe3bdd6c7159692df5f7744da74e5ef19966288a6bf76023e8e04e0c424d7d

packages/google-cloud-translate/CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ Coding Style
113113
export GOOGLE_CLOUD_TESTING_BRANCH="main"
114114

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

120120
- This repository contains configuration for the
121121
`pre-commit <https://pre-commit.com/>`__ tool, which automates checking

packages/google-cloud-translate/docs/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
# The encoding of source files.
7777
# source_encoding = 'utf-8-sig'
7878

79-
# The master toctree document.
80-
master_doc = "index"
79+
# The root toctree document.
80+
root_doc = "index"
8181

8282
# General information about the project.
8383
project = "google-cloud-translate"
@@ -280,7 +280,7 @@
280280
# author, documentclass [howto, manual, or own class]).
281281
latex_documents = [
282282
(
283-
master_doc,
283+
root_doc,
284284
"google-cloud-translate.tex",
285285
"google-cloud-translate Documentation",
286286
author,
@@ -315,7 +315,7 @@
315315
# (source start file, name, description, authors, manual section).
316316
man_pages = [
317317
(
318-
master_doc,
318+
root_doc,
319319
"google-cloud-translate",
320320
"google-cloud-translate Documentation",
321321
[author],
@@ -334,7 +334,7 @@
334334
# dir menu entry, description, category)
335335
texinfo_documents = [
336336
(
337-
master_doc,
337+
root_doc,
338338
"google-cloud-translate",
339339
"google-cloud-translate Documentation",
340340
author,

packages/google-cloud-translate/owlbot.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -55,42 +55,10 @@
5555
)
5656
s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file
5757

58-
# Correct namespace in noxfile
59-
s.replace("noxfile.py", "google.cloud.translation", "google.cloud.translate")
60-
6158
# ----------------------------------------------------------------------------
6259
# Samples templates
6360
# ----------------------------------------------------------------------------
6461

6562
python.py_samples()
6663

6764
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
68-
69-
# ----------------------------------------------------------------------------
70-
# Main Branch migration
71-
# ----------------------------------------------------------------------------
72-
73-
s.replace(
74-
"*.rst",
75-
"master",
76-
"main"
77-
)
78-
79-
s.replace(
80-
"*.rst",
81-
"google-cloud-python/blob/main",
82-
"google-cloud-python/blob/master"
83-
)
84-
85-
s.replace(
86-
"CONTRIBUTING.rst",
87-
"kubernetes/community/blob/main",
88-
"kubernetes/community/blob/master"
89-
)
90-
91-
s.replace(
92-
".kokoro/*",
93-
"master",
94-
"main"
95-
)
96-

0 commit comments

Comments
 (0)