Skip to content

Commit de69dfa

Browse files
committed
Use main branch instead of master
1 parent ad91acf commit de69dfa

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
- name: build package
146146
run: python -m pep517.build -s -b . -o dist
147147
- name: publish to PyPi
148-
uses: pypa/gh-action-pypi-publish@master
148+
uses: pypa/gh-action-pypi-publish@main
149149
with:
150150
skip_existing: true
151151
user: __token__

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[![Gitter Chat](https://img.shields.io/gitter/room/pypa/virtualenv?color=FF004F&style=flat-square)](https://gitter.im/pypa/virtualenv)
88
[![PyPI - Downloads](https://img.shields.io/pypi/dm/virtualenv?style=flat-square)](https://pypistats.org/packages/virtualenv)
99
[![PyPI - License](https://img.shields.io/pypi/l/virtualenv?style=flat-square)](https://opensource.org/licenses/MIT)
10-
[![Build Status](https://github.com/pypa/virtualenv/workflows/check/badge.svg?branch=master&event=push)](https://github.com/pypa/virtualenv/actions?query=workflow%3Acheck)
11-
[![codecov](https://codecov.io/gh/pypa/virtualenv/branch/master/graph/badge.svg)](https://codecov.io/gh/pypa/virtualenv)
10+
[![Build Status](https://github.com/pypa/virtualenv/workflows/check/badge.svg?branch=main&event=push)](https://github.com/pypa/virtualenv/actions?query=workflow%3Acheck)
11+
[![codecov](https://codecov.io/gh/pypa/virtualenv/branch/main/graph/badge.svg)](https://codecov.io/gh/pypa/virtualenv)
1212
[![Code style:
1313
black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
1414

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
source_suffix = ".rst"
2525
exclude_patterns = ["_build", "changelog/*", "_draft.rst"]
2626

27-
master_doc = "index"
27+
main_doc = "index"
2828
pygments_style = "default"
2929
always_document_param_types = True
3030
project = name

docs/development.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Contributing
116116
Submitting pull requests
117117
~~~~~~~~~~~~~~~~~~~~~~~~
118118

119-
Submit pull requests against the ``master`` branch, providing a good description of what you're doing and why. You must
119+
Submit pull requests against the ``main`` branch, providing a good description of what you're doing and why. You must
120120
have legal permission to distribute any code you contribute to virtualenv and it must be available under the MIT
121121
License. Provide tests that cover your changes and run the tests locally first. virtualenv
122122
:ref:`supports <compatibility-requirements>` multiple Python versions and operating systems. Any pull request must
@@ -135,7 +135,7 @@ or whitespace within lines. Such changes can be made separately, as a "formattin
135135
Automated testing
136136
~~~~~~~~~~~~~~~~~
137137

138-
All pull requests and merges to 'master' branch are tested using
138+
All pull requests and merges to 'main' branch are tested using
139139
`Azure Pipelines <https://azure.microsoft.com/en-gb/services/devops/pipelines/>`_ (configured by
140140
``azure-pipelines.yml`` file at the root of the repository). You can find the status and results to the CI runs for your
141141
PR on GitHub's Web UI for the pull request. You can also find links to the CI services' pages for the specific builds in

docs/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ sdist
4141
When installing via a source distribution you need an installer that handles the
4242
`PEP-517 <https://www.python.org/dev/peps/pep-0517/>`_ specification. In case of ``pip`` this is version ``18.0.0`` or
4343
later (released on 2018 July). If you cannot upgrade your pip to support this you need to ensure that the build
44-
requirements from `pyproject.toml <https://github.com/pypa/virtualenv/blob/master/pyproject.toml#L2>`_ are satisfied
44+
requirements from `pyproject.toml <https://github.com/pypa/virtualenv/blob/main/pyproject.toml#L2>`_ are satisfied
4545
before triggering the install.
4646

4747
via zipapp
@@ -76,7 +76,7 @@ a pip version of at least ``18.0.0`` and use the following command:
7676

7777
.. code-block:: console
7878
79-
pip install git+https://github.com/pypa/virtualenv.git@master
79+
pip install git+https://github.com/pypa/virtualenv.git@main
8080
8181
.. _compatibility-requirements:
8282

docs/user_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ Embed wheels for distributions
184184
Custom distributions often want to use their own set of wheel versions to distribute instead of the one virtualenv
185185
releases on PyPi. The reason for this is trying to keep the system versions of those package in sync with what
186186
virtualenv uses. In such cases they should patch the module `virtualenv.seed.wheels.embed
187-
<https://github.com/pypa/virtualenv/tree/master/src/virtualenv/seed/wheels/embed>`_, making sure to provide the function
187+
<https://github.com/pypa/virtualenv/tree/main/src/virtualenv/seed/wheels/embed>`_, making sure to provide the function
188188
``get_embed_wheel`` (which returns the wheel to use given a distribution/python version). The ``BUNDLE_FOLDER``,
189189
``BUNDLE_SUPPORT`` and ``MAX`` variables are needed if they want to use virtualenvs test suite to validate.
190190

191191
Furthermore, they might want to disable the periodic update by patching the
192192
`virtualenv.seed.embed.base_embed.PERIODIC_UPDATE_ON_BY_DEFAULT
193-
<https://github.com/pypa/virtualenv/tree/master/src/virtualenv/seed/embed/base_embed.py>`_
193+
<https://github.com/pypa/virtualenv/tree/main/src/virtualenv/seed/embed/base_embed.py>`_
194194
to ``False``, and letting the system update mechanism to handle this. Note in this case the user might still request an
195195
upgrade of the embedded wheels by invoking virtualenv via :option:`upgrade-embed-wheels`, but no longer happens
196196
automatically, and will not alter the OS provided wheels.

src/virtualenv/discovery/py_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _fast_get_system_executable(self):
120120

121121
@staticmethod
122122
def _distutils_install():
123-
# follow https://github.com/pypa/pip/blob/master/src/pip/_internal/locations.py#L95
123+
# follow https://github.com/pypa/pip/blob/main/src/pip/_internal/locations.py#L95
124124
# note here we don't import Distribution directly to allow setuptools to patch it
125125
d = dist.Distribution({"script_args": "--no-user-cfg"}) # conf files not parsed so they do not hijack paths
126126
if hasattr(sys, "_framework"):

tasks/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def main(version_str: str) -> None:
2727

2828

2929
def create_release_branch(repo: Repo, version: Version) -> Tuple[Remote, Head]:
30-
print("create release branch from upstream master")
30+
print("create release branch from upstream main")
3131
upstream = get_upstream(repo)
3232
upstream.fetch()
3333
branch_name = f"release-{version}"
34-
release_branch = repo.create_head(branch_name, upstream.refs.master, force=True)
34+
release_branch = repo.create_head(branch_name, upstream.refs.main, force=True)
3535
upstream.push(refspec=f"{branch_name}:{branch_name}", force=True)
3636
release_branch.set_tracking_branch(repo.refs[f"{upstream.name}/{branch_name}"])
3737
release_branch.checkout()

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ commands =
4141

4242
[testenv:coverage]
4343
description = [run locally after tests]: combine coverage data and create report;
44-
generates a diff coverage against origin/master (can be changed by setting DIFF_AGAINST env var)
44+
generates a diff coverage against origin/main (can be changed by setting DIFF_AGAINST env var)
4545
deps =
4646
coverage >= 5.0.1
4747
diff_cover >= 3
@@ -55,7 +55,7 @@ commands =
5555
python -m coverage report --skip-covered --show-missing
5656
python -m coverage xml -o {toxworkdir}/coverage.xml
5757
python -m coverage html -d {toxworkdir}/htmlcov
58-
python -m diff_cover.diff_cover_tool --compare-branch {env:DIFF_AGAINST:origin/master} {toxworkdir}/coverage.xml
58+
python -m diff_cover.diff_cover_tool --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}/coverage.xml
5959
depends =
6060
py38
6161
py37

0 commit comments

Comments
 (0)