forked from pool/python-sphinx-argparse
- version update to 0.3.1
0.3.1
Include tests in sdist
0.3.0
First release from ashb/sphinx-argparse
Declare that parallel builds are supported (issue #131).
- deleted sources
- LICENSE-sphinx-argparse (in tarball)
- added patches
fix fdb7e448b2
+ python-sphinx-argparse-python310.patch
OBS-URL: https://build.opensuse.org/request/show/955669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-argparse?expand=0&rev=5
16 lines
757 B
Diff
16 lines
757 B
Diff
diff --git a/sphinxarg/parser.py b/sphinxarg/parser.py
|
|
index 9a6f76a..89583c6 100644
|
|
--- a/sphinxarg/parser.py
|
|
+++ b/sphinxarg/parser.py
|
|
@@ -154,7 +154,9 @@ def parse_parser(parser, data=None, **kwargs):
|
|
continue
|
|
|
|
# Upper case "Positional Arguments" and "Optional Arguments" titles
|
|
- if action_group.title == 'optional arguments':
|
|
+ # Since python-3.10 'optional arguments' changed to 'options'
|
|
+ # more info: https://github.com/python/cpython/pull/23858
|
|
+ if action_group.title == 'optional arguments' or action_group.title == 'options':
|
|
action_group.title = 'Named Arguments'
|
|
if action_group.title == 'positional arguments':
|
|
action_group.title = 'Positional Arguments'
|