From f32d46242ecbb8654ac67b3ebca70ce42348efd2c296269b1943ee1f4592f3f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 May 2019 06:46:59 +0000 Subject: [PATCH 1/4] Accepting request 647084 from security:idm Initial submit to devel:languages:python prior to Factory submission OBS-URL: https://build.opensuse.org/request/show/647084 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=1 --- python-argparse-manpage.changes | 5 +++++ python-argparse-manpage.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-argparse-manpage.changes b/python-argparse-manpage.changes index 49b9ae4..7298266 100644 --- a/python-argparse-manpage.changes +++ b/python-argparse-manpage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 12 14:29:54 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary. Repair grammar issues in description. + ------------------------------------------------------------------- Thu Oct 11 15:04:42 UTC 2018 - Marcus Rueckert diff --git a/python-argparse-manpage.spec b/python-argparse-manpage.spec index 495e0c5..d041b9c 100644 --- a/python-argparse-manpage.spec +++ b/python-argparse-manpage.spec @@ -21,7 +21,7 @@ Name: python-argparse-manpage Version: 1.1 Release: 0 -Summary: Build manual page from python's ArgumentParser object +Summary: Tool for automatic manual page building from a Python ArgumentParser object License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/praiskup/argparse-manpage @@ -33,12 +33,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description -Generate manual page an automatic way from ArgumentParser object, so the -manpage 1:1 corresponds to the automatically generated --help output. The -manpage generator needs to known the location of the object, user can specify -that by (a) the module name or corresponding python filename and (b) the object -name or the function name which returns the object. There's a limited support -for (deprecated) optparse objects, too. +This utility generates a manual page in an automatic way from an +ArgumentParser object, so the manpage 1:1 corresponds to the +automatically generated --help output. The manpage generator needs to +known the location of the object, user can specify that by (a) the +module name or corresponding python filename and (b) the object name +or the function name which returns the object. There's a limited +support for (deprecated) optparse objects, too. %prep %setup -q -n %{mod_name}-%{version} From aeeaf42d5b6f0b8f295aecc9e395f8328036272730a0375e3c6831401c9ec5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 May 2019 07:00:13 +0000 Subject: [PATCH 2/4] - Switch to github tarball - Enable tests - Get license file - Run fdupes - Add support for older distros than Tumbleweed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=2 --- argparse-manpage-1.1.tar.gz | 3 --- python-argparse-manpage.changes | 9 +++++++++ python-argparse-manpage.spec | 31 ++++++++++++++++++------------- v1.1.tar.gz | 3 +++ 4 files changed, 30 insertions(+), 16 deletions(-) delete mode 100644 argparse-manpage-1.1.tar.gz create mode 100644 v1.1.tar.gz diff --git a/argparse-manpage-1.1.tar.gz b/argparse-manpage-1.1.tar.gz deleted file mode 100644 index 5dd83f0..0000000 --- a/argparse-manpage-1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7480e20841a34400bffc0dc93340924b480202f6ad1a46cb40a196d7f18902e -size 49044 diff --git a/python-argparse-manpage.changes b/python-argparse-manpage.changes index 7298266..7a95899 100644 --- a/python-argparse-manpage.changes +++ b/python-argparse-manpage.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue May 7 06:59:20 UTC 2019 - Tomáš Chvátal + +- Switch to github tarball + - Enable tests + - Get license file +- Run fdupes +- Add support for older distros than Tumbleweed + ------------------------------------------------------------------- Fri Oct 12 14:29:54 UTC 2018 - Jan Engelhardt diff --git a/python-argparse-manpage.spec b/python-argparse-manpage.spec index d041b9c..8759125 100644 --- a/python-argparse-manpage.spec +++ b/python-argparse-manpage.spec @@ -1,7 +1,7 @@ # # spec file for package python-argparse-manpage # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,24 +12,25 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define mod_name argparse-manpage -%define skip_python2 1 +%define mod_name argparse-manpage +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-argparse-manpage Version: 1.1 Release: 0 Summary: Tool for automatic manual page building from a Python ArgumentParser object License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/praiskup/argparse-manpage -Source: %{mod_name}-%{version}.tar.gz -BuildRequires: %{python_module devel} -BuildRequires: %{python_module docutils} +URL: https://github.com/praiskup/argparse-manpage +Source: https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros %python_subpackages %description @@ -49,12 +50,16 @@ support for (deprecated) optparse objects, too. %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest %files %{python_files} -%doc README* PKG-INFO +%doc README* +%license LICENSE %{python_sitelib}/* -%{_bindir}/argparse-manpage -%{_mandir}/man1/argparse-manpage.1* +%python3_only %{_bindir}/argparse-manpage +%python3_only %{_mandir}/man1/argparse-manpage.1%{?ext_man} %changelog - diff --git a/v1.1.tar.gz b/v1.1.tar.gz new file mode 100644 index 0000000..d1efa6d --- /dev/null +++ b/v1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92504c426c4b3020f92070cc2296f438d7544ff8d303da73c5334ca62f23ecbb +size 32825 From ff2962dce8df68857607ad2d36e4bf739731e716a3fdc08b8d53884ea52ecd01 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sun, 19 May 2019 23:32:35 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=3 --- argparse-manpage-1.1.tar.gz | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 argparse-manpage-1.1.tar.gz diff --git a/argparse-manpage-1.1.tar.gz b/argparse-manpage-1.1.tar.gz new file mode 100644 index 0000000..5dd83f0 --- /dev/null +++ b/argparse-manpage-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7480e20841a34400bffc0dc93340924b480202f6ad1a46cb40a196d7f18902e +size 49044 From 6f401906a5890be603687e138a723632b3cef3dafa56324600aa4aa2cb50b064 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sun, 19 May 2019 23:44:25 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=5 --- argparse-manpage-1.1.tar.gz | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 argparse-manpage-1.1.tar.gz diff --git a/argparse-manpage-1.1.tar.gz b/argparse-manpage-1.1.tar.gz deleted file mode 100644 index 5dd83f0..0000000 --- a/argparse-manpage-1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7480e20841a34400bffc0dc93340924b480202f6ad1a46cb40a196d7f18902e -size 49044