Sync from SUSE:SLFO:Main python-argparse-manpage revision cdefbc8d0b6806a72eb30797a1a3a8a3
This commit is contained in:
commit
9acfad7a60
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
153
python-argparse-manpage.changes
Normal file
153
python-argparse-manpage.changes
Normal file
@ -0,0 +1,153 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 09:23:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 4.5:
|
||||
* We newly provide build_manpages.build_py and build_manpages.install
|
||||
command classes that are re-usable from pyproject.toml.
|
||||
No need to provide setup.py because of argparse-manpage.
|
||||
* The prog= specifier (in setup.py/setup.cfg/pyproject.toml) is
|
||||
now better handled so it doesn't conflict with
|
||||
ArgumentParser(prog=..).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 15 09:42:01 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 4.3:
|
||||
* The pyproject.toml parsing feature now depends on tomli
|
||||
* Support for pyproject.toml specification of manpages added.
|
||||
* Support for pre-written man pages (the --manfile option)
|
||||
* Incorrect dict access for --include support fixed.
|
||||
- Add patch skip-pip-install.patch:
|
||||
* Skip pip install tests for now.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 16 17:02:00 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 4.1:
|
||||
* A new `--include` feature, inspired by `help2man --include`.
|
||||
* Allow overriding build date with SOURCE_DATE_EPOCH
|
||||
environment variable in order to make builds reproducible.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 7 20:46:21 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to v4
|
||||
News in v4
|
||||
The manual page generator logic is now separated from the 'build_manpages'
|
||||
module (which provides setup.py integration helpers). Therefore the
|
||||
argparse-manpage doesn't necessarily have to depend on setuptools.
|
||||
Projects that want to integrate using 'setup.py' should though place a new
|
||||
"extra" named 'argparse-manpage[setuptools]' into their set of build
|
||||
requirements in project.toml file.
|
||||
|
||||
The old 'build_manpage' command (!= 'build_manpages') is now more
|
||||
isolated from the rest of the code, likely never loaded.
|
||||
|
||||
the Manpage class API was changed in v3 so it required an additional
|
||||
constructor 'data' argument. This change was reverted, and the only
|
||||
argument is again the ArgumentParser object.
|
||||
|
||||
The 'version' and 'description' options were fixed.
|
||||
|
||||
New options 'manual_section' and 'manual_title' were added.
|
||||
|
||||
The manual page now automatically generates a current date in headers.
|
||||
|
||||
Several groff escaping issues were fixed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 20 09:13:17 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Remove not needed dep python-six
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 4 11:18:38 UTC 2022 - Daniel Mach <daniel.mach@suse.com>
|
||||
|
||||
- Update to 3
|
||||
* New man page format: single-commands-section
|
||||
* Add CLI and conf options for setting the output format
|
||||
* Add CLI and conf options to explicitly specify %prog value
|
||||
* Skip showing commands with help == SUPPRESS
|
||||
* Avoid rendering docs for command aliases
|
||||
* Print program name in upper case in header and footer
|
||||
* The --author CLI option has changed, and takes arbitrary string
|
||||
(typically 'Author Name <the@example.com>'), and newly can be specified
|
||||
multiple times. Therefore, it now replaces the '--author-email' option.
|
||||
The --author-email option is kept, but is just an alias to the --author
|
||||
option.
|
||||
* All CLI options can be specified also in setup.cfg
|
||||
* Don't render AUTHORS and DISTRIBUTION if they would contain undefined values
|
||||
* Remove '... was written by' from AUTHORS
|
||||
* Fixed the testsuite against the setuptools v60+
|
||||
* Output manual pages should be built reproducibly, no matter the current
|
||||
size of the terminal.
|
||||
* Methods build_manpages, get_build_py_cmd, get_install_cmd are now
|
||||
provided in top-level module.
|
||||
* More portable opening and parsing given by python file name.
|
||||
* Split out options by generic argument groups, not only predefined
|
||||
"positional arguments", "options", and Subparsers.
|
||||
* Drop python3-six requirement.
|
||||
* Properly highligh all option argument METAVARs.
|
||||
|
||||
- spec changes:
|
||||
* BuildArch set to noarch
|
||||
* Add build dependency on pip module
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 20 12:44:31 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Update to 1.5
|
||||
* fixed testsuite for Python 3.9
|
||||
* The "epilog" from argparse object is dumped to "COMMENTS" sections.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 20 15:43:19 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- Resubmit for SLE (jsc#SLE-12826)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 14:52:26 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Don't use %python3_only command, but properly use alternatives.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 31 17:44:02 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Require python-setuotools: /usr/bin/argparse-manpage does
|
||||
from pkg_resources import load_entry_point.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 17 12:37:14 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- update to 1.3
|
||||
* drop additional .br tag from paragraphs so the multiline text is nicer
|
||||
* provide argparse-manpage via entry_point
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 13 12:41:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 1.2.2:
|
||||
* More complete release tarball, including tests.
|
||||
* Fixed shebang in /bin/argparse-manpage script so it works on
|
||||
Debian/Ubuntu as well as on Fedora.
|
||||
* LICENSE file included in release tarball.
|
||||
* Command-line executable now takes an optional '--output' argument.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 7 06:59:20 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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 <jengelh@inai.de>
|
||||
|
||||
- Use noun phrase in summary. Repair grammar issues in description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 11 15:04:42 UTC 2018 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- initial package
|
81
python-argparse-manpage.spec
Normal file
81
python-argparse-manpage.spec
Normal file
@ -0,0 +1,81 @@
|
||||
#
|
||||
# spec file for package python-argparse-manpage
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define mod_name argparse-manpage
|
||||
Name: python-argparse-manpage
|
||||
Version: 4.5
|
||||
Release: 0
|
||||
Summary: Tool for automatic manual page building from a Python ArgumentParser object
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/praiskup/argparse-manpage
|
||||
Source: https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE Skip pip install tests until pip can behave better
|
||||
Patch0: skip-pip-install.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: ca-certificates
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires: python-tomli
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
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
|
||||
%autosetup -p1 -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/argparse-manpage
|
||||
%python_clone -a %{buildroot}%{_mandir}/man1/argparse-manpage.1
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%{python_install_alternative argparse-manpage argparse-manpage.1}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative argparse-manpage
|
||||
|
||||
%files %{python_files}
|
||||
%doc README*
|
||||
%license LICENSE
|
||||
%{python_sitelib}/argparse_manpage
|
||||
%{python_sitelib}/build_manpages
|
||||
%{python_sitelib}/argparse_manpage-%{version}*info
|
||||
%python_alternative %{_bindir}/argparse-manpage
|
||||
%python_alternative %{_mandir}/man1/argparse-manpage.1%{?ext_man}
|
||||
|
||||
%changelog
|
13
skip-pip-install.patch
Normal file
13
skip-pip-install.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: argparse-manpage-4.3/tests/test_examples.py
|
||||
===================================================================
|
||||
--- argparse-manpage-4.3.orig/tests/test_examples.py
|
||||
+++ argparse-manpage-4.3/tests/test_examples.py
|
||||
@@ -38,6 +38,8 @@ def _rmtree(directory):
|
||||
raise
|
||||
|
||||
def run_pip(args):
|
||||
+ # Until we can figure out how to make pip behave
|
||||
+ raise unittest.SkipTest()
|
||||
environ = os.environ.copy()
|
||||
environ['PYTHONPATH'] = ':'.join(sys.path)
|
||||
from pip import __version__
|
BIN
v4.5.tar.gz
(Stored with Git LFS)
Normal file
BIN
v4.5.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user