summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Refactor ``status_iterator``HEADmasterAdam Turner2023-05-151-15/+22
|
* Allow ``copyright`` to contain multiple entries (#10983)Stefanie Molin2023-05-113-0/+33
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Allow multi-line object description signatures (#11011)TLouf2023-05-1113-8/+1127
| | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com> Co-authored-by: TLouf <loufthomas@gmail.com>
* html builder: Append CRC32 checksum to asset URIs (#11415)Adam Turner2023-05-112-13/+26
|
* Warn on deprecated Python-specific index types (#11412)Adam Turner2023-05-097-25/+3
|
* linkcheck: Use context managers for HTTP requests (#11318)James Addison2023-05-0911-11/+27
| | | | | | | | This closes HTTP responses when no content reads are required, as when requests are made in streaming mode, ``requests`` doesn't know whether the caller may intend to later read content from a streamed HTTP response object and holds the socket open. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Remove HTML 4 support (#11385)Adam Turner2023-04-281-12/+10
|
* Make ``locale`` required in ``sphinx.util.i18n.format_date()`` (#11366)Adam Turner2023-04-271-6/+0
|
* Remove the deprecated ``sphinx.ext.napoleon.iterators`` module (#11364)Adam Turner2023-04-271-358/+0
|
* Remove the deprecated Setuptools integration (#11363)Adam Turner2023-04-273-3/+0
|
* Update test for Alabaster version tupleAdam Turner2023-04-261-1/+5
|
* Revert the default type of ``nitpick_ignore[_regex]`` to ``list``Adam Turner2023-04-251-0/+15
|
* Revert "Support and prefer ``.jinja`` to ``_t`` for static templates ↵James Addison2023-04-239-141/+10
| | | | | (#11165)" (#11329) This reverts commit 5d13215b58f93c6be8255ef2e3e20836508c7d47.
* Partially revert "Disable localisation when SOURCE_DATE_EPOCH is set ↵Adam Turner2023-04-212-47/+0
| | | | | (#10949)" (#11343) This keeps some of the added tests, and avoids a full revert of ``sphinx.locale``.
* Use ``overwrite_file`` context manager in ``test_ext_autodoc_configs`` (#11320)Martin Liška2023-04-211-64/+69
| | | | | | | The tests modify source files (e.g. index.rst) that are not restored and thus another test could read an altered source file, it leading to unexpected test results. Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* Add missing test decorator for ``test_util_inspect`` (#11321)Martin Liška2023-04-211-0/+1
|
* Increase timeout threshold for ``linkcheck`` tests (#11326)James Addison2023-04-219-9/+9
|
* Update CHANGES for PR #11333Bénédikt Tran2023-04-181-7/+10
|
* Fix duplicated labels in TeX output (#11093)Bénédikt Tran2023-04-177-0/+91
|
* test_build_latex: move output to a separate output dirMartin Liska2023-04-131-6/+9
| | | | | Related: #11285 Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com>
* Use leaner TeX syntax (follow-up to #11319)Jean-François B2023-04-119-18/+18
| | | | Because it is cool. And avoids overhead. Matter of principle.
* LaTeX: get aligned longtable obey current list indentJean-François B2023-04-1111-12/+48
| | | | | | Fix #11268. Thanks to @picnixz.
* Support and prefer ``.jinja`` to ``_t`` for static templates (#11165)James Addison2023-04-079-10/+141
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Disable localisation when ``SOURCE_DATE_EPOCH`` is set (#10949)James Addison2023-04-074-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit disables Sphinx's localisation features when reproducible builds are requested, as determined by a non-empty SOURCE_DATE_EPOCH_ environment variable. The `Reproducible Builds`_ project aims to provide confidence to consumers of packaged software that the artefacts they're downloading and installing have not been altered by the environment they were built in, and can be replicated at a later date if required. Builds of localised documentation using Sphinx currently account for a large category of reproducible build testing failures, because the builders intentionally use varying environment locales at build-time. This can affect the contents of the ``objects.inv`` file. During investigation, it turned out that many ``gettext``-localised values (particularly in Python modules under ``sphinx.domains``) were being translated at module-load-time and would not subsequently be re-localised. This creates two unusual effects: 1. Attempting to write a test case to build the same application in two different languages was not initially possible, as the first-loaded translation catalogue (as found in the ``sphinx.locale.translators`` global variable) would remain in-use for subsequent application builds under different locales. 2. Localisation of strings could vary depending on whether the relevant modules were loaded before or after the resource catalogues were populated. We fix this by performing all translations lazily so that module imports can occur in any order and localisation of inventory entries should occur only when translations of those items are requested. Localisation can then be disabled by configuring the ``gettext`` language to the ISO-639-3 'undetermined' code (``'und'``), as this should not have an associated translation catalogue. We also want to prevent ``gettext`` from attempting to determine the host's locale from environment variables (including ``LANGUAGE``). .. _SOURCE_DATE_EPOCH: https://reproducible-builds.org/docs/source-date-epoch/ .. _Reproducible Builds: https://www.reproducible-builds.org/
* autosummary: Support documenting inherited attributes (#10691)Jens Hedegaard Nielsen2023-04-063-1/+69
| | | | | | | | | | | The current implementation of ``import_ivar_by_name`` filters attributes if the name of the object that the attribute belongs to does not match the object being documented. However, for inherited attributes this is not the case. Filtering only on the attribute name seems to resolve the issue. It is not clear to me if there are any unwanted sideeffects of this and we should filter on the list of qualnames for the object and all its super classes (if any). Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Enable 'nit-picky mode' for Sphinx's documentationAdam Turner2023-04-061-2/+2
| | | | | Fix several reference errors throughout the documentation and set ``nitpick_ignore`` in ``doc/conf.py``.
* Support type comments in ``PropertyDocumenter`` (#11298)picnixz2023-04-065-0/+77
|
* Fix instability in ``test_ext_viewcode`` (#11297)Martin Liška2023-04-061-2/+4
| | | | Use ``freshenv`` argument and remove ``outdir`` for one test as the previous one can leave an unexpected leftover.
* Fix instability in ``test_build_epub`` (#11296)Martin Liška2023-04-061-3/+3
| | | Some tests need ``app.builder.build_all`` in order to have complete rebuild.
* Use a shared file-system lock in ``create_server`` (#11294)Martin Liška2023-04-062-9/+19
| | | | | | | With parallel run of tests, one gets "Address already in use" errors as all tests attempt to bind to the same port. Fix it with a shared file-system lock. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Autosummary: Extend ``__all__`` members to template rendering (#10811)Clément Pinard2023-04-067-2/+95
| | | | | | | | | | | | | When ``False``, the ``autosummary_ignore_module_all`` option adds members to the module's members entry that will be used for autodoc, but otherwise ignores it. As such, if a class is available in the ``__all__``, it won't be generated. This commit aims to extend the ``__all__`` handling not only to members, but also to corresponding attribute types (function, classes, exceptions, modules) The ``imported_members`` option is set to ``True`` if the object has an ``__all__`` member and ``autosummary_ignore_module_all`` is ``False``
* Resolve lint errors from Ruff 0.0.261Adam Turner2023-04-051-3/+3
|
* Allow parallel execution of tests in ``test_search`` (#11292)Martin Liška2023-04-052-1/+4
| | | Add various ``app.builder.build_all()`` calls.
* Remove hidden state from ``test_nosearch`` (#11291)Martin Liška2023-04-054-15/+18
| | | | | | Currently, ``test_nosearch`` depends on ``html_search_language='de'`` from a previous test and thus fails if run individually. Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* Add an option for displaying short ``Literal`` types (#11109)Adam Turner2023-04-051-0/+67
| | | | | | The new ``python_display_short_literal_types`` configuration option for the ``py`` domain controls display of PEP 586 ``Literal`` types. The 'short' format is inspired by PEP 604, using the bitwise OR operator to distinguish the possible legal values for the argument.
* Add unit test for issue #11110 as fixed by #11113Jean-François B2023-04-036-0/+74
|
* Let the #11276 test actually be one which would have failed earlierJean-François B2023-03-311-0/+10
|
* Resolve lint errors from Ruff 0.0.260Adam Turner2023-03-311-1/+1
|
* Fix #11274: external links may break PDF build if under \sphinxupquoteJean-François B2023-03-312-0/+14
|
* Fix typos found by codespellDimitri Papadopoulos2023-03-273-4/+4
|
* LaTeX: let mark-up for seealso directive use explicit colon (fix #11264)Jean-François B2023-03-261-1/+1
|
* Increase ``test_linkcheck`` timeoutsAdam Turner2023-03-249-13/+9
|
* Speed up ``test_linkcheck``Adam Turner2023-03-2417-119/+191
|
* Resolve lint errors from Ruff 0.0.259Adam Turner2023-03-234-4/+5
|
* Improve static typing in ``intersphinx`` et alAdam Turner2023-03-171-1/+1
|
* Deprecate legacy ``intersphinx_mapping`` format (#11247)Adam Turner2023-03-171-1/+4
| | | This format was made obsolete in Sphinx 1.0, but never formally deprecated.
* Include source in highlighting warnings (#11150)Jeremy Maitin-Shepard2023-03-173-4/+5
| | | | | | | | | | | | | If pygments fails to lex a source string as the specified highlight language, Sphinx prints a warning. Previously, that warning did not include the actual source text, although it does include location information. However, in some cases the location information may be missing, there may be multiple highlighted literals on the same line, or the rST is automatically generated somehow. In such cases, it can be difficult to determine the source text that led to the error. With this change, the source text is included in the warning.
* Drop OrderedDictAdam Turner2023-03-051-4/+1
| | | | Since Python 3.7, dicts maintain insertion order.
* Remove tests that rely on setuptoolsAdam Turner2023-03-057-178/+0
|
* Remove ``.egg`` support from pycode ``ModuleAnalyser``Adam Turner2023-03-057-65/+0
| | | | Python eggs are a now-obsolete binary distribution format.