Skip to content

Commit 786fd14

Browse files
authored
Merge pull request #861 from benjeffery/master-main
master->main
2 parents 65bb227 + 7e71d56 commit 786fd14

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: lint
33
on:
44
pull_request:
55
push:
6-
branches: [master]
6+
branches: [main]
77

88
jobs:
99
lint-c:

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and test wheels
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- test
88
tags:
99
- '*'

.mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pull_request_rules:
33
conditions:
44
- "-merged"
55
- "#approved-reviews-by>=1"
6-
- base=master
6+
- base=main
77
- label=AUTOMERGE-REQUESTED
88
- status-success=lint-c
99
- status-success=pre-commit

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# tskit <img align="right" width="145" height="90" src="https://github.com/tskit-dev/administrative/blob/master/tskit_logo.svg">
1+
# tskit <img align="right" width="145" height="90" src="https://github.com/tskit-dev/administrative/blob/main/tskit_logo.svg">
22

3-
[![License](https://img.shields.io/github/license/tskit-dev/tskit)](https://github.com/tskit-dev/tskit/blob/master/LICENSE)
3+
[![License](https://img.shields.io/github/license/tskit-dev/tskit)](https://github.com/tskit-dev/tskit/blob/main/LICENSE)
44
[![Contributors](https://img.shields.io/github/contributors/tskit-dev/tskit)](https://github.com/tskit-dev/tskit/graphs/contributors)
5-
[![Commit activity](https://img.shields.io/github/commit-activity/m/tskit-dev/tskit)](https://github.com/tskit-dev/tskit/commits/master)
6-
[![Coverage](https://codecov.io/gh/tskit-dev/tskit/branch/master/graph/badge.svg)](https://codecov.io/gh/tskit-dev/tskit)
5+
[![Commit activity](https://img.shields.io/github/commit-activity/m/tskit-dev/tskit)](https://github.com/tskit-dev/tskit/commits/main)
6+
[![Coverage](https://codecov.io/gh/tskit-dev/tskit/branch/main/graph/badge.svg)](https://codecov.io/gh/tskit-dev/tskit)
77
![OS](https://img.shields.io/badge/OS-linux%20%7C%20OSX%20%7C%20win--64-steelblue)
88

99

docs/c-api.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ different project structures and build systems.
139139

140140
Tskit uses the `meson <https://mesonbuild.com>`_ build system internally,
141141
and supports being used a `meson subproject <https://mesonbuild.com/Subprojects.html>`_.
142-
We show an `example <https://github.com/tskit-dev/tskit-build-examples/tree/master/meson>`_
142+
We show an `example <https://github.com/tskit-dev/tskit-build-examples/tree/main/meson>`_
143143
in which this is combined with
144144
`git submodules <https://git-scm.com/book/en/v2/Git-Tools-Submodules>`_ to neatly
145145
abstract many details of cross platform C development.
146146

147147
Some users may choose to check the source for ``tskit`` (and ``kastore``)
148148
directly into their source control repositories. If you wish to do this,
149149
the code is in the ``c`` subdirectory of the
150-
`tskit <https://github.com/tskit-dev/tskit/tree/master/c>`_ and
151-
`kastore <https://github.com/tskit-dev/kastore/tree/master/c>`__ repos.
150+
`tskit <https://github.com/tskit-dev/tskit/tree/main/c>`_ and
151+
`kastore <https://github.com/tskit-dev/kastore/tree/main/c>`__ repos.
152152
The following header files should be placed in the search path:
153153
``kastore.h``, ``tskit.h``, and ``tskit/*.h``.
154154
The C files ``kastore.c`` and ``tskit*.c`` should be compiled.
@@ -170,7 +170,7 @@ using git. For example, to check out the ``C_0.99.1`` release::
170170
$ git checkout C_0.99.1
171171

172172
Git submodules may also be considered---see the
173-
`example <https://github.com/tskit-dev/tskit-build-examples/tree/master/meson>`_
173+
`example <https://github.com/tskit-dev/tskit-build-examples/tree/main/meson>`_
174174
for how to set these up and to check out at a specific release.
175175

176176

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def handle_item(fieldarg, content):
171171
"display_github": True, # Integrate GitHub
172172
"github_user": "tskit-dev",
173173
"github_repo": "tskit", # Repo name
174-
"github_version": "master", # Version
174+
"github_version": "main", # Version
175175
"conf_py_path": "/docs/", # Path in the checkout to the docs root
176176
}
177177

docs/development.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ see any problems.
1414

1515
The tskit-dev team strives to create a welcoming and open environment for
1616
contributors; please see our `code of conduct
17-
<https://github.com/tskit-dev/.github/blob/master/CODE_OF_CONDUCT.md>`__ for
17+
<https://github.com/tskit-dev/.github/blob/main/CODE_OF_CONDUCT.md>`__ for
1818
details. We wish our code and documentation to be `inclusive
1919
<https://chromium.googlesource.com/chromium/src/+/master/styleguide/inclusive_code.md>`__
2020
and in particular to be gender and racially neutral.
@@ -162,7 +162,7 @@ Git workflow
162162
is to follow this recipe::
163163

164164
$ git fetch upstream
165-
$ git checkout upstream/master
165+
$ git checkout upstream/main
166166
$ git checkout -b topic_branch_name
167167

168168
4. As you work on your topic branch you can add commits to it. Once you're
@@ -852,7 +852,7 @@ the C and Python APIs.
852852
2. Write your function in Python: in ``python/tests/`` find the test module that
853853
pertains to the functionality you wish to add. For instance, the kc_distance
854854
metric was added to
855-
`test_topology.py <https://github.com/tskit-dev/tskit/blob/master/python/tests/test_topology.py>`_.
855+
`test_topology.py <https://github.com/tskit-dev/tskit/blob/main/python/tests/test_topology.py>`_.
856856
Add a python version of your function here.
857857
3. Create a new class in this module to write unit tests for your function: in addition
858858
to making sure that your function is correct, make sure it fails on inappropriate inputs.
@@ -862,34 +862,34 @@ the C and Python APIs.
862862
`TestKCMetric <https://github.com/tskit-dev/tskit/blob/4e707ea04adca256036669cd852656a08ec45590/python/tests/test_topology.py#L293>`_ for example.
863863
4. Write your function in C: check out the :ref:`sec_c_api` for guidance. There
864864
are also many examples in the
865-
`c directory <https://github.com/tskit-dev/tskit/tree/master/c/tskit>`_.
865+
`c directory <https://github.com/tskit-dev/tskit/tree/main/c/tskit>`_.
866866
Your function will probably go in
867-
`trees.c <https://github.com/tskit-dev/tskit/blob/master/c/tskit/trees.c>`_.
867+
`trees.c <https://github.com/tskit-dev/tskit/blob/main/c/tskit/trees.c>`_.
868868
5. Write a few tests for your function in C: again, write your tests in
869-
`tskit/c/tests/test_tree.c <https://github.com/tskit-dev/tskit/blob/master/c/tests/test_trees.c>`_.
869+
`tskit/c/tests/test_tree.c <https://github.com/tskit-dev/tskit/blob/main/c/tests/test_trees.c>`_.
870870
The key here is code coverage, you don't need to worry as much about covering every
871871
corner case, as we will proceed to link this function to the Python tests you
872872
wrote earlier.
873873
6. Create a low-level definition of your function using Python's C API: this will
874874
go in `_tskitmodule.c
875-
<https://github.com/tskit-dev/tskit/blob/master/python/_tskitmodule.c>`_.
875+
<https://github.com/tskit-dev/tskit/blob/main/python/_tskitmodule.c>`_.
876876
7. Test your low-level implementation in `tskit/python/tests/test_lowlevel.py
877-
<https://github.com/tskit-dev/tskit/blob/master/python/tests/test_lowlevel.py>`_:
877+
<https://github.com/tskit-dev/tskit/blob/main/python/tests/test_lowlevel.py>`_:
878878
again, these tests don't need to be as comprehensive as your first python tests,
879879
instead, they should focus on the interface, e.g., does the function behave
880880
correctly on malformed inputs?
881881
8. Link your C function to the Python API: write a function in tskit's Python API,
882882
for example the kc_distance function lives in
883883
`tskit/python/tskit/trees.py
884-
<https://github.com/tskit-dev/tskit/blob/master/python/tskit/trees.py>`_.
884+
<https://github.com/tskit-dev/tskit/blob/main/python/tskit/trees.py>`_.
885885
9. Modify your Python tests to test the new C-linked function: if you followed
886886
the example of other tests, you might need to only add a single line of code
887887
here. In this case, the tests are well factored so that we can easily compare
888888
the results from both the Python and C versions.
889889
10. Write a docstring for your function in the Python API: for instance, the kc_distance
890890
docstring is in
891891
`tskit/python/tskit/trees.py
892-
<https://github.com/tskit-dev/tskit/blob/master/python/tskit/trees.py>`_.
892+
<https://github.com/tskit-dev/tskit/blob/main/python/tskit/trees.py>`_.
893893
Ensure that your docstring renders correctly by building the documentation
894894
(see :ref:`sec_development_documentation`).
895895
11. Update your Pull Request (`rebasing <https://stdpopsim.readthedocs.io/en/

0 commit comments

Comments
 (0)