From 0ba75e02195f892944f84af85b9f4e953335d302e052394dbe0aec326e854677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 31 Mar 2020 13:30:35 +0000 Subject: [PATCH] Accepting request 790151 from home:mcalabkova:branches:devel:languages:python - Update to 0.4.1 * Discover command if not in entry_points - Reapplied patch get-short-help.patch OBS-URL: https://build.opensuse.org/request/show/790151 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-man?expand=0&rev=4 --- get-short-help.patch | 14 +++++++------- python-click-man.changes | 7 +++++++ python-click-man.spec | 4 ++-- v0.3.0.tar.gz | 3 --- v0.4.1.tar.gz | 3 +++ 5 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 v0.3.0.tar.gz create mode 100644 v0.4.1.tar.gz diff --git a/get-short-help.patch b/get-short-help.patch index 2d443be..0a0201c 100644 --- a/get-short-help.patch +++ b/get-short-help.patch @@ -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 @@ Index: click-man-0.3.0/click_man/core.py 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 @@ Index: click-man-0.3.0/click_man/core.py + 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 = [ diff --git a/python-click-man.changes b/python-click-man.changes index b60bb01..9c7e145 100644 --- a/python-click-man.changes +++ b/python-click-man.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 31 12:35:39 UTC 2020 - Marketa Calabkova + +- Update to 0.4.1 + * Discover command if not in entry_points +- Reapplied patch get-short-help.patch + ------------------------------------------------------------------- Thu Dec 5 11:03:35 UTC 2019 - Tomáš Chvátal diff --git a/python-click-man.spec b/python-click-man.spec index 9564b07..4306c8e 100644 --- a/python-click-man.spec +++ b/python-click-man.spec @@ -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,7 +18,7 @@ %{?!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 diff --git a/v0.3.0.tar.gz b/v0.3.0.tar.gz deleted file mode 100644 index c73074c..0000000 --- a/v0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3c36982f4607d58272667d05ce75c41321b7e5a926c6f9183b3ba9eebe9f075 -size 462653 diff --git a/v0.4.1.tar.gz b/v0.4.1.tar.gz new file mode 100644 index 0000000..a7450a8 --- /dev/null +++ b/v0.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ba160e4f7ee25a27c39ee74340843ff8658dc1757e173f527f18d8d7d29cecc +size 624640