Matt Wozniski
8248be31db
autodoc: Reset `sys.modules
` on partial import failure ( #11645 )
...
If importing with ``TYPE_CHECKING is True`` fails, reset the state of ``sys.modules``
so that the attempt with ``TYPE_CHECKING is False`` may succeed.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-29 20:05:41 +01:00
Benjamin Cabé
e494baa9dd
Recommend correct replacement names for deprecated APIs ( #11655 )
2023-08-29 17:07:27 +01:00
Adam Turner
123690abd0
Rephrase the CHANGES entry for GH-11649
2023-08-28 12:37:06 +01:00
Dmitry Shachnev
3e943d9e79
Resolve all paths in the include directive ( #11650 )
...
Because pytest's base tmp_path is also in /tmp, ``source`` here is relative path,
and thus is not properly converted to doc name.
So the test fails because `sources_reported` dict has a key like
``../../../pytest/pytest-0/directive-include/baz/baz``,
and ``assert "baz/baz" in sources_reported`` fails.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-28 04:33:42 +00:00
Adam Turner
3037f8599c
Bump version
2023-08-28 05:16:01 +01:00
Adam Turner
3256f1f220
Bump to 7.2.4 final
2023-08-28 05:16:00 +01:00
Dmitry Shachnev
2f025a4b22
linkcheck: Fix conversion from UTC time to the UNIX epoch ( #11649 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-28 03:39:13 +00:00
Adam Turner
1567281287
autodoc: Fix UnboundLocalError in `filter_members
` ( #11651 )
2023-08-28 04:35:26 +01:00
Adam Turner
5e88b9f886
Fix the MoveModuleTargets transform ( #11647 )
...
This resolves a regression introduced in GH-10478
(commit 97d2c5da2f
).
2023-08-26 09:30:28 +00:00
Shengyu Zhang
694fcee13d
Fix markup in CHANGES ( #11639 )
2023-08-26 10:15:17 +01:00
Adam Turner
c503c90090
Improve `pathlib
` type annotations ( #11646 )
2023-08-26 10:13:13 +01:00
Adam Turner
bf339b123e
Bump version
2023-08-26 09:54:01 +01:00
Adam Turner
2f6ea1422b
Bump to 7.2.3 final
2023-08-23 23:17:19 +01:00
Adam Turner
511e4070aa
Implement `bool()
` for string paths
2023-08-23 22:58:47 +01:00
Adam Turner
494de7327f
Implement `hash()
` for string paths
2023-08-23 22:52:00 +01:00
Adam Turner
2986aa113c
Override special methods for string paths
2023-08-23 22:45:58 +01:00
Adam Turner
07b87e9512
Update CHANGES for 7.2.3
2023-08-23 21:19:34 +01:00
Adam Turner
6b17dd1b28
Support string methods on path objects ( #11619 )
2023-08-23 19:33:56 +01:00
Adam Turner
a73fb59a71
Support positional-only parameters in classmethods ( #11635 )
2023-08-23 19:33:16 +01:00
Adam Turner
02cb02ccfb
Fix invocation of `python -m sphinx build
`
2023-08-22 01:14:18 +01:00
Adam Turner
6183b6abee
Require sphinxcontrib-serializinghtml 1.1.9 or later
2023-08-21 00:28:26 +01:00
Zack Cerza
1e16f21019
Fix regression in `autodoc.Documenter.parse_name
` ( #11613 )
...
If the assert statement added in GH-11523 fails,
the build fails and the user only sees
``assert matched is not None``.
With this change, the user gets a proper warning message
containing the name of the offending module,
and the build will succeed.
Signed-off-by: Zack Cerza <zack@redhat.com>
Co-authored-by: Zack Cerza <zack@redhat.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-20 22:33:36 +00:00
Adam Turner
5d929d9778
Bump version
2023-08-18 18:07:45 +01:00
Adam Turner
ed84d63e6f
Bump to 7.2.2 final
2023-08-17 17:56:38 +01:00
github-actions[bot]
ea4a73e148
[bot]: Update message catalogues ( #11612 )
...
Co-authored-by: AA-Turner <AA-Turner@users.noreply.github.com>
2023-08-17 17:55:10 +01:00
Adam Turner
e47846a812
Fix `:noindex:
for
PyModule
and JSModule
`
2023-08-17 17:54:30 +01:00
Adam Turner
b2fc47fe3d
Add CHANGES entry for renaming the `StateMachine.insert_input()
` parameter
2023-08-17 17:33:27 +01:00
Adam Turner
0835c3e8ea
Fix regression in `SingleFileHTMLBuilder._get_local_toctree
`
2023-08-17 17:31:53 +01:00
Adam Turner
49dc0dd399
Fix asset class string interface membership testing
2023-08-17 17:31:53 +01:00
Kyle Sunden
8512855776
Fix signature of docutils include_source monkeypatch ( #11610 )
2023-08-17 17:31:53 +01:00
Adam Turner
e1d9068c60
Bump version
2023-08-17 17:31:53 +01:00
Adam Turner
441a9e4d62
Bump to 7.2.1 final
2023-08-17 16:00:59 +01:00
Adam Turner
ec31853730
Restore `TocTree.get_toctree_ancestors()
`
2023-08-17 15:53:30 +01:00
Adam Turner
0c22d9c9ff
Restore hidden pass-through calls when adding asset files
2023-08-17 15:48:43 +01:00
Adam Turner
ab71cc5156
Restore and deprecate the str interface to the asset classes
2023-08-17 15:47:22 +01:00
Adam Turner
ff15b6f3b2
Bump version
2023-08-17 15:26:20 +01:00
Adam Turner
da9f8a5c33
Bump to 7.2.0 final
2023-08-17 04:29:41 +01:00
Adam Turner
794324ac00
Declare support for Python 3.13
2023-08-17 04:28:52 +01:00
github-actions[bot]
03bceac43f
[bot]: Update message catalogues ( #11538 )
...
Co-authored-by: AA-Turner <AA-Turner@users.noreply.github.com>
2023-08-17 04:20:15 +01:00
Adam Turner
aecebcea9a
Make `_resolve_toctree()
` keyword-only
2023-08-17 04:10:53 +01:00
Bénédikt Tran
76658c49a9
Fix `sphinx.ext.autodoc.preserve_defaults
` ( #11550 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-17 01:19:25 +00:00
Lukas Engelter
4dee162990
Fix layout issues in the agogo theme for smaller viewports ( #11594 )
...
Co-authored-by: Lukas Engelter <lukas.engelter@netgo.de>
2023-08-17 01:30:56 +01:00
Adam Turner
4ddbee4a7c
Fix `console_scripts
` entry points
2023-08-17 01:25:15 +01:00
Adam Turner
4add50a5f0
Remove unneeded type annotation
2023-08-16 23:50:43 +01:00
Adam Turner
9d8ef833db
Fix `test_inspect_main_noargs
`
2023-08-16 23:49:30 +01:00
Adam Turner
ddf8a8e7d4
Add CHANGES entry for GH-11533
2023-08-16 23:27:51 +01:00
Adam Turner
2b9ee41f27
Consolidate `sys.argv
` handling
2023-08-16 23:22:14 +01:00
Adam Turner
eab54533a5
Ignore E251 (Unexpected spaces around equals)
2023-08-15 18:36:47 +01:00
Adam Turner
93340a2ae0
Enable E275 (Missing whitespace after keyword)
2023-08-15 18:35:14 +01:00
Adam Turner
dfd91bedf6
Enable E274 (Tab before keyword)
2023-08-15 18:34:54 +01:00