Skip to content

Commit 18ce76d

Browse files
authored
📚 Integrate sphinx-issues extension (#3655)
1 parent 9ae4007 commit 18ce76d

File tree

5 files changed

+43
-41
lines changed

5 files changed

+43
-41
lines changed

docs/changelog.rst

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Bugfixes - 4.30.0
6969
- Makes the error message more clear when pyproject.toml file cannot be loaded
7070
or is missing expected keys. (:issue:`3578`)
7171
- The :func:`tox_extend_envs() hook <tox.plugin.spec.tox_extend_envs>`
72-
recently added in :pull:`3591` turned out to not work well with
72+
recently added in :pr:`3591` turned out to not work well with
7373
``tox run``. It was fixed internally, not to exhaust the underlying
7474
iterator on the first use.
7575

@@ -309,7 +309,7 @@ v4.18.1 (2024-09-07)
309309

310310
Bugfixes - 4.18.1
311311
~~~~~~~~~~~~~~~~~
312-
- Fix and test the string spec for the ``sys.executable`` interpreter (introduced in :pull:`3325`)
312+
- Fix and test the string spec for the ``sys.executable`` interpreter (introduced in :pr:`3325`)
313313
- by :user:`hroncok` (:issue:`3327`)
314314

315315
Improved Documentation - 4.18.1
@@ -1402,24 +1402,24 @@ Features - 4.0.0a10
14021402
for packages passed in via :ref:`--installpkg <tox-run---installpkg>` - by :user:`gaborbernat`. (:issue:`2204`)
14031403
- Add support for rewriting script invocations that have valid shebang lines when the ``TOX_LIMITED_SHEBANG`` environment
14041404
variable is set and not empty - by :user:`gaborbernat`. (:issue:`2208`)
1405-
- Support for the ``--discover`` CLI flag - by :user:`gaborbernat`. (:pull:`2245`)
1405+
- Support for the ``--discover`` CLI flag - by :user:`gaborbernat`. (:pr:`2245`)
14061406
- Moved the python packaging logic into a dedicate package :pypi:`pyproject-api` and
1407-
use it as a dependency - by :user:`gaborbernat`. (:pull:`2274`)
1408-
- Drop python 3.6 support - by :user:`gaborbernat`. (:pull:`2275`)
1407+
use it as a dependency - by :user:`gaborbernat`. (:pr:`2274`)
1408+
- Drop python 3.6 support - by :user:`gaborbernat`. (:pr:`2275`)
14091409
- Support for selecting target environments with a given factor via the :ref:`-f <tox-run--f>` CLI environment flag - by
1410-
:user:`gaborbernat`. (:pull:`2290`)
1410+
:user:`gaborbernat`. (:pr:`2290`)
14111411

14121412
Bugfixes - 4.0.0a10
14131413
~~~~~~~~~~~~~~~~~~~
14141414
- Fix ``CTRL+C`` is not stopping the process on Windows - by :user:`gaborbernat`. (:issue:`2159`)
14151415
- Fix list/depends commands can create tox package environment as runtime environment and display an error message
1416-
- by :user:`gaborbernat`. (:pull:`2234`)
1416+
- by :user:`gaborbernat`. (:pr:`2234`)
14171417

14181418
Deprecations and Removals - 4.0.0a10
14191419
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14201420
- ``tox_add_core_config`` and ``tox_add_env_config`` now take a ``state: State`` argument instead of a configuration one,
14211421
and ``Config`` not longer provides the ``envs`` property (instead users should migrate to ``State.envs``) - by
1422-
:user:`gaborbernat`. (:pull:`2275`)
1422+
:user:`gaborbernat`. (:pr:`2275`)
14231423

14241424

14251425
v4.0.0a9 (2021-09-16)
@@ -1428,7 +1428,7 @@ v4.0.0a9 (2021-09-16)
14281428
Features - 4.0.0a9
14291429
~~~~~~~~~~~~~~~~~~
14301430
- Expose the parsed CLI arguments on the main configuration object for plugins and allow plugins to define their own
1431-
configuration section -- by :user:`gaborbernat`. (:pull:`2191`)
1431+
configuration section -- by :user:`gaborbernat`. (:pr:`2191`)
14321432
- Let tox run fail when all envs are skipped -- by :user:`jugmac00`. (:issue:`2195`)
14331433
- Expose the configuration loading mechanism to plugins to define and load their own sections. Add
14341434
:meth:`tox_add_env_config <tox.plugin.spec.tox_add_env_config>` plugin hook called after the configuration environment
@@ -1444,7 +1444,7 @@ Bugfixes - 4.0.0a9
14441444
~~~~~~~~~~~~~~~~~~
14451445
- Fix env variable substitutions with defaults containing colon (e.g. URL) -- by :user:`comabrewer`. (:issue:`2182`)
14461446
- Do not allow constructing ``ConfigSet`` directly and implement ``__contains__`` for ``Loader`` -- by
1447-
:user:`gaborbernat`. (:pull:`2209`)
1447+
:user:`gaborbernat`. (:pr:`2209`)
14481448
- Fix old-new value on recreate cache miss-match are swapped -- by :user:`gaborbernat`. (:issue:`2211`)
14491449
- Report fails when report does not support Unicode characters -- by :user:`gaborbernat`. (:issue:`2213`)
14501450

@@ -1474,10 +1474,10 @@ Features - 4.0.0a8
14741474
- Add support for ``{:}`` substitution in ini files as placeholder for the OS path separator - by :user:`gaborbernat`. (:issue:`2125`)
14751475
- When cleaning directories (for tox environment, ``env_log_dir``, ``env_tmp_dir`` and packaging metadata folders) do not
14761476
delete the directory itself and recreate, but instead just delete its content (this allows the user to cd into it and
1477-
still be in a valid folder after a new run) - by :user:`gaborbernat`. (:pull:`2139`)
1477+
still be in a valid folder after a new run) - by :user:`gaborbernat`. (:pr:`2139`)
14781478
- Changes to help plugin development: simpler tox env creation argument list, expose python creation directly,
14791479
allow skipping list dependencies install command for pip and executable is only part of the python cache for virtualenv
1480-
- by :user:`gaborbernat`. (:pull:`2172`)
1480+
- by :user:`gaborbernat`. (:pr:`2172`)
14811481

14821482
Bugfixes - 4.0.0a8
14831483
~~~~~~~~~~~~~~~~~~
@@ -1489,7 +1489,7 @@ Bugfixes - 4.0.0a8
14891489
- Virtual environment creation for Python is always triggered at every run - by :user:`gaborbernat`. (:issue:`2041`)
14901490
- Add support for setting :ref:`suicide_timeout`, :ref:`interrupt_timeout` and :ref:`terminate_timeout` - by
14911491
:user:`gaborbernat`. (:issue:`2124`)
1492-
- Parallel show output not working when there's a packaging phase in the run - by :user:`gaborbernat`. (:pull:`2161`)
1492+
- Parallel show output not working when there's a packaging phase in the run - by :user:`gaborbernat`. (:pr:`2161`)
14931493

14941494
Improved Documentation - 4.0.0a8
14951495
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1513,10 +1513,10 @@ Features - 4.0.0a7
15131513
- Implement ``[testenv] ignore_outcome`` - "a failing result of this testenv will not make tox fail" - by :user:`hexagonrecursion`. (:issue:`1947`)
15141514
- Inline plugin support via ``tox_.py``. This is loaded where the tox config source is discovered. It's a Python file
15151515
that can contain arbitrary Python code, such as definition of a plugin. Eventually we'll add a plugin that allows
1516-
succinct declaration/generation of new tox environments - by :user:`gaborbernat`. (:pull:`1963`)
1516+
succinct declaration/generation of new tox environments - by :user:`gaborbernat`. (:pr:`1963`)
15171517
- Introduce the installer concept, and collect pip installation into a ``pip`` package, also attach to this
1518-
the requirements file parsing which got a major rework - by :user:`gaborbernat`. (:pull:`1991`)
1519-
- Support CPython ``3.10`` -by :user:`gaborbernat`. (:pull:`2014`)
1518+
the requirements file parsing which got a major rework - by :user:`gaborbernat`. (:pr:`1991`)
1519+
- Support CPython ``3.10`` -by :user:`gaborbernat`. (:pr:`2014`)
15201520

15211521
Bugfixes - 4.0.0a7
15221522
~~~~~~~~~~~~~~~~~~
@@ -1534,23 +1534,23 @@ Bugfixes - 4.0.0a7
15341534
without the ``testenv:`` prefix - by :user:`jugmac00`, :user:`obestwalter`, :user:`eumiro`. (:issue:`1985`)
15351535
- Fix legacy list env command for empty/missing envlist - by :user:`jugmac00`. (:issue:`1987`)
15361536
- Requirements and constraints files handling got reimplemented, which should fix all open issues related to this area
1537-
- by :user:`gaborbernat`. (:pull:`1991`)
1537+
- by :user:`gaborbernat`. (:pr:`1991`)
15381538
- Use importlib instead of ``__import__`` - by :user:`dmendek`. (:issue:`1995`)
15391539
- Evaluate factor conditions for ``command`` keys - by :user:`jugmac00`. (:issue:`2002`)
15401540
- Prefer f-strings instead of the str.format method - by :user:`eumiro`. (:issue:`2012`)
15411541
- Fix regex validation for SHA 512 hashes - by :user:`jugmac00`. (:issue:`2018`)
15421542
- Actually run all environments when ``ALL`` is provided to the legacy env command - by :user:`jugmac00`. (:issue:`2112`)
1543-
- Move from ``appdirs`` to ``platformdirs`` - by :user:`gaborbernat`. (:pull:`2117`)
1544-
- Move from ``toml`` to ``tomli`` - by :user:`gaborbernat`. (:pull:`2118`)
1543+
- Move from ``appdirs`` to ``platformdirs`` - by :user:`gaborbernat`. (:pr:`2117`)
1544+
- Move from ``toml`` to ``tomli`` - by :user:`gaborbernat`. (:pr:`2118`)
15451545

15461546
Improved Documentation - 4.0.0a7
15471547
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15481548
- Start documenting the plugin interface. Added :meth:`tox_register_tox_env <tox.plugin.spec.tox_register_tox_env>`,
15491549
:meth:`tox_add_option <tox.plugin.spec.tox_add_option>`,
15501550
:meth:`tox_add_core_config <tox.plugin.spec.tox_add_core_config>`,
1551-
``tox_configure`` - by :user:`gaborbernat`. (:pull:`1991`)
1551+
``tox_configure`` - by :user:`gaborbernat`. (:pr:`1991`)
15521552
- Explain how ``-v`` and ``-q`` flags play together to determine CLI verbosity level - by :user:`jugmac00`. (:issue:`2005`)
1553-
- Start polishing the documentation for the upcoming final release - by :user:`jugmac00`. (:pull:`2006`)
1553+
- Start polishing the documentation for the upcoming final release - by :user:`jugmac00`. (:pr:`2006`)
15541554
- Update documentation about changelog entries for trivial changes - by :user:`jugmac00`. (:issue:`2007`)
15551555

15561556

@@ -1573,14 +1573,14 @@ Features - 4.0.0a6
15731573
- Add support for the ``pip_pre`` settings for virtual environment based tox environments - by :user:`gaborbernat`. (:issue:`1844`)
15741574
- Add support for the ``platform`` settings in tox test environments - by :user:`gaborbernat`. (:issue:`1845`)
15751575
- Add support for the ``recreate`` settings in tox test environments - by :user:`gaborbernat`. (:issue:`1846`)
1576-
- Allow Python test and packaging environments with version 2.7 - by :user:`gaborbernat`. (:pull:`1900`)
1576+
- Allow Python test and packaging environments with version 2.7 - by :user:`gaborbernat`. (:pr:`1900`)
15771577
- Do not construct a requirements file for deps in virtualenv, instead pass content as CLI argument to pip - by
1578-
:user:`gaborbernat`. (:pull:`1906`)
1578+
:user:`gaborbernat`. (:pr:`1906`)
15791579
- Do not display status update environment reports when interrupted or for the final environment ran (because at the
15801580
final report will be soon printed and makes the status update redundant) - by :user:`gaborbernat`. (:issue:`1909`)
15811581
- The ``_TOX_SHOW_THREAD`` environment variable can be used to print alive threads when tox exists (useful to debug
15821582
when tox hangs because of some non-finished thread) and also now prints the pid of the local subprocess when reporting
1583-
the outcome of an execution - by :user:`gaborbernat`. (:pull:`1915`)
1583+
the outcome of an execution - by :user:`gaborbernat`. (:pr:`1915`)
15841584

15851585
Bugfixes - 4.0.0a6
15861586
~~~~~~~~~~~~~~~~~~
@@ -1594,7 +1594,7 @@ Bugfixes - 4.0.0a6
15941594
and post was not always executed) - by :user:`gaborbernat`. (:issue:`1843`)
15951595
- Support requirement files containing ``--hash`` constraints - by :user:`gaborbernat`. (:issue:`1903`)
15961596
- Fix a bug that caused tox to never finish when pulling configuration from a tox run environment that was never executed
1597-
- by :user:`gaborbernat`. (:pull:`1915`)
1597+
- by :user:`gaborbernat`. (:pr:`1915`)
15981598

15991599
Deprecations and Removals - 4.0.0a6
16001600
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1639,11 +1639,11 @@ Bugfixes - 4.0.0a5
16391639
- fix an error that made the show configuration command crash when making the string of a config value failed,
16401640
- support empty-new lines within the set env configurations replacements,
16411641

1642-
by :user:`gaborbernat`. (:pull:`1864`)
1642+
by :user:`gaborbernat`. (:pr:`1864`)
16431643

16441644
Improved Documentation - 4.0.0a5
16451645
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646-
- Add CLI documentation - by :user:`gaborbernat`. (:pull:`1852`)
1646+
- Add CLI documentation - by :user:`gaborbernat`. (:pr:`1852`)
16471647

16481648

16491649
v4.0.0a4 (2021-01-16)
@@ -1655,7 +1655,7 @@ Features - 4.0.0a4
16551655
just ``.tox`` before public release, however to encourage testing tox 4 in parallel with tox 3 this is helpful
16561656
- by :user:`gaborbernat`. (:discussion:`1812`)
16571657
- Colorize the ``config`` command: section headers are yellow, keys are green, values remained white, exceptions are light
1658-
red and comments are cyan - by :user:`gaborbernat`. (:pull:`1821`)
1658+
red and comments are cyan - by :user:`gaborbernat`. (:pr:`1821`)
16591659

16601660
Bugfixes - 4.0.0a4
16611661
~~~~~~~~~~~~~~~~~~
@@ -1667,9 +1667,9 @@ Bugfixes - 4.0.0a4
16671667
by :user:`gaborbernat`. (:issue:`1793`)
16681668
- Fix ``RequirementsFile`` from tox is rendered incorrectly in ``config`` command - by :user:`gaborbernat`. (:issue:`1820`)
16691669
- Fix a bug in the configuration system where referring to the same named key in another env/section causes circular
1670-
dependency error - by :user:`gaborbernat`. (:pull:`1821`)
1670+
dependency error - by :user:`gaborbernat`. (:pr:`1821`)
16711671
- Raise ``ValueError`` with descriptive message when a requirements file specified does not exist
1672-
- by :user:`gaborbernat`. (:pull:`1828`)
1672+
- by :user:`gaborbernat`. (:pr:`1828`)
16731673
- Support all valid requirement file specification without delimiting space in the ``deps`` of the ``tox.ini`` -
16741674
by :user:`gaborbernat`. (:issue:`1834`)
16751675

@@ -1687,7 +1687,7 @@ Features - 4.0.0a3
16871687
- - Raise exception when variable substitution enters into a circle.
16881688
- Add ``{/}`` as substitution for os specific path separator.
16891689
- Add ``{env_bin_dir}`` constant substitution.
1690-
- Implement support for ``--discover`` flag - by :user:`gaborbernat`. (:pull:`1784`)
1690+
- Implement support for ``--discover`` flag - by :user:`gaborbernat`. (:pr:`1784`)
16911691

16921692
Bugfixes - 4.0.0a3
16931693
~~~~~~~~~~~~~~~~~~
@@ -1705,7 +1705,7 @@ Bugfixes - 4.0.0a3
17051705
arguments strip both ``'`` and ``"`` quoted outcomes).
17061706
- Allow windows paths in substitution set/default (the ``:`` character used to separate substitution arguments may
17071707
also be present in paths on Windows - do not support single capital letter values as substitution arguments) -
1708-
by :user:`gaborbernat`. (:pull:`1784`)
1708+
by :user:`gaborbernat`. (:pr:`1784`)
17091709
- Rework how we handle Python packaging environments:
17101710

17111711
- the base packaging environment changed from ``.package`` to ``.pkg``,
@@ -1730,22 +1730,22 @@ v4.0.0a2 (2021-01-09)
17301730
Features - 4.0.0a2
17311731
~~~~~~~~~~~~~~~~~~
17321732
- Add option to disable colored output, and support ``NO_COLOR`` and ``FORCE_COLOR`` environment variables - by
1733-
:user:`gaborbernat`. (:pull:`1630`)
1733+
:user:`gaborbernat`. (:pr:`1630`)
17341734

17351735
Bugfixes - 4.0.0a2
17361736
~~~~~~~~~~~~~~~~~~
1737-
- Fix coverage generation in CI - by :user:`gaborbernat`. (:pull:`1551`)
1737+
- Fix coverage generation in CI - by :user:`gaborbernat`. (:pr:`1551`)
17381738
- Fix the CI failures:
17391739

17401740
- drop Python 3.5 support as it's not expected to get to a release before EOL,
17411741
- fix test using ``\n`` instead of ``os.linesep``,
17421742
- Windows Python 3.6 does not contain ``_overlapped.ReadFileInto``
17431743

1744-
- by :user:`gaborbernat`. (:pull:`1556`)
1744+
- by :user:`gaborbernat`. (:pr:`1556`)
17451745

17461746
Improved Documentation - 4.0.0a2
17471747
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748-
- Add base documentation by merging virtualenv structure with tox 3 - by :user:`gaborbernat`. (:pull:`1551`)
1748+
- Add base documentation by merging virtualenv structure with tox 3 - by :user:`gaborbernat`. (:pr:`1551`)
17491749

17501750

17511751
v4.0.0a1

docs/changelog/3202.doc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sphinx is now set up to use :pypi:`sphinx-issues` for referencing
2+
GitHub issues and pull requests in the docs -- by :user:`webknjaz`.

docs/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"sphinx_autodoc_typehints",
4343
"sphinx_inline_tabs",
4444
"sphinx_copybutton",
45+
"sphinx_issues", # :user: and similar roles
4546
]
4647

4748
exclude_patterns = ["_build", "changelog/*", "_draft.rst"]
@@ -54,13 +55,9 @@
5455
autosectionlabel_prefix_document = True
5556

5657
extlinks = {
57-
"issue": ("https://github.com/tox-dev/tox/issues/%s", "#%s"),
58-
"pull": ("https://github.com/tox-dev/tox/pull/%s", "PR #%s"),
5958
"discussion": ("https://github.com/tox-dev/tox/discussions/%s", "#%s"),
60-
"user": ("https://github.com/%s", "@%s"),
6159
"gh_repo": ("https://github.com/%s", "%s"),
6260
"gh": ("https://github.com/%s", "%s"),
63-
"pypi": ("https://pypi.org/project/%s", "%s"),
6461
}
6562
intersphinx_mapping = {
6663
"python": ("https://docs.python.org/3", None),
@@ -80,6 +77,8 @@
8077
linkcheck_allowed_redirects = {r"https://github.com/tox-dev/tox/issues/\d+": r"https://github.com/tox-dev/tox/pull/\d+"}
8178
extlinks_detect_hardcoded_links = True
8279

80+
issues_github_path = f"{company}/{name}" # `sphinx-issues` ext
81+
8382

8483
def process_signature( # noqa: PLR0913
8584
app: Sphinx, # noqa: ARG001

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ codes with any value, so their documentation should be consulted.
307307

308308

309309
Sometimes, no exit code is given at all. An example may be found in
310-
:gh:`pytest-qt issue #170 <pytest-dev/pytest-qt/issues/170>`, where Qt was calling
310+
:issue:`pytest-qt issue #170 <pytest-dev/pytest-qt#170>`, where Qt was calling
311311
`abort() <https://unix.org/version2/sample/abort.html>`_ instead of ``exit()``.
312312

313313
Access full logs

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ docs = [
109109
"sphinx-autodoc-typehints>=3.5",
110110
"sphinx-copybutton>=0.5.2",
111111
"sphinx-inline-tabs>=2023.4.21",
112+
"sphinx-issues>=5.0.1",
112113
"sphinxcontrib-towncrier>=0.2.1a0",
113114
"towncrier>=25.8",
114115
]

0 commit comments

Comments
 (0)