forked from pool/python-click-man
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
This commit is contained in:
committed by
Git OBS Bridge
parent
595c46547a
commit
0ba75e0219
@@ -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 = [
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 31 12:35:39 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- 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 <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b3c36982f4607d58272667d05ce75c41321b7e5a926c6f9183b3ba9eebe9f075
|
||||
size 462653
|
||||
3
v0.4.1.tar.gz
Normal file
3
v0.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0ba160e4f7ee25a27c39ee74340843ff8658dc1757e173f527f18d8d7d29cecc
|
||||
size 624640
|
||||
Reference in New Issue
Block a user