Skip to content

Commit e12a7e4

Browse files
committed
change master to main references
1 parent 9268ca9 commit e12a7e4

15 files changed

+42
-42
lines changed

.cirrus.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ linux_task_template: &LINUX_TASK_TEMPLATE
8787
# YAML alias for compute credits.
8888
#
8989
compute_credits_template: &CREDITS_TEMPLATE
90-
# Only use credits for non-DRAFT pull-requests to SciTools/iris master branch by collaborators
90+
# Only use credits for non-DRAFT pull-requests to SciTools/iris main branch by collaborators
9191
use_compute_credits: ${CIRRUS_REPO_FULL_NAME} == "SciTools/iris" && ${CIRRUS_USER_COLLABORATOR} == "true" && ${CIRRUS_PR_DRAFT} == "false" && ${CIRRUS_PR} != ""
9292

9393

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: check-merge-conflict
1515
# Check for debugger imports and py37+ `breakpoint()` calls in Python source.
1616
- id: debug-statements
17-
# Don't commit to master branch.
17+
# Don't commit to main branch.
1818
- id: no-commit-to-branch
1919
- repo: https://github.com/psf/black
2020
rev: '21.6b0'

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
<p align="center">
1313
<a href="https://cirrus-ci.com/github/SciTools/iris">
14-
<img src="https://api.cirrus-ci.com/github/SciTools/iris.svg?branch=master"
14+
<img src="https://api.cirrus-ci.com/github/SciTools/iris.svg?branch=main"
1515
alt="Cirrus-CI"></a>
1616
<a href="https://scitools-iris.readthedocs.io/en/latest/?badge=latest">
1717
<img src="https://readthedocs.org/projects/scitools-iris/badge/?version=latest"
1818
alt="Documentation Status"></a>
19-
<a href="https://results.pre-commit.ci/latest/github/SciTools/iris/master">
20-
<img src="https://results.pre-commit.ci/badge/github/SciTools/iris/master.svg"
19+
<a href="https://results.pre-commit.ci/latest/github/SciTools/iris/main">
20+
<img src="https://results.pre-commit.ci/badge/github/SciTools/iris/main.svg"
2121
alt="pre-commit.ci status"></a>
2222
<a href="https://anaconda.org/conda-forge/iris">
2323
<img src="https://img.shields.io/conda/v/conda-forge/iris?color=orange&label=conda-forge%7Ciris&logo=conda-forge&logoColor=white"
@@ -28,7 +28,7 @@
2828
<a href="https://github.com/SciTools/iris/releases">
2929
<img src="https://img.shields.io/github/v/release/scitools/iris"
3030
alt="latest release"></a>
31-
<a href="https://github.com/SciTools/iris/commits/master">
31+
<a href="https://github.com/SciTools/iris/commits/main">
3232
<img src="https://img.shields.io/github/commits-since/SciTools/iris/latest.svg"
3333
alt="Commits since last release"></a>
3434
<a href="https://zenodo.org/badge/latestdoi/5312648">

docs/src/common_links.inc

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Common resources in alphabetical order:
33

44
.. _black: https://black.readthedocs.io/en/stable/
5-
.. _.cirrus.yml: https://github.com/SciTools/iris/blob/master/.cirrus.yml
5+
.. _.cirrus.yml: https://github.com/SciTools/iris/blob/main/.cirrus.yml
66
.. _flake8: https://flake8.pycqa.org/en/stable/
7-
.. _.flake8.yml: https://github.com/SciTools/iris/blob/master/.flake8
7+
.. _.flake8.yml: https://github.com/SciTools/iris/blob/main/.flake8
88
.. _cirrus-ci: https://cirrus-ci.com/github/SciTools/iris
99
.. _conda: https://docs.conda.io/en/latest/
1010
.. _contributor: https://github.com/SciTools/scitools.org.uk/blob/master/contributors.json
@@ -28,7 +28,7 @@
2828
.. _pull request: https://github.com/SciTools/iris/pulls
2929
.. _pull requests: https://github.com/SciTools/iris/pulls
3030
.. _Read the Docs: https://scitools-iris.readthedocs.io/en/latest/
31-
.. _readthedocs.yml: https://github.com/SciTools/iris/blob/master/requirements/ci/readthedocs.yml
31+
.. _readthedocs.yml: https://github.com/SciTools/iris/blob/main/requirements/ci/readthedocs.yml
3232
.. _SciTools: https://github.com/SciTools
3333
.. _scitools-iris: https://pypi.org/project/scitools-iris/
3434
.. _sphinx: https://www.sphinx-doc.org/en/master/

docs/src/developers_guide/contributing_ci_tests.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ See the `pre-commit.ci dashboard`_ for details of recent past and active Iris jo
145145

146146
.. _Cirrus-CI Dashboard: https://cirrus-ci.com/github/SciTools/iris
147147
.. _Cirrus-CI Documentation: https://cirrus-ci.org/guide/writing-tasks/
148-
.. _.pre-commit-config.yaml: https://github.com/SciTools/iris/blob/master/.pre-commit-config.yaml
148+
.. _.pre-commit-config.yaml: https://github.com/SciTools/iris/blob/main/.pre-commit-config.yaml
149149
.. _pre-commit.ci dashboard: https://results.pre-commit.ci/repo/github/5312648
150-
.. _GitHub Actions: https://github.com/SciTools/iris/actions/workflows/refresh-lockfiles.yml
150+
.. _GitHub Actions: https://github.com/SciTools/iris/actions/workflows/refresh-lockfiles.yml

docs/src/developers_guide/contributing_documentation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ or ignore the url.
110110
``.readthedocs.yml``.
111111

112112

113-
.. _conf.py: https://github.com/SciTools/iris/blob/master/docs/src/conf.py
113+
.. _conf.py: https://github.com/SciTools/iris/blob/main/docs/src/conf.py
114114

115115

116116
.. _contributing.documentation.api:

docs/src/developers_guide/contributing_getting_involved.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ information is provided.
1919

2020
A `pull request`_ may also be created by anyone who has become a
2121
**contributor** to Iris_. Permissions to merge pull requests to the
22-
main code base (master) are only given to **core developers** of Iris_, this is
22+
``main`` branch are only given to **core developers** of Iris_, this is
2323
to ensure a measure of control.
2424

2525
To get started we suggest reading recent `issues`_ and `pull requests`_

docs/src/developers_guide/contributing_graphics_tests.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This consists of:
5151
* The hashes of known **acceptable** results for each test are stored in a
5252
lookup dictionary, saved to the repo file
5353
``lib/iris/tests/results/imagerepo.json``
54-
(`link <https://github.com/SciTools/iris/blob/master/lib/iris/tests/results/imagerepo.json>`_) .
54+
(`link <https://github.com/SciTools/iris/blob/main/lib/iris/tests/results/imagerepo.json>`_) .
5555

5656
* An actual reference image for each hash value is stored in a *separate*
5757
public repository https://github.com/SciTools/test-iris-imagehash.
@@ -163,4 +163,4 @@ To add your changes to Iris, you need to make two pull requests (PR).
163163
image-listing file in ``test-iris-imagehash``.
164164

165165

166-
.. _Iris Cirrus-CI matrix: https://github.com/scitools/iris/blob/master/.cirrus.yml
166+
.. _Iris Cirrus-CI matrix: https://github.com/scitools/iris/blob/main/.cirrus.yml

docs/src/developers_guide/gitwash/configure_git.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,18 @@ You use the alias with::
139139
and it gives graph / text output something like this (but with color!)::
140140

141141
* 6d8e1ee - (HEAD, origin/my-fancy-feature, my-fancy-feature) NF - a fancy file (45 minutes ago) [Matthew Brett]
142-
* d304a73 - (origin/placeholder, placeholder) Merge pull request #48 from hhuuggoo/master (2 weeks ago) [Jonathan Terhorst]
142+
* d304a73 - (origin/placeholder, placeholder) Merge pull request #48 from hhuuggoo/main (2 weeks ago) [Jonathan Terhorst]
143143
|\
144144
| * 4aff2a8 - fixed bug 35, and added a test in test_bugfixes (2 weeks ago) [Hugo]
145145
|/
146146
* a7ff2e5 - Added notes on discussion/proposal made during Data Array Summit. (2 weeks ago) [Corran Webster]
147147
* 68f6752 - Initial implimentation of AxisIndexer - uses 'index_by' which needs to be changed to a call on an Axes object - this is all very sketchy right now. (2 weeks ago) [Corr
148-
* 376adbd - Merge pull request #46 from terhorst/master (2 weeks ago) [Jonathan Terhorst]
148+
* 376adbd - Merge pull request #46 from terhorst/main (2 weeks ago) [Jonathan Terhorst]
149149
|\
150150
| * b605216 - updated joshu example to current api (3 weeks ago) [Jonathan Terhorst]
151151
| * 2e991e8 - add testing for outer ufunc (3 weeks ago) [Jonathan Terhorst]
152152
| * 7beda5a - prevent axis from throwing an exception if testing equality with non-axis object (3 weeks ago) [Jonathan Terhorst]
153153
| * 65af65e - convert unit testing code to assertions (3 weeks ago) [Jonathan Terhorst]
154-
| * 956fbab - Merge remote-tracking branch 'upstream/master' (3 weeks ago) [Jonathan Terhorst]
154+
| * 956fbab - Merge remote-tracking branch 'upstream/main' (3 weeks ago) [Jonathan Terhorst]
155155
| |\
156156
| |/

docs/src/developers_guide/gitwash/development_workflow.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ git by following :ref:`configure-git`. Now you are ready for some real work.
1111
Workflow Summary
1212
================
1313

14-
In what follows we'll refer to the upstream iris ``master`` branch, as
14+
In what follows we'll refer to the upstream iris ``main`` branch, as
1515
"trunk".
1616

17-
* Don't use your ``master`` (that is on your fork) branch for anything.
17+
* Don't use your ``main`` (that is on your fork) branch for anything.
1818
Consider deleting it.
1919
* When you are starting a new set of changes, fetch any changes from trunk,
2020
and start a new *feature branch* from that.
@@ -37,7 +37,7 @@ See `linux git workflow`_ for some explanation.
3737
Consider Deleting Your Master Branch
3838
====================================
3939

40-
It may sound strange, but deleting your own ``master`` branch can help reduce
40+
It may sound strange, but deleting your own ``main`` branch can help reduce
4141
confusion about which branch you are on. See `deleting master on github`_ for
4242
details.
4343

@@ -54,8 +54,8 @@ From time to time you should fetch the upstream (trunk) changes from github::
5454

5555
This will pull down any commits you don't have, and set the remote branches to
5656
point to the right commit. For example, 'trunk' is the branch referred to by
57-
(remote/branchname) ``upstream/master`` - and if there have been commits since
58-
you last checked, ``upstream/master`` will change after you do the fetch.
57+
(remote/branchname) ``upstream/main`` - and if there have been commits since
58+
you last checked, ``upstream/main`` will change after you do the fetch.
5959

6060
.. _make-feature-branch:
6161

@@ -78,7 +78,7 @@ what the changes in the branch are for. For example ``add-ability-to-fly``, or
7878
# Update the mirror of trunk
7979
git fetch upstream
8080
# Make new feature branch starting at current trunk
81-
git branch my-new-feature upstream/master
81+
git branch my-new-feature upstream/main
8282
git checkout my-new-feature
8383

8484
Generally, you will want to keep your feature branches on your public github_
@@ -183,7 +183,7 @@ Delete a Branch on Github
183183

184184
::
185185

186-
git checkout master
186+
git checkout main
187187
# delete branch locally
188188
git branch -D my-unwanted-branch
189189
# delete branch on github
@@ -223,7 +223,7 @@ Your collaborators can then commit directly into that repo with the
223223
usual::
224224

225225
git commit -am 'ENH - much better code'
226-
git push origin master # pushes directly into your repo
226+
git push origin main # pushes directly into your repo
227227

228228
Explore Your Repository
229229
-----------------------

docs/src/developers_guide/gitwash/set_up_fork.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ Clone Your Fork
2929
``git branch -a`` to show you all branches. You'll get something
3030
like::
3131

32-
* master
33-
remotes/origin/master
32+
* main
33+
remotes/origin/main
3434

35-
This tells you that you are currently on the ``master`` branch, and
36-
that you also have a ``remote`` connection to ``origin/master``.
35+
This tells you that you are currently on the ``main`` branch, and
36+
that you also have a ``remote`` connection to ``origin/main``.
3737
What remote repository is ``remote/origin``? Try ``git remote -v`` to
3838
see the URLs for the remote. They will point to your github fork.
3939

docs/src/developers_guide/release.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ number of releases, is in :ref:`iris_development_deprecations`.
2525
Release Branch
2626
--------------
2727

28-
Once the features intended for the release are on ``master``, a release branch
28+
Once the features intended for the release are on ``main``, a release branch
2929
should be created, in the ``SciTools/iris`` repository. This will have the name:
3030

3131
:literal:`v{major release number}.{minor release number}.x`
@@ -156,13 +156,13 @@ Merge Back
156156
----------
157157

158158
After the release is cut, the changes from the release branch should be merged
159-
back onto the ``SciTools/iris`` ``master`` branch.
159+
back onto the ``SciTools/iris`` ``main`` branch.
160160

161-
To achieve this, first cut a local branch from the latest ``master`` branch,
161+
To achieve this, first cut a local branch from the latest ``main`` branch,
162162
and `git merge` the :literal:`.x` release branch into it. Ensure that the
163163
``iris.__version__``, ``docs/src/whatsnew/index.rst`` and ``docs/src/whatsnew/latest.rst``
164164
are correct, before committing these changes and then proposing a pull-request
165-
on the ``master`` branch of ``SciTools/iris``.
165+
on the ``main`` branch of ``SciTools/iris``.
166166

167167

168168
Point Releases
@@ -177,7 +177,7 @@ New features shall not be included in a point release, these are for bug fixes.
177177

178178
A point release does not require a release candidate, but the rest of the
179179
release process is to be followed, including the merge back of changes into
180-
``master``.
180+
``main``.
181181

182182

183183
.. _iris_development_releases_steps:
@@ -223,7 +223,7 @@ Post Release Steps
223223
~~~~~~~~~~~~~~~~~~
224224

225225
#. Check the documentation has built on `Read The Docs`_. The build is
226-
triggered by any commit to ``master``. Additionally check that the versions
226+
triggered by any commit to ``main``. Additionally check that the versions
227227
available in the pop out menu in the bottom left corner include the new
228228
release version. If it is not present you will need to configure the
229229
versions available in the **admin** dashboard in `Read The Docs`_.
@@ -238,7 +238,7 @@ Post Release Steps
238238
#. Add back in the reference to ``latest.rst`` to the ``whatsnew`` index
239239
``docs/src/whatsnew/index.rst``
240240
#. Update ``iris.__init__.py`` version string to show as ``1.10.dev0``
241-
#. Merge back to ``master``
241+
#. Merge back to ``main``
242242

243243

244244
.. _SciTools/iris: https://github.com/SciTools/iris

docs/src/installing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ all the packages from the `testing` and `documentation` sections.
108108
are supported and tested against by Iris, view the contents of
109109
the `requirements/ci`_ directory.
110110

111-
.. _requirements/ci: https://github.com/scitools/iris/tree/master/requirements/ci
111+
.. _requirements/ci: https://github.com/scitools/iris/tree/main/requirements/ci
112112

113113
Finally you need to run the command to configure your shell environment
114114
to find your local Iris code::

docs/src/whatsnew/2.3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Documentation
238238
=============
239239

240240
* Adopted a
241-
`new colour logo for Iris <https://github.com/SciTools/iris/blob/master/docs/src/_static/Iris7_1_trim_100.png>`_
241+
`new colour logo for Iris <https://github.com/SciTools/iris/blob/main/docs/src/_static/Iris7_1_trim_100.png>`_
242242

243243
* Added a gallery example showing how to concatenate NEMO ocean model data,
244244
see :ref:`sphx_glr_generated_gallery_oceanography_plot_load_nemo.py`.

docs/src/whatsnew/latest.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ This document explains the changes made to Iris for this release
147147
environment info. (:pull:`3990`)
148148

149149
#. `@bjlittle`_ enabled `cirrus-ci`_ compute credits for non-draft pull-requests
150-
from collaborators targeting the Iris ``master`` branch. (:pull:`4007`)
150+
from collaborators targeting the Iris ``main`` branch. (:pull:`4007`)
151151

152152
#. `@akuhnregnier`_ replaced `deprecated numpy 1.20 aliases for builtin types`_.
153153
(:pull:`3997`)
@@ -199,8 +199,8 @@ This document explains the changes made to Iris for this release
199199
.. _GitHub: https://github.com/SciTools/iris/issues/new/choose
200200
.. _Met Office: https://www.metoffice.gov.uk/
201201
.. _numpy: https://numpy.org/doc/stable/release/1.20.0-notes.html
202-
.. |pre-commit.ci| image:: https://results.pre-commit.ci/badge/github/SciTools/iris/master.svg
203-
.. _pre-commit.ci: https://results.pre-commit.ci/latest/github/SciTools/iris/master
202+
.. |pre-commit.ci| image:: https://results.pre-commit.ci/badge/github/SciTools/iris/main.svg
203+
.. _pre-commit.ci: https://results.pre-commit.ci/latest/github/SciTools/iris/main
204204
.. |PyPI| image:: https://img.shields.io/pypi/v/scitools-iris?color=orange&label=pypi%7Cscitools-iris
205205
.. _PyPI: https://pypi.org/project/scitools-iris/
206206
.. _Python 3.8: https://www.python.org/downloads/release/python-380/

0 commit comments

Comments
 (0)