Skip to content

Commit 5cdb202

Browse files
authored
Move master to main (#1033)
1 parent fd979fb commit 5cdb202

File tree

11 files changed

+33
-33
lines changed

11 files changed

+33
-33
lines changed

.github/workflows/Pre-commit-hooks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: pre-commit
44

55
# Controls when the workflow will run
66
on:
7-
# Triggers the workflow pull request events but only for the master branch
7+
# Triggers the workflow pull request events but only for the main branch
88
pull_request:
99
push:
10-
branches: [master]
10+
branches: [main]
1111

1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:

.github/workflows/minimal.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ name: Minimal installation
44

55
on:
66
push:
7-
branches: [ master ]
7+
branches: [ main ]
88
pull_request:
9-
branches: [ master ]
9+
branches: [ main ]
1010

1111
jobs:
1212
minimum_build:

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Linux Testing
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111

1212
jobs:
1313
build:

.github/workflows/windows-testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python package
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111

1212
jobs:
1313
windows:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<img src="https://raw.githubusercontent.com/zarr-developers/community/master/logos/logo2.png"><br>
2+
<img src="https://raw.githubusercontent.com/zarr-developers/community/main/logos/logo2.png"><br>
33
</div>
44

55
# Zarr
@@ -31,7 +31,7 @@
3131
<tr>
3232
<td>License</td>
3333
<td>
34-
<a href="https://github.com/zarr-developers/zarr-python/blob/master/LICENSE">
34+
<a href="https://github.com/zarr-developers/zarr-python/blob/main/LICENSE">
3535
<img src="https://img.shields.io/pypi/l/zarr.svg" alt="license" />
3636
</a>
3737
</td>
@@ -40,15 +40,15 @@
4040
<td>Build Status</td>
4141
<td>
4242
<a href="https://travis-ci.org/zarr-developers/zarr-python">
43-
<img src="https://travis-ci.org/zarr-developers/zarr-python.svg?branch=master" alt="travis build status" />
43+
<img src="https://travis-ci.org/zarr-developers/zarr-python.svg?branch=main" alt="travis build status" />
4444
</a>
4545
</td>
4646
</tr>
4747
<tr>
4848
<td>Coverage</td>
4949
<td>
5050
<a href="https://codecov.io/gh/zarr-developers/zarr-python">
51-
<img src="https://codecov.io/gh/zarr-developers/zarr-python/branch/master/graph/badge.svg"/ alt="coverage">
51+
<img src="https://codecov.io/gh/zarr-developers/zarr-python/branch/main/graph/badge.svg"/ alt="coverage">
5252
</a>
5353
</td>
5454
</tr>

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ comment:
1212
behavior: default
1313
require_changes: true # if true: only post the comment if coverage changes
1414
branches: # branch names that can post comment
15-
- "master"
15+
- "main"

docs/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
# The encoding of source files.
6262
#source_encoding = 'utf-8-sig'
6363

64-
# The master toctree document.
65-
master_doc = 'index'
64+
# The main toctree document.
65+
main_doc = 'index'
6666

6767
# General information about the project.
6868
project = 'zarr'
@@ -245,7 +245,7 @@ def setup(app):
245245
# (source start file, target name, title,
246246
# author, documentclass [howto, manual, or own class]).
247247
latex_documents = [
248-
(master_doc, 'zarr.tex', 'zarr Documentation',
248+
(main_doc, 'zarr.tex', 'zarr Documentation',
249249
'Zarr Developers', 'manual'),
250250
]
251251

@@ -275,7 +275,7 @@ def setup(app):
275275
# One entry per manual page. List of tuples
276276
# (source start file, name, description, authors, manual section).
277277
man_pages = [
278-
(master_doc, 'zarr', 'zarr Documentation',
278+
(main_doc, 'zarr', 'zarr Documentation',
279279
[author], 1)
280280
]
281281

@@ -289,7 +289,7 @@ def setup(app):
289289
# (source start file, target name, title, author,
290290
# dir menu entry, description, category)
291291
texinfo_documents = [
292-
(master_doc, 'zarr', 'zarr Documentation',
292+
(main_doc, 'zarr', 'zarr Documentation',
293293
author, 'zarr', 'One line description of project.',
294294
'Miscellaneous'),
295295
]

docs/contributing.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ report the bug or propose the feature you'd like to add.
108108
It's best to synchronize your fork with the upstream repository, then create a
109109
new, separate branch for each piece of work you want to do. E.g.::
110110

111-
git checkout master
111+
git checkout main
112112
git fetch upstream
113-
git rebase upstream/master
113+
git rebase upstream/main
114114
git push
115115
git checkout -b shiny-new-feature
116116
git push -u origin shiny-new-feature
@@ -120,18 +120,18 @@ this branch specific to one bug or feature so it is clear what the branch brings
120120
Zarr.
121121

122122
To update this branch with latest code from Zarr, you can retrieve the changes from
123-
the master branch and perform a rebase::
123+
the main branch and perform a rebase::
124124

125125
git fetch upstream
126-
git rebase upstream/master
126+
git rebase upstream/main
127127

128-
This will replay your commits on top of the latest Zarr git master. If this leads to
128+
This will replay your commits on top of the latest Zarr git main. If this leads to
129129
merge conflicts, these need to be resolved before submitting a pull request.
130-
Alternatively, you can merge the changes in from upstream/master instead of rebasing,
130+
Alternatively, you can merge the changes in from upstream/main instead of rebasing,
131131
which can be simpler::
132132

133133
git fetch upstream
134-
git merge upstream/master
134+
git merge upstream/main
135135

136136
Again, any conflicts need to be resolved before submitting a pull request.
137137

@@ -206,7 +206,7 @@ Documentation
206206

207207
Docstrings for user-facing classes and functions should follow the
208208
`numpydoc
209-
<https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt>`_
209+
<https://github.com/numpy/numpy/blob/main/doc/HOWTO_DOCUMENT.rst.txt>`_
210210
standard, including sections for Parameters and Examples. All examples
211211
should run and pass as doctests under Python 3.8. To run doctests,
212212
activate your development environment, install optional requirements,
@@ -242,7 +242,7 @@ one core developers before being merged. Ideally, pull requests submitted by a c
242242
should be reviewed and approved by at least one other core developers before being merged.
243243

244244
Pull requests should not be merged until all CI checks have passed (GitHub Actions
245-
Codecov) against code that has had the latest master merged in.
245+
Codecov) against code that has had the latest main merged in.
246246

247247
Compatibility and versioning policies
248248
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -337,9 +337,9 @@ Release procedure
337337
Most of the release process is now handled by github workflow which should
338338
automatically push a release to PyPI if a tag is pushed.
339339

340-
Checkout and update the master branch::
340+
Checkout and update the main branch::
341341

342-
$ git checkout master
342+
$ git checkout main
343343
$ git pull
344344

345345
Verify all tests pass on all supported Python versions, and docs build::

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. zarr documentation master file, created by
1+
.. zarr documentation main file, created by
22
sphinx-quickstart on Mon May 2 21:40:09 2016.
33
44
Zarr
@@ -42,7 +42,7 @@ Alternatively, install Zarr via conda::
4242
$ conda install -c conda-forge zarr
4343

4444
To install the latest development version of Zarr, you can use pip with the
45-
latest GitHub master::
45+
latest GitHub main::
4646

4747
$ pip install git+https://github.com/zarr-developers/zarr-python.git
4848

docs/release.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ Enhancements
893893
properties that enable a selection of items in an array to be retrieved or
894894
updated. See the :ref:`tutorial_indexing` tutorial section for more
895895
information. There is also a `notebook
896-
<https://github.com/zarr-developers/zarr-python/blob/master/notebooks/advanced_indexing.ipynb>`_
896+
<https://github.com/zarr-developers/zarr-python/blob/main/notebooks/advanced_indexing.ipynb>`_
897897
with extended examples and performance benchmarks. :issue:`78`, :issue:`89`,
898898
:issue:`112`, :issue:`172`.
899899

0 commit comments

Comments
 (0)