Hello community, here is the log from the commit of package python-click-man for openSUSE:Factory checked in at 2020-03-31 19:41:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-click-man (Old) and /work/SRC/openSUSE:Factory/.python-click-man.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click-man" Tue Mar 31 19:41:27 2020 rev:2 rq:790188 version:0.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-click-man/python-click-man.changes 2019-12-05 17:36:23.113416614 +0100 +++ /work/SRC/openSUSE:Factory/.python-click-man.new.3160/python-click-man.changes 2020-03-31 19:41:29.044582862 +0200 @@ -1,0 +2,8 @@ +Tue Mar 31 12:35:39 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- Update to 0.4.1 + * Discover command if not in entry_points +- Reapplied patch get-short-help.patch +- No need to use upstream tarball, download PyPI tarball instead + +------------------------------------------------------------------- Old: ---- v0.3.0.tar.gz New: ---- click-man-0.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-click-man.spec ++++++ --- /var/tmp/diff_new_pack.UhEM4Q/_old 2020-03-31 19:41:29.564583138 +0200 +++ /var/tmp/diff_new_pack.UhEM4Q/_new 2020-03-31 19:41:29.568583139 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-click-man # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-click-man -Version: 0.3.0 +Version: 0.4.1 Release: 0 Summary: Automate generation of man pages for python click applications License: MIT URL: https://github.com/click-contrib/click-man -Source: https://github.com/click-contrib/click-man/archive/v%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/c/click-man/click-man-%{version}.tar.gz Patch1: get-short-help.patch BuildRequires: %{python_module click} BuildRequires: %{python_module pytest} ++++++ get-short-help.patch ++++++ --- /var/tmp/diff_new_pack.UhEM4Q/_old 2020-03-31 19:41:29.584583148 +0200 +++ /var/tmp/diff_new_pack.UhEM4Q/_new 2020-03-31 19:41:29.584583148 +0200 @@ -1,10 +1,10 @@ -Index: click-man-0.3.0/click_man/core.py +Index: click-man-0.4.1/click_man/core.py =================================================================== ---- click-man-0.3.0.orig/click_man/core.py -+++ click-man-0.3.0/click_man/core.py -@@ -17,6 +17,14 @@ from .man import ManPage +--- click-man-0.4.1.orig/click_man/core.py ++++ click-man-0.4.1/click_man/core.py +@@ -16,6 +16,14 @@ import click - CLICK_VERSION = tuple(int(x) for x in click.__version__.split('.')) + from .man import ManPage + +def get_short_help_str(command, limit=45): @@ -17,7 +17,7 @@ def generate_man_page(ctx, version=None): """ Generate documentation for the given command. -@@ -30,14 +38,14 @@ def generate_man_page(ctx, version=None) +@@ -29,14 +37,14 @@ def generate_man_page(ctx, version=None) # Create man page with the details from the given context man_page = ManPage(ctx.command_path) man_page.version = version @@ -25,7 +25,7 @@ + man_page.short_help = get_short_help_str(ctx.command) man_page.description = ctx.command.help man_page.synopsis = ' '.join(ctx.command.collect_usage_pieces(ctx)) - man_page.options = [x.get_help_record(None) for x in ctx.command.params if isinstance(x, click.Option)] + man_page.options = [x.get_help_record(ctx) for x in ctx.command.params if isinstance(x, click.Option)] commands = getattr(ctx.command, 'commands', None) if commands: man_page.commands = [