Adam Turner
7cce00aa7d
Refactor `sphinx.util.inspect
` and tests ( #11527 )
2023-07-28 02:05:40 +01:00
Adam Turner
c9d4a1a204
Correctly copy extentionless template files
2023-07-28 00:49:53 +01:00
Adam Turner
49d8304670
Start using `pathlib.Path
and deprecate
sphinx.testing.path
` ( #11526 )
2023-07-28 00:39:12 +01:00
Kayce Basques
23c7fdde75
Differentiate the colour of previously-visited hyperlinks ( #11390 )
...
Add ``a:visited`` to the CSS templates
2023-07-27 23:02:14 +01:00
James Addison
467e94dc62
object inspection: produce deterministic descriptions for nested collection datastructures ( #11312 )
...
``util.inspect.object_description`` already attempts to sort collections, but this can fail.
This commit handles the failure case by using string-based object descriptions
as a fallback deterministic sort ordering, and protects against recursive collections.
Co-authored-by: Chris Lamb <lamby@debian.org>
Co-authored-by: Faidon Liambotis <paravoid@debian.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-07-27 22:45:51 +01:00
Adam Turner
7d16dc0cac
Use `time.strftime
` for date formatting in the EUPB builder ( #11525 )
...
When ``language`` is hardcoded to English, we can avoid the indirection of
``sphinx.util.i18n.format_date`` and Babel.
2023-07-27 22:11:15 +01:00
Adam Turner
a01e1a21ac
Merge branch '7.1.x'
...
# Conflicts:
# CHANGES
# sphinx/__init__.py
# sphinx/config.py
2023-07-27 21:38:35 +01:00
Adam Turner
d8d73c16b8
Bump to 7.1.1 final
2023-07-27 21:35:23 +01:00
Adam Turner
a54e630a21
[internationalisation] Update message catalogues
2023-07-27 21:34:26 +01:00
Adam Turner
8452300d54
Fix multi-line copyright when `SOURCE_DATE_EPOCH
` is set ( #11524 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2023-07-27 21:27:14 +01:00
Adam Turner
fe08cec019
bump version
2023-07-27 20:20:33 +01:00
Adam Turner
cb6d568715
Enable `strict-optional
` for several more modules ( #11523 )
...
This enables mypy's ``strict-optional`` mode for:
* ``sphinx.builders.html``
* ``sphinx.builders.latex``
* ``sphinx.domains.python``
* ``sphinx.domains.std``
* ``sphinx.environment``
* ``sphinx.ext.apidoc``
* ``sphinx.ext.autodoc``
* ``sphinx.ext.autodoc.importer``
* ``sphinx.ext.autosummary``
* ``sphinx.ext.autosummary.generate``
* ``sphinx.ext.inheritance_diagram``
* ``sphinx.ext.intersphinx``
* ``sphinx.ext.imgmath``
* ``sphinx.ext.mathjax``
* ``sphinx.ext.napoleon.docstring``
* ``sphinx.registry``
* ``sphinx.writers.latex``
2023-07-27 20:17:35 +01:00
picnixz
5233086b8c
Add `tests/test-server.lock
to
.gitignore
` ( #11520 )
2023-07-27 17:58:32 +01:00
Adam Turner
5cf3dce36e
Deprecate `md5
and
sha1
wrappers in
sphinx.util
` ( #11512 )
2023-07-25 02:29:28 +01:00
Adam Turner
f804da4b45
Add changelog entry for removal of Python 3.8 support
2023-07-25 02:09:21 +01:00
Adam Turner
ad61e41157
Drop support for Python 3.8 ( #11511 )
2023-07-25 02:07:23 +01:00
Adam Turner
80ec979861
Bump version
2023-07-24 23:49:56 +01:00
Adam Turner
e560f6334a
Bump to 7.1.0 final
2023-07-24 20:34:10 +01:00
Adam Turner
066e0fabc6
Add translation progress information ( #11509 )
...
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
2023-07-24 20:19:31 +01:00
Adam Turner
0882914d5c
Target PyPI in create-release.yml
2023-07-24 16:52:37 +01:00
Adam Turner
21fbee5e83
Fix OIDC token payload
2023-07-24 16:42:36 +01:00
Adam Turner
1a403e4f9a
Add informational log messaging
2023-07-24 16:39:15 +01:00
Adam Turner
258b0ea9fc
Revert "Switch to using `github.request
`"
...
This reverts commit f9c89e5d84
.
2023-07-24 16:30:36 +01:00
Adam Turner
f9c89e5d84
Switch to using `github.request
`
2023-07-24 16:08:01 +01:00
Adam Turner
52c7f66ce1
Use the correct token minting URL for TestPyPI
2023-07-24 15:40:25 +01:00
Adam Turner
6079f28faa
Install twine in PyPI publish workflow
2023-07-24 15:26:17 +01:00
Adam Turner
3d43b9efdb
Fix github-script syntax in create-release.yml
2023-07-24 15:20:28 +01:00
Adam Turner
a539ce78f5
Add GitHub Actions environment; fix variable names
2023-07-24 15:12:46 +01:00
Adam Turner
c161e9c286
Publish releases to PyPI
...
Implement the PyPI trusted publisher OIDC flow within GitHub Actions.
2023-07-24 14:58:06 +01:00
github-actions[bot]
05c3ad0327
[bot]: Update message catalogues ( #11255 )
...
Co-authored-by: AA-Turner <AA-Turner@users.noreply.github.com>
2023-07-24 13:45:52 +01:00
Adam Turner
5c31195e91
Include the translated string in babel error messages
2023-07-24 13:33:12 +01:00
Adam Turner
1437d2a746
Reduce heading underline length for "Testing"
2023-07-24 13:00:29 +01:00
Adam Turner
dc14b4288e
Update CHANGES for Sphinx 7.1.0
2023-07-24 12:51:58 +01:00
Adam Turner
914c317a1e
Provide timezone information in `datetime.fromtimestamp
`
...
Python 3.12 has deprecated ``datetime.utcfromtimestamp``,
use timezone-aware datetime objects instead.
2023-07-24 12:40:28 +01:00
picnixz
82bc15aec3
Enable skipping anchor verification on a per-URL basis ( #11489 )
...
Add a new ``linkcheck_anchors_ignore_for_url`` configuration variable.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-07-24 12:15:42 +01:00
James Addison
d15a837c61
Emend hyperlinks within the CHANGES and EXAMPLES ( #11506 )
...
* Remove "dead" links
* Update project links to the correct hostnames
2023-07-24 11:49:44 +01:00
Adam Turner
e4d1477c05
Test with Python 3.13 alpha releases ( #11507 )
2023-07-24 11:46:14 +01:00
picnixz
e11bf76919
Fix `MemoryError
in
sphinx.ext.intersphinx
when using
None
or
typing.*
` as inline type references ( #11338 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-07-24 11:35:12 +01:00
Adam Turner
24b4d65a02
Re-structure index entry processing ( #11505 )
2023-07-24 03:17:29 +01:00
picnixz
480630c649
Support PEP 695 and PEP 696 syntax in the Python domain ( #11444 )
...
* Generic classes can be documented with ``.. py:class::`` using PEP 695 syntax:
.. code:: rst
.. py:class:: Sequence[T]
* Generic functions can be documented with ``.. py:function::`` using PEP 695 syntax:
.. code:: rst
.. py:function:: foo[T](x: T)
* Default values for type bounds are supported.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-07-23 23:22:40 +01:00
Adam Turner
f5aadc1c3f
Remove "Release signatures" section of the README
...
PyPI has stopped supporting signed releases.
https://blog.pypi.org/posts/2023-05-23-removing-pgp/
2023-07-23 23:17:46 +01:00
James Addison
450ad637ac
Begin using session-based HTTP requests in the linkcheck builder ( #11503 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-07-23 22:23:08 +01:00
picnixz
1cb52d5664
Improve traceback messages in parallel builds ( #11452 )
2023-07-23 21:33:57 +01:00
Adam Turner
ae866b1289
Avoid deprecated `Node.traverse
method in
test_node_translated_attribute
`
2023-07-23 21:33:15 +01:00
danieleades
4de540efb6
Enable mypy 'strict optional' for 19 modules ( #11422 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-07-23 21:29:04 +01:00
Manuel Kaufmann
f4a47f1401
Keep the `translated
` attribute on translated nodes ( #11502 )
...
This particular commit ensures that the ``translated`` attribute
is retained on translated nodes so that developers may use it
to improve the experience on translations.
This attribute can be useful to calculate
the translated percentage of a particular document,
to visually mark paragraphs as not translated,
and many other applications.
2023-07-23 21:00:24 +01:00
danieleades
d564a8ba11
shrink mypy whitelist for `sphinx.builders
` ( #11396 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-07-23 18:21:29 +01:00
danieleades
edd9ea0a39
shrink whitelist for `sphinx.ext.autodoc.type_comment
` ( #11400 )
...
Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
2023-07-23 17:49:18 +01:00
danieleades
f06ef37017
shrink mypy whitelist for `sphinx.application
` ( #11395 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-07-23 17:47:01 +01:00
danieleades
554d2eb399
shrink mypy whitelist for `sphinx.environment.adapters.indexentries
` ( #11421 )
2023-07-23 17:26:12 +01:00