@@ -57,7 +57,7 @@ setup.py
5757
5858The most important file is :file: `setup.py ` which exists at the root of your
5959project directory. For an example, see the `setup.py
60- <https://github.com/pypa/sampleproject/blob/master /setup.py> `_ in the `PyPA
60+ <https://github.com/pypa/sampleproject/blob/main /setup.py> `_ in the `PyPA
6161sample project <https://github.com/pypa/sampleproject> `_.
6262
6363:file: `setup.py ` serves two primary functions:
@@ -78,7 +78,7 @@ setup.cfg
7878
7979:file: `setup.cfg ` is an ini file that contains option defaults for
8080:file: `setup.py ` commands. For an example, see the `setup.cfg
81- <https://github.com/pypa/sampleproject/blob/master /setup.cfg> `_ in the `PyPA
81+ <https://github.com/pypa/sampleproject/blob/main /setup.cfg> `_ in the `PyPA
8282sample project <https://github.com/pypa/sampleproject> `_.
8383
8484
@@ -87,13 +87,13 @@ README.rst / README.md
8787
8888All projects should contain a readme file that covers the goal of the project.
8989The most common format is `reStructuredText
90- <http ://docutils.sourceforge.net /rst.html> `_ with an "rst" extension, although
90+ <https ://docutils.sourceforge.io /rst.html> `_ with an "rst" extension, although
9191this is not a requirement; multiple variants of `Markdown
9292<https://daringfireball.net/projects/markdown/> `_ are supported as well (look
9393at ``setup() ``'s :ref: `long_description_content_type <description >` argument).
9494
9595For an example, see `README.md
96- <https://github.com/pypa/sampleproject/blob/master /README.md> `_ from the `PyPA
96+ <https://github.com/pypa/sampleproject/blob/main /README.md> `_ from the `PyPA
9797sample project <https://github.com/pypa/sampleproject> `_.
9898
9999.. note :: Projects using :ref:`setuptools` 0.6.27+ have standard readme files
@@ -113,7 +113,7 @@ writing a :file:`MANIFEST.in` file, including a list of what's included by
113113default, see ":ref: `Using MANIFEST.in `".
114114
115115For an example, see the `MANIFEST.in
116- <https://github.com/pypa/sampleproject/blob/master /MANIFEST.in> `_ from the `PyPA
116+ <https://github.com/pypa/sampleproject/blob/main /MANIFEST.in> `_ from the `PyPA
117117sample project <https://github.com/pypa/sampleproject> `_.
118118
119119.. note :: :file:`MANIFEST.in` does not affect binary distributions such as wheels.
@@ -128,7 +128,7 @@ If you're unsure which license to choose, you can use resources such as
128128`GitHub's Choose a License <https://choosealicense.com/ >`_ or consult a lawyer.
129129
130130For an example, see the `LICENSE.txt
131- <https://github.com/pypa/sampleproject/blob/master /LICENSE.txt> `_ from the `PyPA
131+ <https://github.com/pypa/sampleproject/blob/main /LICENSE.txt> `_ from the `PyPA
132132sample project <https://github.com/pypa/sampleproject> `_.
133133
134134<your package>
@@ -139,7 +139,7 @@ Python modules and packages under a single top-level package that has the same
139139:ref: `name <setup() name >` as your project, or something very close.
140140
141141For an example, see the `sample
142- <https://github.com/pypa/sampleproject/tree/master /src/sample> `_ package that's
142+ <https://github.com/pypa/sampleproject/tree/main /src/sample> `_ package that's
143143included in the `PyPA sample project <https://github.com/pypa/sampleproject >`_.
144144
145145
@@ -154,7 +154,7 @@ specific details of your project are defined.
154154
155155The most relevant arguments are explained below. Most of the snippets given are
156156taken from the `setup.py
157- <https://github.com/pypa/sampleproject/blob/master /setup.py> `_ contained in the
157+ <https://github.com/pypa/sampleproject/blob/main /setup.py> `_ contained in the
158158`PyPA sample project <https://github.com/pypa/sampleproject >`_.
159159
160160
@@ -237,7 +237,7 @@ A `content type
237237can be specified with the ``long_description_content_type `` argument, which can
238238be one of ``text/plain ``, ``text/x-rst ``, or ``text/markdown ``, corresponding
239239to no formatting, `reStructuredText (reST)
240- <http ://docutils.sourceforge.net /docs/ref/rst/restructuredtext.html#reference-names> `_,
240+ <https ://docutils.sourceforge.io /docs/ref/rst/restructuredtext.html#reference-names> `_,
241241and the Github-flavored Markdown dialect of `Markdown
242242<https://daringfireball.net/projects/markdown/> `_ respectively.
243243
@@ -476,8 +476,8 @@ and it is interpreted relative to the installation prefix
476476Each file name in ``files `` is interpreted relative to the :file: `setup.py `
477477script at the top of the project source distribution.
478478
479- For more information see the distutils section on `Installing Additional Files
480- <http://docs. python.org/3/ distutils/setupscript.html#installing -additional-files> `_ .
479+ For more information see the distutils section on :ref: `Installing Additional Files
480+ <python: distutils-additional-files>`.
481481
482482.. note ::
483483
@@ -490,8 +490,8 @@ For more information see the distutils section on `Installing Additional Files
490490``scripts ``
491491~~~~~~~~~~~
492492
493- Although ``setup() `` supports a `scripts
494- <http://docs. python.org/3/ distutils/setupscript.html# installing-scripts> `_
493+ Although ``setup() `` supports a :ref: `scripts
494+ <python: distutils- installing-scripts>`
495495keyword for pointing to pre-made scripts to install, the recommended approach to
496496achieve cross-platform compatibility is to use :ref: `console_scripts ` entry
497497points (see below).
@@ -576,7 +576,7 @@ Semantic versioning (preferred)
576576*******************************
577577
578578For new projects, the recommended versioning scheme is based on `Semantic Versioning
579- <http ://semver.org> `_, but adopts a different approach to handling pre-releases and
579+ <https ://semver.org/ > `_, but adopts a different approach to handling pre-releases and
580580build metadata.
581581
582582The essence of semantic versioning is a 3-part MAJOR.MINOR.MAINTENANCE numbering scheme,
@@ -592,7 +592,7 @@ Adopting this approach as a project author allows users to make use of :pep:`"co
592592a matching MAJOR version.
593593
594594Python projects adopting semantic versioning should abide by clauses 1-8 of the
595- `Semantic Versioning 2.0.0 specification <http ://semver.org >`_.
595+ `Semantic Versioning 2.0.0 specification <https ://semver.org/ >`_.
596596
597597Date based versioning
598598*********************
0 commit comments