From 4947ff4d4f53c1ff35a73b86e417085c8e796978d620367933751009682955f9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 18 Oct 2022 07:47:48 +0000 Subject: [PATCH] - 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 --- python-sphinx-argparse-python310.patch | 15 --------------- python-sphinx-argparse.changes | 8 ++++++++ python-sphinx-argparse.spec | 8 +++----- sphinx-argparse-0.3.1.tar.gz | 3 --- sphinx-argparse-0.3.2.tar.gz | 3 +++ 5 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 python-sphinx-argparse-python310.patch delete mode 100644 sphinx-argparse-0.3.1.tar.gz create mode 100644 sphinx-argparse-0.3.2.tar.gz diff --git a/python-sphinx-argparse-python310.patch b/python-sphinx-argparse-python310.patch deleted file mode 100644 index 4c22ef8..0000000 --- a/python-sphinx-argparse-python310.patch +++ /dev/null @@ -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' diff --git a/python-sphinx-argparse.changes b/python-sphinx-argparse.changes index 36b2679..85ab649 100644 --- a/python-sphinx-argparse.changes +++ b/python-sphinx-argparse.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Oct 18 07:46:26 UTC 2022 - Steve Kowalik + +- 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 diff --git a/python-sphinx-argparse.spec b/python-sphinx-argparse.spec index 90e29e1..44944fa 100644 --- a/python-sphinx-argparse.spec +++ b/python-sphinx-argparse.spec @@ -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 diff --git a/sphinx-argparse-0.3.1.tar.gz b/sphinx-argparse-0.3.1.tar.gz deleted file mode 100644 index 3dec086..0000000 --- a/sphinx-argparse-0.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:82151cbd43ccec94a1530155f4ad34f251aaca6a0ffd5516d7fadf952d32dc1e -size 14072 diff --git a/sphinx-argparse-0.3.2.tar.gz b/sphinx-argparse-0.3.2.tar.gz new file mode 100644 index 0000000..e672380 --- /dev/null +++ b/sphinx-argparse-0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e54ad6c8f895ac6bb9d0dd9fa07e47e137a2a42ae18a714515262e86b4cc4bab +size 14987