!4 update to upstream version 0.1.8
From: @desert-sailor Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
9df81e6a35
@ -1,17 +0,0 @@
|
||||
diff --git a/sphinxcontrib/autoprogram.py b/sphinxcontrib/autoprogram.py
|
||||
index c60cf68..1f051bb 100644
|
||||
--- a/sphinxcontrib/autoprogram.py
|
||||
+++ b/sphinxcontrib/autoprogram.py
|
||||
@@ -476,7 +476,11 @@ class ScannerTestCase(unittest.TestCase):
|
||||
# section: default optionals
|
||||
program, options, group = sections[1]
|
||||
self.assertEqual([], program)
|
||||
- self.assertEqual("optional arguments", group.title)
|
||||
+ # See https://github.com/sphinx-contrib/autoprogram/issues/24
|
||||
+ if sys.version_info >= (3, 10):
|
||||
+ self.assertEqual('options', group.title)
|
||||
+ else:
|
||||
+ self.assertEqual('optional arguments', group.title)
|
||||
self.assertEqual(None, group.description)
|
||||
self.assertEqual(2, len(options))
|
||||
self.assertEqual(
|
||||
@ -1,12 +1,11 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-sphinxcontrib-autoprogram
|
||||
Version: 0.1.7
|
||||
Release: 2
|
||||
Version: 0.1.8
|
||||
Release: 1
|
||||
Summary: Documenting CLI programs
|
||||
License: BSD
|
||||
URL: https://github.com/sphinx-contrib/autoprogram
|
||||
Source0: https://files.pythonhosted.org/packages/23/ca/ffb97adb8938774c0746490d0e6fb1391bf04dc9b32902eff84e2a263d44/sphinxcontrib-autoprogram-0.1.7.tar.gz
|
||||
Patch0: Fix-argparse-output-for-Python3.10-compatibility.patch
|
||||
Source0: https://files.pythonhosted.org/packages/d6/15/77056d932006fde8ea56cd21c5d788bed2d9d2c664234a85f3821732039b/sphinxcontrib-autoprogram-0.1.8.tar.gz
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Documenting CLI programs
|
||||
@ -36,7 +35,7 @@ Provides: python3-sphinxcontrib-autoprogram-doc
|
||||
Documenting CLI programs
|
||||
|
||||
%prep
|
||||
%autosetup -n sphinxcontrib-autoprogram-0.1.7 -p1
|
||||
%autosetup -n sphinxcontrib-autoprogram-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
@ -81,6 +80,9 @@ mv %{buildroot}/doclist.lst .
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jul 19 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.1.8-1
|
||||
- update to 0.1.8
|
||||
|
||||
* Tue Jul 12 2022 huangtianhua <huangtianhua@huawei.com> - 0.1.7-2
|
||||
- Fix argparse output for Python 3.10 compatibility
|
||||
|
||||
|
||||
Binary file not shown.
BIN
sphinxcontrib-autoprogram-0.1.8.tar.gz
Normal file
BIN
sphinxcontrib-autoprogram-0.1.8.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user