Skip to content

Commit 7ec0fa5

Browse files
authored
Merge pull request #9743 from pradyunsg/docs/rename-branch
2 parents bcbfbaa + 1db5ce0 commit 7ec0fa5

File tree

8 files changed

+38
-38
lines changed

8 files changed

+38
-38
lines changed

.github/ISSUE_TEMPLATE/resolver-failure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ labels: ["K: UX", "K: crash", "C: new resolver", "C: dependency resolution"]
77
<!--
88
Please provide as much information as you can about your failure, so that we can understand the root cause.
99
10-
Try if your issue has been fixed in the in-development version of pip. Use the following command to install pip from master:
10+
Try if your issue has been fixed in the in-development version of pip. Use the following command to install pip from the current development branch:
1111
12-
python -m pip install -U "pip @ https://github.com/pypa/pip/archive/master.zip"
12+
python -m pip install -U "pip @ https://github.com/pypa/pip/archive/main.zip"
1313
-->
1414

1515
**What did you want to do?**

docs/html/copyright.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Copyright
66

77
pip and this documentation is:
88

9-
Copyright © 2008-2020 The pip developers (see `AUTHORS.txt <https://github.com/pypa/pip/blob/master/AUTHORS.txt>`_ file). All rights reserved.
9+
Copyright © 2008-2020 The pip developers (see `AUTHORS.txt <https://github.com/pypa/pip/blob/main/AUTHORS.txt>`_ file). All rights reserved.

docs/html/development/architecture/anatomy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ Within ``src/``:
105105

106106
.. _`tracking issue`: https://github.com/pypa/pip/issues/6831
107107
.. _GitHub repository: https://github.com/pypa/pip/
108-
.. _tox.ini: https://github.com/pypa/pip/blob/master/tox.ini
108+
.. _tox.ini: https://github.com/pypa/pip/blob/main/tox.ini
109109
.. _improving the pip dependency resolver: https://github.com/pypa/pip/issues/988

docs/html/development/contributing.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We have an in-progress guide to the
1111
Submitting Pull Requests
1212
========================
1313

14-
Submit pull requests against the ``master`` branch, providing a good
14+
Submit pull requests against the ``main`` branch, providing a good
1515
description of what you're doing and why. You must have legal permission to
1616
distribute any code you contribute to pip and it must be available under the
1717
MIT License.
@@ -39,7 +39,7 @@ separately, as a "formatting cleanup" PR, if needed.
3939
Automated Testing
4040
=================
4141

42-
All pull requests and merges to 'master' branch are tested using `Travis CI`_,
42+
All pull requests and merges to 'main' branch are tested using `Travis CI`_,
4343
`Azure Pipelines`_ and `GitHub Actions`_ based on our `.travis.yml`_,
4444
`.azure-pipelines`_ and `.github/workflows`_ files. More details about pip's
4545
Continuous Integration can be found in the `CI Documentation`_
@@ -131,8 +131,8 @@ updating deprecation policy, etc.
131131
Updating your branch
132132
====================
133133

134-
As you work, you might need to update your local master branch up-to-date with
135-
the ``master`` branch in the main pip repository, which moves forward as the
134+
As you work, you might need to update your local main branch up-to-date with
135+
the ``main`` branch in the main pip repository, which moves forward as the
136136
maintainers merge pull requests. Most people working on the project use the
137137
following workflow.
138138

@@ -160,24 +160,24 @@ First, fetch the latest changes from the main pip repository, ``upstream``:
160160
161161
git fetch upstream
162162
163-
Then, check out your local ``master`` branch, and rebase the changes on top of
163+
Then, check out your local ``main`` branch, and rebase the changes on top of
164164
it:
165165

166166
.. code-block:: console
167167
168-
git checkout master
169-
git rebase upstream/master
168+
git checkout main
169+
git rebase upstream/main
170170
171171
At this point, you might have to `resolve merge conflicts`_. Once this is done,
172-
push the updates you have just made to your local ``master`` branch to your
172+
push the updates you have just made to your local ``main`` branch to your
173173
``origin`` repository on GitHub:
174174

175175
.. code-block:: console
176176
177-
git checkout master
178-
git push origin master
177+
git checkout main
178+
git push origin main
179179
180-
Now your local ``master`` branch and the ``master`` branch in your ``origin``
180+
Now your local ``main`` branch and the ``main`` branch in your ``origin``
181181
repo have been updated with the most recent changes from the main pip
182182
repository.
183183

@@ -187,10 +187,10 @@ To keep your branches updated, the process is similar:
187187
188188
git checkout awesome-feature
189189
git fetch upstream
190-
git rebase upstream/master
190+
git rebase upstream/main
191191
192192
Now your branch has been updated with the latest changes from the
193-
``master`` branch on the upstream pip repository.
193+
``main`` branch on the upstream pip repository.
194194

195195
It's good practice to back up your branches by pushing them to your
196196
``origin`` on GitHub as you are working on them. To push a branch,
@@ -230,7 +230,7 @@ If you get an error message like this:
230230
231231
Try force-pushing your branch with ``push -f``.
232232

233-
The ``master`` branch in the main pip repository gets updated frequently, so
233+
The ``main`` branch in the main pip repository gets updated frequently, so
234234
you might have to update your branch at least once while you are working on it.
235235

236236
Thank you for your contribution!
@@ -267,9 +267,9 @@ will initiate a vote among the existing maintainers.
267267
.. _`Travis CI`: https://travis-ci.org/
268268
.. _`Azure Pipelines`: https://azure.microsoft.com/en-in/services/devops/pipelines/
269269
.. _`GitHub Actions`: https://github.com/features/actions
270-
.. _`.travis.yml`: https://github.com/pypa/pip/blob/master/.travis.yml
271-
.. _`.azure-pipelines`: https://github.com/pypa/pip/blob/master/.azure-pipelines
272-
.. _`.github/workflows`: https://github.com/pypa/pip/blob/master/.github/workflows
270+
.. _`.travis.yml`: https://github.com/pypa/pip/blob/main/.travis.yml
271+
.. _`.azure-pipelines`: https://github.com/pypa/pip/blob/main/.azure-pipelines
272+
.. _`.github/workflows`: https://github.com/pypa/pip/blob/main/.github/workflows
273273
.. _`CI Documentation`: https://pip.pypa.io/en/latest/development/ci/
274274
.. _`towncrier`: https://pypi.org/project/towncrier/
275275
.. _`Testing the next-gen pip dependency resolver`: https://pradyunsg.me/blog/2020/03/27/pip-resolver-testing/

docs/html/development/issue-triage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Examples:
229229
(`link <https://github.com/pypa/pip/issues/6498#issuecomment-513501112>`__)
230230
- get-pip on system with no ``/usr/lib64``
231231
(`link <https://github.com/pypa/pip/issues/5379#issuecomment-515270576>`__)
232-
- reproducing with ``pip`` from master branch
232+
- reproducing with ``pip`` from current development branch
233233
(`link <https://github.com/pypa/pip/issues/6707#issue-467770959>`__)
234234

235235

@@ -285,7 +285,7 @@ An issue may be considered resolved and closed when:
285285
- already tracked by another issue
286286

287287
- A project-specific issue has been identified and the issue no
288-
longer occurs as of the latest commit on the master branch.
288+
longer occurs as of the latest commit on the main branch.
289289

290290
- An enhancement or feature request no longer has a proponent and the maintainers
291291
don't think it's worth keeping open.

docs/html/development/release-process.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Release process
77
Release Cadence
88
===============
99

10-
The pip project has a release cadence of releasing whatever is on ``master``
10+
The pip project has a release cadence of releasing whatever is on ``main``
1111
every 3 months. This gives users a predictable pattern for when releases
1212
are going to happen and prevents locking up improvements for fixes for long
1313
periods of time, while still preventing massively fracturing the user base
@@ -22,8 +22,8 @@ The release manager may, at their discretion, choose whether or not there
2222
will be a pre-release period for a release, and if there is may extend that
2323
period into the next month if needed.
2424

25-
Because releases are made direct from the ``master`` branch, it is essential
26-
that ``master`` is always in a releasable state. It is acceptable to merge
25+
Because releases are made direct from the ``main`` branch, it is essential
26+
that ``main`` is always in a releasable state. It is acceptable to merge
2727
PRs that partially implement a new feature, but only if the partially
2828
implemented version is usable in that state (for example, with reduced
2929
functionality or disabled by default). In the case where a merged PR is found
@@ -116,13 +116,13 @@ Release Process
116116
Creating a new release
117117
----------------------
118118

119-
#. Checkout the current pip ``master`` branch.
119+
#. Checkout the current pip ``main`` branch.
120120
#. Ensure you have the latest ``nox`` installed.
121121
#. Prepare for release using ``nox -s prepare-release -- YY.N``.
122122
This will update the relevant files and tag the correct commit.
123123
#. Build the release artifacts using ``nox -s build-release -- YY.N``.
124124
This will checkout the tag, generate the distribution files to be
125-
uploaded and checkout the master branch again.
125+
uploaded and checkout the main branch again.
126126
#. Upload the release to PyPI using ``nox -s upload-release -- YY.N``.
127127
#. Push all of the changes including the tag.
128128
#. Regenerate the ``get-pip.py`` script in the `get-pip repository`_ (as
@@ -155,20 +155,20 @@ Creating a bug-fix release
155155

156156
Sometimes we need to release a bugfix release of the form ``YY.N.Z+1``. In
157157
order to create one of these the changes should already be merged into the
158-
``master`` branch.
158+
``main`` branch.
159159

160160
#. Create a new ``release/YY.N.Z+1`` branch off of the ``YY.N`` tag using the
161161
command ``git checkout -b release/YY.N.Z+1 YY.N``.
162-
#. Cherry pick the fixed commits off of the ``master`` branch, fixing any
162+
#. Cherry pick the fixed commits off of the ``main`` branch, fixing any
163163
conflicts.
164164
#. Run ``nox -s prepare-release -- YY.N.Z+1``.
165-
#. Merge master into your release branch and drop the news files that have been
165+
#. Merge main into your release branch and drop the news files that have been
166166
included in your release (otherwise they would also appear in the ``YY.N+1``
167167
changelog)
168168
#. Push the ``release/YY.N.Z+1`` branch to github and submit a PR for it against
169-
the ``master`` branch and wait for the tests to run.
170-
#. Once tests run, merge the ``release/YY.N.Z+1`` branch into master, and follow
171-
the above release process starting with step 4.
169+
the ``main`` branch and wait for the tests to run.
170+
#. Once tests run, merge the ``release/YY.N.Z+1`` branch into ``main``, and
171+
follow the above release process starting with step 4.
172172

173173
.. _`get-pip repository`: https://github.com/pypa/get-pip
174174
.. _`psf-salt repository`: https://github.com/python/psf-salt

docs/html/reference/pip_install.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Here are the supported forms::
448448

449449
Passing a branch name, a commit hash, a tag name or a git ref is possible like so::
450450

451-
[-e] git+https://git.example.com/MyProject.git@master#egg=MyProject
451+
[-e] git+https://git.example.com/MyProject.git@main#egg=MyProject
452452
[-e] git+https://git.example.com/[email protected]#egg=MyProject
453453
[-e] git+https://git.example.com/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject
454454
[-e] git+https://git.example.com/MyProject.git@refs/pull/123/head#egg=MyProject
@@ -1062,7 +1062,7 @@ Examples
10621062
.. code-block:: shell
10631063
10641064
python -m pip install SomePackage[PDF]
1065-
python -m pip install "SomePackage[PDF] @ git+https://git.repo/SomePackage@master#subdirectory=subdir_path"
1065+
python -m pip install "SomePackage[PDF] @ git+https://git.repo/SomePackage@main#subdirectory=subdir_path"
10661066
python -m pip install .[PDF] # project in current directory
10671067
python -m pip install SomePackage[PDF]==3.0
10681068
python -m pip install SomePackage[PDF,EPUB] # multiple extras
@@ -1072,7 +1072,7 @@ Examples
10721072
.. code-block:: shell
10731073
10741074
py -m pip install SomePackage[PDF]
1075-
py -m pip install "SomePackage[PDF] @ git+https://git.repo/SomePackage@master#subdirectory=subdir_path"
1075+
py -m pip install "SomePackage[PDF] @ git+https://git.repo/SomePackage@main#subdirectory=subdir_path"
10761076
py -m pip install .[PDF] # project in current directory
10771077
py -m pip install SomePackage[PDF]==3.0
10781078
py -m pip install SomePackage[PDF,EPUB] # multiple extras

docs/html/user_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,6 @@ announcements on the `low-traffic packaging announcements list`_ and
18871887
.. _low-traffic packaging announcements list: https://mail.python.org/mailman3/lists/pypi-announce.python.org/
18881888
.. _our survey on upgrades that create conflicts: https://docs.google.com/forms/d/e/1FAIpQLSeBkbhuIlSofXqCyhi3kGkLmtrpPOEBwr6iJA6SzHdxWKfqdA/viewform
18891889
.. _the official Python blog: https://blog.python.org/
1890-
.. _requests: https://requests.readthedocs.io/en/master/user/authentication/#netrc-authentication
1890+
.. _requests: https://requests.readthedocs.io/en/latest/user/authentication/#netrc-authentication
18911891
.. _Python standard library: https://docs.python.org/3/library/netrc.html
18921892
.. _Python Windows launcher: https://docs.python.org/3/using/windows.html#launcher

0 commit comments

Comments
 (0)