Skip to content

Commit ff6d5ae

Browse files
port the rest of the scripts/docs over to the main branch
1 parent 35df3e6 commit ff6d5ae

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

CHANGELOG.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Changelog
44

55
The pytest CHANGELOG is located `here <https://docs.pytest.org/en/stable/changelog.html>`__.
66

7-
The source document can be found at: https://github.com/pytest-dev/pytest/blob/master/doc/en/changelog.rst
7+
The source document can be found at: https://github.com/pytest-dev/pytest/blob/main/doc/en/changelog.rst

CONTRIBUTING.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Here is a simple overview, with pytest-specific bits:
234234

235235
$ git clone [email protected]:YOUR_GITHUB_USERNAME/pytest.git
236236
$ cd pytest
237-
# now, create your own branch off "master":
237+
# now, create your own branch off "main":
238238

239239
$ git checkout -b your-bugfix-branch-name main
240240

@@ -387,15 +387,15 @@ Suppose for example that the latest release was 1.2.3, and you want to include
387387
a bug fix in 1.2.4 (check https://github.com/pytest-dev/pytest/releases for the
388388
actual latest release). The procedure for this is:
389389

390-
#. First, make sure the bug is fixed the ``master`` branch, with a regular pull
390+
#. First, make sure the bug is fixed the ``main`` branch, with a regular pull
391391
request, as described above. An exception to this is if the bug fix is not
392-
applicable to ``master`` anymore.
392+
applicable to ``main`` anymore.
393393

394-
#. ``git checkout origin/1.2.x -b backport-XXXX`` # use the master PR number here
394+
#. ``git checkout origin/1.2.x -b backport-XXXX`` # use the main PR number here
395395

396396
#. Locate the merge commit on the PR, in the *merged* message, for example:
397397

398-
nicoddemus merged commit 0f8b462 into pytest-dev:master
398+
nicoddemus merged commit 0f8b462 into pytest-dev:main
399399

400400
#. ``git cherry-pick -x -m1 REVISION`` # use the revision you found above (``0f8b462``).
401401

@@ -408,7 +408,7 @@ actual latest release). The procedure for this is:
408408
Who does the backporting
409409
~~~~~~~~~~~~~~~~~~~~~~~~
410410

411-
As mentioned above, bugs should first be fixed on ``master`` (except in rare occasions
411+
As mentioned above, bugs should first be fixed on ``main`` (except in rare occasions
412412
that a bug only happens in a previous release). So who should do the backport procedure described
413413
above?
414414

@@ -417,8 +417,8 @@ above?
417417
2. However, often the merge is done by another maintainer, in which case it is nice of them to
418418
do the backport procedure if they have the time.
419419
3. For bugs submitted by non-maintainers, it is expected that a core developer will to do
420-
the backport, normally the one that merged the PR on ``master``.
421-
4. If a non-maintainers notices a bug which is fixed on ``master`` but has not been backported
420+
the backport, normally the one that merged the PR on ``main``.
421+
4. If a non-maintainers notices a bug which is fixed on ``main`` but has not been backported
422422
(due to maintainers forgetting to apply the *needs backport* label, or just plain missing it),
423423
they are also welcome to open a PR with the backport. The procedure is simple and really
424424
helps with the maintenance of the project.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
:target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Amain
2525

2626
.. image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest/main.svg
27-
:target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/master
27+
:target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/main
2828
:alt: pre-commit.ci status
2929

3030
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg

RELEASING.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ and notify it as a comment in the issue.
3232
Minor releases
3333
^^^^^^^^^^^^^^
3434

35-
1. Create a new maintenance branch from ``master``::
35+
1. Create a new maintenance branch from ``main``::
3636

3737
git fetch --all
38-
git branch 5.2.x upstream/master
38+
git branch 5.2.x upstream/main
3939
git push upstream 5.2.x
4040

4141
2. Open a new issue and add this comment to the body::
@@ -48,10 +48,10 @@ notify it as a comment in the issue.
4848
Major and release candidates
4949
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5050

51-
1. Create a new maintenance branch from ``master``::
51+
1. Create a new maintenance branch from ``main``::
5252

5353
git fetch --all
54-
git branch 6.0.x upstream/master
54+
git branch 6.0.x upstream/main
5555
git push upstream 6.0.x
5656

5757
2. For a **major release**, open a new issue and add this comment in the body::
@@ -66,7 +66,7 @@ The automated workflow will publish a PR for a branch ``release-6.0.0`` and
6666
notify it as a comment in the issue.
6767

6868
At this point on, this follows the same workflow as other maintenance branches: bug-fixes are merged
69-
into ``master`` and ported back to the maintenance branch, even for release candidates.
69+
into ``main`` and ported back to the maintenance branch, even for release candidates.
7070

7171
**A note about release candidates**
7272

@@ -83,7 +83,7 @@ to be executed on that platform.
8383
To release a version ``MAJOR.MINOR.PATCH``, follow these steps:
8484

8585
#. For major and minor releases, create a new branch ``MAJOR.MINOR.x`` from
86-
``upstream/master`` and push it to ``upstream``.
86+
``upstream/main`` and push it to ``upstream``.
8787

8888
#. Create a branch ``release-MAJOR.MINOR.PATCH`` from the ``MAJOR.MINOR.x`` branch.
8989

@@ -114,18 +114,18 @@ Both automatic and manual processes described above follow the same steps from t
114114

115115
#. Merge the PR.
116116

117-
#. Cherry-pick the CHANGELOG / announce files to the ``master`` branch::
117+
#. Cherry-pick the CHANGELOG / announce files to the ``main`` branch::
118118

119119
git fetch --all --prune
120-
git checkout origin/master -b cherry-pick-release
120+
git checkout origin/main -b cherry-pick-release
121121
git cherry-pick -x -m1 upstream/MAJOR.MINOR.x
122122

123123
#. Open a PR for ``cherry-pick-release`` and merge it once CI passes. No need to wait for approvals if there were no conflicts on the previous step.
124124

125-
#. For major and minor releases, tag the release cherry-pick merge commit in master with
125+
#. For major and minor releases, tag the release cherry-pick merge commit in main with
126126
a dev tag for the next feature release::
127127

128-
git checkout master
128+
git checkout main
129129
git pull
130130
git tag MAJOR.{MINOR+1}.0.dev0
131131
git push [email protected]:pytest-dev/pytest.git MAJOR.{MINOR+1}.0.dev0

scripts/prepare-release-pr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
tab of the repository.
44
55
The user will need to enter the base branch to start the release from (for example
6-
``6.1.x`` or ``master``) and if it should be a major release.
6+
``6.1.x`` or ``main``) and if it should be a major release.
77
88
The appropriate version will be obtained based on the given branch automatically.
99

scripts/release-on-comment.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
in issues.
44
55
This script is started by the `release-on-comment.yml` workflow, which always executes on
6-
`master` and is triggered by two comment related events:
6+
`main` and is triggered by two comment related events:
77
88
* https://help.github.com/en/actions/reference/events-that-trigger-workflows#issue-comment-event-issue_comment
99
* https://help.github.com/en/actions/reference/events-that-trigger-workflows#issues-event-issues
@@ -16,8 +16,8 @@
1616
1717
Then the appropriate version will be obtained based on the given branch name:
1818
19-
* a major release from master if "major" appears in the phrase in that position
20-
* a feature or bug fix release from master (based if there are features in the current changelog
19+
* a major release from main if "major" appears in the phrase in that position
20+
* a feature or bug fix release from main (based if there are features in the current changelog
2121
folder)
2222
* a bug fix from a maintenance branch
2323
@@ -230,11 +230,11 @@ def find_next_version(base_branch: str, is_major: bool) -> str:
230230
breaking = list(changelog.glob("*.breaking.rst"))
231231
is_feature_release = features or breaking
232232

233-
if is_feature_release and base_branch != "master":
233+
if is_feature_release and base_branch != "main":
234234
msg = dedent(
235235
f"""
236236
Found features or breaking changes in `{base_branch}`, and feature releases can only be
237-
created from `master`:
237+
created from `main`:
238238
"""
239239
)
240240
msg += "\n".join(f"* `{x.name}`" for x in sorted(features + breaking))

src/_pytest/assertion/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def undo() -> None:
104104

105105
def pytest_collection(session: "Session") -> None:
106106
# This hook is only called when test modules are collected
107-
# so for example not in the master process of pytest-xdist
107+
# so for example not in the managing process of pytest-xdist
108108
# (which does not collect test modules).
109109
assertstate = session.config._store.get(assertstate_key, None)
110110
if assertstate:

0 commit comments

Comments
 (0)