Skip to content

Commit b5954e6

Browse files
committed
Rename master branch to main. 🥳
1 parent c57510a commit b5954e6

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ on:
9797
# but only for the main branch
9898
push:
9999
branches:
100-
- master
100+
- main
101101
- vnext
102102
pull_request:
103103
branches:
104-
- master
104+
- main
105105
- vnext
106106
# Also trigger on page_build, as well as release created events
107107
page_build:

.github/workflows/codeql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [ "main" ]
88
schedule:
99
- cron: "51 22 * * 6"
1010

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Sparse Multidimensional Arrays
66
This library provides multi-dimensional sparse arrays.
77

88
* `Documentation <http://sparse.pydata.org/>`_
9-
* `Contributing <https://github.com/pydata/sparse/blob/master/docs/contributing.rst>`_
9+
* `Contributing <https://github.com/pydata/sparse/blob/main/docs/contributing.rst>`_
1010
* `Bug Reports/Feature Requests <https://github.com/pydata/sparse/issues>`_
1111

1212
.. |Build Status| image:: https://github.com/pydata/sparse/actions/workflows/ci.yml/badge.svg
@@ -17,6 +17,6 @@ This library provides multi-dimensional sparse arrays.
1717
:target: http://sparse.pydata.org/en/latest/?badge=latest
1818
:alt: Documentation Status
1919

20-
.. |Coverage| image:: https://codecov.io/gh/pydata/sparse/branch/master/graph/badge.svg
20+
.. |Coverage| image:: https://codecov.io/gh/pydata/sparse/branch/main/graph/badge.svg
2121
:target: https://codecov.io/gh/pydata/sparse
2222
:alt: Coverage Report

docs/conf.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
# source_suffix = ['.rst', '.md']
5757
source_suffix = ".rst"
5858

59-
# The master toctree document.
60-
master_doc = "index"
59+
# The main toctree document.
60+
main_doc = "index"
6161

6262
# General information about the project.
6363
project = "sparse"
@@ -151,13 +151,13 @@
151151
# Grouping the document tree into LaTeX files. List of tuples
152152
# (source start file, target name, title,
153153
# author, documentclass [howto, manual, or own class]).
154-
latex_documents = [(master_doc, "sparse.tex", "sparse Documentation", "Sparse Developers", "manual")]
154+
latex_documents = [(main_doc, "sparse.tex", "sparse Documentation", "Sparse Developers", "manual")]
155155

156156
# -- Options for manual page output ---------------------------------------
157157

158158
# One entry per manual page. List of tuples
159159
# (source start file, name, description, authors, manual section).
160-
man_pages = [(master_doc, "sparse", "sparse Documentation", [author], 1)]
160+
man_pages = [(main_doc, "sparse", "sparse Documentation", [author], 1)]
161161

162162
# -- Options for Texinfo output -------------------------------------------
163163

@@ -166,7 +166,7 @@
166166
# dir menu entry, description, category)
167167
texinfo_documents = [
168168
(
169-
master_doc,
169+
main_doc,
170170
"sparse",
171171
"sparse Documentation",
172172
author,

docs/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ you open a new issue, please make sure of the following:
2727

2828
* This should go without saying, but make sure what you are requesting is within
2929
the scope of this project.
30-
* The bug/feature is still present/missing on the ``master`` branch on GitHub.
30+
* The bug/feature is still present/missing on the ``main`` branch on GitHub.
3131
* A similar issue or pull request isn't already open. If one already is, it's better
3232
to contribute to the discussion there.
3333

release-procedure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
* Push to github
99
```bash
10-
git push pydata master --tags
10+
git push pydata main --tags
1111
```
1212

1313
* Upload to PyPI

sparse/_common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def tensordot(a, b, axes=2, *, return_type=None):
9696
from ._compressed import GCXS
9797

9898
# Much of this is stolen from numpy/core/numeric.py::tensordot
99-
# Please see license at https://github.com/numpy/numpy/blob/master/LICENSE.txt
99+
# Please see license at https://github.com/numpy/numpy/blob/main/LICENSE.txt
100100
check_zero_fill_value(a, b)
101101

102102
if scipy.sparse.issparse(a):
@@ -623,7 +623,7 @@ def _dot_csr_csr(out_shape, a_data, b_data, a_indices, b_indices, a_indptr, b_in
623623
"""
624624

625625
# much of this is borrowed from:
626-
# https://github.com/scipy/scipy/blob/master/scipy/sparse/sparsetools/csr.h
626+
# https://github.com/scipy/scipy/blob/main/scipy/sparse/sparsetools/csr.h
627627

628628
# calculate nnz before multiplying so we can use static arrays
629629
nnz = _csr_csr_count_nnz(out_shape, a_indices, b_indices, a_indptr, b_indptr)
@@ -922,7 +922,7 @@ def _dot_coo_coo(out_shape, a_coords, b_coords, a_data, b_data, a_indptr, b_indp
922922
"""
923923

924924
# much of this is borrowed from:
925-
# https://github.com/scipy/scipy/blob/master/scipy/sparse/sparsetools/csr.h
925+
# https://github.com/scipy/scipy/blob/main/scipy/sparse/sparsetools/csr.h
926926

927927
n_row, n_col = out_shape
928928
# calculate nnz before multiplying so we can use static arrays

sparse/_coo/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ def _sum_duplicates(self):
13231323
array([6, 7, 2], dtype=uint8)
13241324
"""
13251325
# Inspired by scipy/sparse/coo.py::sum_duplicates
1326-
# See https://github.com/scipy/scipy/blob/master/LICENSE.txt
1326+
# See https://github.com/scipy/scipy/blob/main/LICENSE.txt
13271327
linear = self.linear_loc()
13281328
unique_mask = np.diff(linear) != 0
13291329

sparse/_slicing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Most of this file is taken from https://github.com/dask/dask/blob/master/dask/array/slicing.py
2-
# See license at https://github.com/dask/dask/blob/master/LICENSE.txt
1+
# Most of this file is taken from https://github.com/dask/dask/blob/main/dask/array/slicing.py
2+
# See license at https://github.com/dask/dask/blob/main/LICENSE.txt
33

44
import math
55
from collections.abc import Iterable

sparse/_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def random(
283283
284284
"""
285285
# Copied, in large part, from scipy.sparse.random
286-
# See https://github.com/scipy/scipy/blob/master/LICENSE.txt
286+
# See https://github.com/scipy/scipy/blob/main/LICENSE.txt
287287
from ._coo import COO
288288

289289
if density is not None and nnz is not None:
@@ -445,7 +445,7 @@ def equivalent(x, y):
445445

446446

447447
# copied from zarr
448-
# See https://github.com/zarr-developers/zarr-python/blob/master/zarr/util.py
448+
# See https://github.com/zarr-developers/zarr-python/blob/main/zarr/util.py
449449
def human_readable_size(size):
450450
if size < 2**10:
451451
return str(size)

0 commit comments

Comments
 (0)