forked from pool/python-sphinx-argparse
- Update to 0.3.2:
* Modernize project: Py3.6+, black, flynt, flake8, Github Actions * Fix tests for python-3.10 and add 3.10 to CI matrix - Remove patch python-sphinx-argparse-python310.patch, included upstream. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-argparse?expand=0&rev=7
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
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'
|
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 18 07:46:26 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 0.3.2:
|
||||
* Modernize project: Py3.6+, black, flynt, flake8, Github Actions
|
||||
* Fix tests for python-3.10 and add 3.10 to CI matrix
|
||||
- Remove patch python-sphinx-argparse-python310.patch, included upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 17 15:48:53 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
|
@@ -16,18 +16,14 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-sphinx-argparse
|
||||
Version: 0.3.1
|
||||
Version: 0.3.2
|
||||
Release: 0
|
||||
Summary: Sphinx extension to document argparse commands and options
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/ashb/sphinx-argparse
|
||||
Source0: https://files.pythonhosted.org/packages/source/s/sphinx-argparse/sphinx-argparse-%{version}.tar.gz
|
||||
# https://github.com/ashb/sphinx-argparse/commit/fdb7e448b2776986415cb724d9bb3eed424e23b2
|
||||
Patch0: python-sphinx-argparse-python310.patch
|
||||
BuildRequires: %{python_module CommonMark}
|
||||
BuildRequires: %{python_module Sphinx >= 1.2.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -48,6 +44,8 @@ Sphinx extension that automatically documents argparse commands and options.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
# Remove test files, they are in a seperate 'test' module.
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/test
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:82151cbd43ccec94a1530155f4ad34f251aaca6a0ffd5516d7fadf952d32dc1e
|
||||
size 14072
|
3
sphinx-argparse-0.3.2.tar.gz
Normal file
3
sphinx-argparse-0.3.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e54ad6c8f895ac6bb9d0dd9fa07e47e137a2a42ae18a714515262e86b4cc4bab
|
||||
size 14987
|
Reference in New Issue
Block a user