Hello community,
here is the log from the commit of package python-argparse-manpage for
openSUSE:Factory checked in at 2020-01-18 12:17:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argparse-manpage (Old)
and /work/SRC/openSUSE:Factory/.python-argparse-manpage.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argparse-manpage"
Sat Jan 18 12:17:44 2020 rev:4 rq:765253 version:1.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-argparse-manpage/python-argparse-manpage.changes
2019-09-27 14:47:26.704921306 +0200
+++
/work/SRC/openSUSE:Factory/.python-argparse-manpage.new.26092/python-argparse-manpage.changes
2020-01-18 12:18:26.671148993 +0100
@@ -1,0 +2,7 @@
+Fri Jan 17 12:37:14 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- update to 1.3
+ * drop additional .br tag from paragraphs so the multiline text is nicer
+ * provide argparse-manpage via entry_point
+
+-------------------------------------------------------------------
Old:
----
v1.2.2.tar.gz
New:
----
v1.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-argparse-manpage.spec ++++++
--- /var/tmp/diff_new_pack.g2oCh8/_old 2020-01-18 12:18:28.259149844 +0100
+++ /var/tmp/diff_new_pack.g2oCh8/_new 2020-01-18 12:18:28.263149846 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-argparse-manpage
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -19,7 +19,7 @@
%define mod_name argparse-manpage
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-argparse-manpage
-Version: 1.2.2
+Version: 1.3
Release: 0
Summary: Tool for automatic manual page building from a Python
ArgumentParser object
License: Apache-2.0
++++++ v1.2.2.tar.gz -> v1.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/NEWS
new/argparse-manpage-1.3/NEWS
--- old/argparse-manpage-1.2.2/NEWS 2019-09-07 15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/NEWS 2019-12-01 03:27:58.000000000 +0100
@@ -1,5 +1,13 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+New in version 1.3
+
+* drop additional .br tag from paragraphs so the multiline text is nicer
+
+* provide argparse-manpage via entry_point
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
New in version 1.2
* Fixed shebang in /bin/argparse-manpage script so it works on
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/README.md
new/argparse-manpage-1.3/README.md
--- old/argparse-manpage-1.2.2/README.md 2019-09-07 15:24:15.000000000
+0200
+++ new/argparse-manpage-1.3/README.md 2019-12-01 03:27:58.000000000 +0100
@@ -74,11 +74,11 @@
You can also use `argparse-manpage` command on a command-line. Example:
- bin/argparse-manpage --pyfile ./pythonfile --function get_parser --author
me --author-email [email protected] --project-name myproject --url
https://pagure.io/myproject > cool-manpage.1
+ argparse-manpage --pyfile ./pythonfile --function get_parser --author me
--author-email [email protected] --project-name myproject --url
https://pagure.io/myproject > cool-manpage.1
This reads `./pythonfile` and executes function `get_parser` from it. The
function should be programmed to return an `ArgumentParser` instance which is
then used together with the other info supplied on the command-line to generate
the man page.
-See `bin/argparse-manpage --help` for full info.
+See `argparse-manpage --help` for full info.
# License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/argparse-manpage
new/argparse-manpage-1.3/argparse-manpage
--- old/argparse-manpage-1.2.2/argparse-manpage 2020-01-18 12:18:28.315149874
+0100
+++ new/argparse-manpage-1.3/argparse-manpage 2019-12-01 03:27:58.000000000
+0100
@@ -1 +1,13 @@
-symbolic link to wrap
+#! /bin/sh
+
+# Copyright (C) 2019 Red Hat, Inc.
+
+srcdir=$(readlink -f "$(dirname "$0")")
+script_name=$(basename "$0")
+
+echo >&2
+echo >&2 " !! running argparse-manpage from git, this is not supported !!"
+echo >&2
+
+export PYTHONPATH=$srcdir/${PYTHONPATH+:$PYTHONPATH}
+exec ${PYTHON-python3} -c 'from build_manpages.cli import main; main()' "$@"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/bin/argparse-manpage
new/argparse-manpage-1.3/bin/argparse-manpage
--- old/argparse-manpage-1.2.2/bin/argparse-manpage 2019-09-07
15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/bin/argparse-manpage 1970-01-01
01:00:00.000000000 +0100
@@ -1,8 +0,0 @@
-#! /usr/bin/python
-
-# Copyright (C) 2017 Red Hat, Inc.
-
-from build_manpages.cli import main
-
-if __name__ == "__main__":
- main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/build_manpages/__init__.py
new/argparse-manpage-1.3/build_manpages/__init__.py
--- old/argparse-manpage-1.2.2/build_manpages/__init__.py 2019-09-07
15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/build_manpages/__init__.py 2019-12-01
03:27:58.000000000 +0100
@@ -1 +1 @@
-__version__ = '1.2.2'
+__version__ = '1.3'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/build_manpages/manpage.py
new/argparse-manpage-1.3/build_manpages/manpage.py
--- old/argparse-manpage-1.2.2/build_manpages/manpage.py 2019-09-07
15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/build_manpages/manpage.py 2019-12-01
03:27:58.000000000 +0100
@@ -190,4 +190,4 @@
def format_text(self, text):
return self._markup(text.strip('\n')\
.replace('\\', '\\\\')\
- .replace('\n', '\n.br\n') + '\n')
+ .replace('\n', '\n') + '\n')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/argparse-manpage-1.2.2/examples/copr/expected-output.1
new/argparse-manpage-1.3/examples/copr/expected-output.1
--- old/argparse-manpage-1.2.2/examples/copr/expected-output.1 2019-09-07
15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/examples/copr/expected-output.1 2019-12-01
03:27:58.000000000 +0100
@@ -136,7 +136,6 @@
.TP
\fBusername|@groupname\fR
The username or @groupname that you would like to list the coprs of (defaults
-.br
to current user)
@@ -146,7 +145,6 @@
.TP
\fBproject\fR
Expected format is <user>/<project>, <group>/<project> (including '@') or
-.br
<project> (name of project you own).
.TP
@@ -202,13 +200,11 @@
.TP
\fB\-\-persistent\fR
Project and its builds will be undeletable. This option can only be specified
-.br
by a COPR admin.
.TP
\fB\-\-auto\-prune\fR {on,off}
If auto\-deletion of project's obsoleted builds should be enabled (default is
-.br
on). This option can only be specified by a COPR admin.
.SH OPTIONS 'copr modify'
@@ -246,7 +242,6 @@
.TP
\fB\-\-enable\-net\fR {on,off}
If net should be enabled for builds in this project (default is "don't
-.br
change")
.TP
@@ -256,7 +251,6 @@
.TP
\fB\-\-auto\-prune\fR {on,off}
If auto\-deletion of project's obsoleted builds should be enabled. This option
-.br
can only be specified by a COPR admin.
.SH OPTIONS 'copr delete'
@@ -290,7 +284,6 @@
.TP
\fBcopr\fR
The copr repo to build the package in. Can be just name of project or even in
-.br
format username/project or @groupname/project.
.TP
@@ -308,13 +301,11 @@
.TP
\fB\-r\fR \fI\,CHROOTS\/\fR, \fB\-\-chroot\fR \fI\,CHROOTS\/\fR
If you don't need this build for all the project's chroots. You can use it
-.br
several times for each chroot you need.
.TP
\fB\-\-background\fR
Mark the build as a background job. It will have lesser priority than regular
-.br
builds.
.SH OPTIONS 'copr buildpypi'
@@ -327,7 +318,6 @@
.TP
\fBcopr\fR
The copr repo to build the package in. Can be just name of project or even in
-.br
format username/project or @groupname/project.
.TP
@@ -353,13 +343,11 @@
.TP
\fB\-r\fR \fI\,CHROOTS\/\fR, \fB\-\-chroot\fR \fI\,CHROOTS\/\fR
If you don't need this build for all the project's chroots. You can use it
-.br
several times for each chroot you need.
.TP
\fB\-\-background\fR
Mark the build as a background job. It will have lesser priority than regular
-.br
builds.
.SH OPTIONS 'copr buildgem'
@@ -370,7 +358,6 @@
.TP
\fBcopr\fR
The copr repo to build the package in. Can be just name of project or even in
-.br
format username/project or @groupname/project.
.TP
@@ -388,13 +375,11 @@
.TP
\fB\-r\fR \fI\,CHROOTS\/\fR, \fB\-\-chroot\fR \fI\,CHROOTS\/\fR
If you don't need this build for all the project's chroots. You can use it
-.br
several times for each chroot you need.
.TP
\fB\-\-background\fR
Mark the build as a background job. It will have lesser priority than regular
-.br
builds.
.SH OPTIONS 'copr buildfedpkg'
@@ -406,7 +391,6 @@
.TP
\fBcopr\fR
The copr repo to build the package in. Can be just name of project or even in
-.br
format username/project or @groupname/project.
.TP
@@ -428,13 +412,11 @@
.TP
\fB\-r\fR \fI\,CHROOTS\/\fR, \fB\-\-chroot\fR \fI\,CHROOTS\/\fR
If you don't need this build for all the project's chroots. You can use it
-.br
several times for each chroot you need.
.TP
\fB\-\-background\fR
Mark the build as a background job. It will have lesser priority than regular
-.br
builds.
.SH OPTIONS 'copr buildtito'
@@ -447,7 +429,6 @@
.TP
\fBcopr\fR
The copr repo to build the package in. Can be just name of project or even in
-.br
format username/project or @groupname/project.
.TP
@@ -477,13 +458,11 @@
.TP
\fB\-r\fR \fI\,CHROOTS\/\fR, \fB\-\-chroot\fR \fI\,CHROOTS\/\fR
If you don't need this build for all the project's chroots. You can use it
-.br
several times for each chroot you need.
.TP
\fB\-\-background\fR
Mark the build as a background job. It will have lesser priority than regular
-.br
builds.
.SH OPTIONS 'copr buildmock'
@@ -496,7 +475,6 @@
.TP
\fBcopr\fR
The copr repo to build the package in. Can be just name of project or even in
-.br
format username/project or @groupname/project.
.TP
@@ -524,13 +502,11 @@
.TP
\fB\-r\fR \fI\,CHROOTS\/\fR, \fB\-\-chroot\fR \fI\,CHROOTS\/\fR
If you don't need this build for all the project's chroots. You can use it
-.br
several times for each chroot you need.
.TP
\fB\-\-background\fR
Mark the build as a background job. It will have lesser priority than regular
-.br
builds.
.SH OPTIONS 'copr status'
@@ -622,7 +598,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -658,7 +633,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -695,7 +669,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -728,7 +701,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -760,7 +732,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -794,7 +765,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -827,7 +797,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -850,7 +819,6 @@
.TP
\fBcopr\fR
The copr repo for the package. Can be just name of project or even in format
-.br
username/project or @groupname/project.
.TP
@@ -873,7 +841,6 @@
.TP
\fBcopr\fR
The copr repo to list the packages of. Can be just name of project or even in
-.br
format owner/project.
.TP
@@ -894,7 +861,6 @@
.TP
\fBcopr\fR
The copr repo to list the packages of. Can be just name of project or even in
-.br
format owner/project.
@@ -906,7 +872,6 @@
.TP
\fBcopr\fR
The copr repo to list the packages of. Can be just name of project or even in
-.br
format owner/project.
.TP
@@ -931,7 +896,6 @@
.TP
\fBcopr\fR
The copr repo to list the packages of. Can be just name of project or even in
-.br
format owner/project.
.TP
@@ -944,7 +908,6 @@
.TP
\fBcopr\fR
The copr repo to list the packages of. Can be just name of project or even in
-.br
format owner/project.
.TP
@@ -960,7 +923,6 @@
.TP
\fBcopr\fR
The copr repo to build the package in. Can be just name of project or even in
-.br
format username/project or @groupname/project.
.TP
@@ -974,13 +936,11 @@
.TP
\fB\-r\fR \fI\,CHROOTS\/\fR, \fB\-\-chroot\fR \fI\,CHROOTS\/\fR
If you don't need this build for all the project's chroots. You can use it
-.br
several times for each chroot you need.
.TP
\fB\-\-background\fR
Mark the build as a background job. It will have lesser priority than regular
-.br
builds.
.TP
@@ -993,7 +953,6 @@
.TP
\fBcopr\fR
The copr repo to list the packages of. Can be just name of project or even in
-.br
format owner/project.
.TP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/argparse-manpage-1.2.2/examples/raw-description/expected-output.1
new/argparse-manpage-1.3/examples/raw-description/expected-output.1
--- old/argparse-manpage-1.2.2/examples/raw-description/expected-output.1
2019-09-07 15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/examples/raw-description/expected-output.1
2019-12-01 03:27:58.000000000 +0100
@@ -6,23 +6,14 @@
[-h] [--projectdir PROJECTDIR] [--distro DIST] [--multispec MULTISPEC]
[--multispec-selector MULTISPEC_SELECTOR] [--spec SPEC] [--output OUTPUT]
[--macros-from PROJECTDIR] [--container CONTAINER_TYPE] [--macro MACRO]
[--max-passes PASSES] (--template TEMPLATE | --multispec-combinations)
.SH DESCRIPTION
Generate script using predefined metadata about distribution and
-.br
templates.
-.br
-.br
As an example of 'dg' usage, to generate _Dockerfile_ for Fedora
-.br
21 64\-bit system, you may use command(s):
-.br
-.br
$ cd project/directory
-.br
$ dg \-\-spec docker\-data.yaml \\
-.br
\-\-template docker.tpl \\
-.br
\-\-distro fedora\-21\-x86_64.yaml
.SH OPTIONS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/setup.py
new/argparse-manpage-1.3/setup.py
--- old/argparse-manpage-1.2.2/setup.py 2019-09-07 15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/setup.py 2019-12-01 03:27:58.000000000 +0100
@@ -26,7 +26,11 @@
maintainer='Pavel Raiskup',
maintainer_email='[email protected]',
packages=find_packages(),
- scripts=['bin/argparse-manpage'],
+ entry_points={
+ 'console_scripts': [
+ 'argparse-manpage=build_manpages.cli:main',
+ ],
+ },
description='Build manual page from python\'s ArgumentParser object.',
long_description=get_readme(),
long_description_content_type='text/markdown',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/argparse-manpage-1.2.2/wrap
new/argparse-manpage-1.3/wrap
--- old/argparse-manpage-1.2.2/wrap 2019-09-07 15:24:15.000000000 +0200
+++ new/argparse-manpage-1.3/wrap 1970-01-01 01:00:00.000000000 +0100
@@ -1,8 +0,0 @@
-#! /bin/sh
-
-# Copyright (C) 2017 Red Hat, Inc.
-
-srcdir=$(readlink -f "$(dirname "$0")")
-script_name=$(basename "$0")
-export PYTHONPATH=$srcdir/${PYTHONPATH+:$PYTHONPATH}
-exec "$srcdir/bin/$script_name" "$@"