Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-argparse-manpage for 
openSUSE:Factory checked in at 2021-04-22 18:03:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argparse-manpage (Old)
 and      /work/SRC/openSUSE:Factory/.python-argparse-manpage.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-argparse-manpage"

Thu Apr 22 18:03:58 2021 rev:8 rq:887384 version:1.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-argparse-manpage/python-argparse-manpage.changes
  2020-08-21 19:09:25.840543475 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-argparse-manpage.new.12324/python-argparse-manpage.changes
       2021-04-22 18:04:46.762581394 +0200
@@ -1,0 +2,7 @@
+Tue Apr 20 12:44:31 UTC 2021 - Mark??ta Machov?? <mmach...@suse.com>
+
+- Update to 1.5
+  * fixed testsuite for Python 3.9
+  * The "epilog" from argparse object is dumped to "COMMENTS" sections.
+
+-------------------------------------------------------------------

Old:
----
  v1.3.tar.gz

New:
----
  v1.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-argparse-manpage.spec ++++++
--- /var/tmp/diff_new_pack.3XHe4U/_old  2021-04-22 18:04:47.238582121 +0200
+++ /var/tmp/diff_new_pack.3XHe4U/_new  2021-04-22 18:04:47.242582127 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-argparse-manpage
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 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.3
+Version:        1.5
 Release:        0
 Summary:        Tool for automatic manual page building from a Python 
ArgumentParser object
 License:        Apache-2.0
@@ -33,7 +33,7 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
 Requires(post):   update-alternatives
-Requires(postun):  update-alternatives
+Requires(postun):update-alternatives
 %python_subpackages
 
 %description

++++++ v1.3.tar.gz -> v1.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/argparse-manpage-1.3/.github/workflows/push-copr-build.yml 
new/argparse-manpage-1.5/.github/workflows/push-copr-build.yml
--- old/argparse-manpage-1.3/.github/workflows/push-copr-build.yml      
1970-01-01 01:00:00.000000000 +0100
+++ new/argparse-manpage-1.5/.github/workflows/push-copr-build.yml      
2020-12-14 08:00:05.000000000 +0100
@@ -0,0 +1,35 @@
+---
+name: RPM build in Fedora Copr
+on:
+  # Build only on pushes into master branch.
+  push:
+    branches: [master]
+
+jobs:
+  build:
+    name: Submit a build from Fedora container
+    container: fedora:latest
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Check out proper version of sources
+        uses: actions/checkout@v1
+
+      - name: Install API token for copr-cli
+        env:
+          API_TOKEN_CONTENT: ${{ secrets.COPR_API_TOKEN }}
+        run: |
+          mkdir -p "$HOME/.config"
+          echo "$API_TOKEN_CONTENT" > "$HOME/.config/copr"
+
+      - name: Install tooling for source RPM build
+        run: |
+          dnf -y install @development-tools @rpm-development-tools copr-cli 
make
+
+      - name: Build the source RPM
+        run: |
+          cd rpm && make srpm
+
+      - name: Submit the build by uploading the source RPM
+        run: |
+          copr build praiskup/argparse-manpage-ci rpm/*.src.rpm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/.travis.yml 
new/argparse-manpage-1.5/.travis.yml
--- old/argparse-manpage-1.3/.travis.yml        2019-12-01 03:27:58.000000000 
+0100
+++ new/argparse-manpage-1.5/.travis.yml        2020-12-14 08:00:05.000000000 
+0100
@@ -1,10 +1,14 @@
 language: python
-
+arch:
+  - amd64
+  - ppc64le
 python:
   - 2.7
   - 3.5
   - 3.6
-  - 3.7-dev
+  - 3.7
+  - 3.8
+  - 3.9-dev
 
 install:
   - "pip install -r requirements.txt"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/NEWS 
new/argparse-manpage-1.5/NEWS
--- old/argparse-manpage-1.3/NEWS       2019-12-01 03:27:58.000000000 +0100
+++ new/argparse-manpage-1.5/NEWS       2020-12-14 08:00:05.000000000 +0100
@@ -1,5 +1,17 @@
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+New in version 1.5
+
+* The "epilog" from argparse object is dumped to "COMMENTS" sections.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+New in version 1.4
+
+* fixed testsuite for Python 3.9
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
 New in version 1.3
 
 * drop additional .br tag from paragraphs so the multiline text is nicer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/build_manpages/__init__.py 
new/argparse-manpage-1.5/build_manpages/__init__.py
--- old/argparse-manpage-1.3/build_manpages/__init__.py 2019-12-01 
03:27:58.000000000 +0100
+++ new/argparse-manpage-1.5/build_manpages/__init__.py 2020-12-14 
08:00:05.000000000 +0100
@@ -1 +1 @@
-__version__ = '1.3'
+__version__ = '1.5'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/build_manpages/manpage.py 
new/argparse-manpage-1.5/build_manpages/manpage.py
--- old/argparse-manpage-1.3/build_manpages/manpage.py  2019-12-01 
03:27:58.000000000 +0100
+++ new/argparse-manpage-1.5/build_manpages/manpage.py  2020-12-14 
08:00:05.000000000 +0100
@@ -58,6 +58,10 @@
         for action_group in self.parser._action_groups:
             lines.append(self.mf.format_action_group(action_group, 
self.parser.prog))
 
+        if self.parser.epilog != None:
+            lines.append('.SH COMMENTS')
+            lines.append(self.format_text(self.parser.epilog))
+
         # Additional Section
         for section in self.parser._manpage:
             lines.append('.SH {}'.format(section['heading'].upper()))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/examples/copr/copr_cli/main.py 
new/argparse-manpage-1.5/examples/copr/copr_cli/main.py
--- old/argparse-manpage-1.3/examples/copr/copr_cli/main.py     2019-12-01 
03:27:58.000000000 +0100
+++ new/argparse-manpage-1.5/examples/copr/copr_cli/main.py     2020-12-14 
08:00:05.000000000 +0100
@@ -605,7 +605,7 @@
     ###                    General options                ###
     #########################################################
 
-    parser = argparse.ArgumentParser(prog="copr")
+    parser = argparse.ArgumentParser(prog="copr", epilog="dummy text")
     # General connection options
 
     parser.add_argument("--debug", dest="debug", action="store_true",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/examples/copr/expected-output.1 
new/argparse-manpage-1.5/examples/copr/expected-output.1
--- old/argparse-manpage-1.3/examples/copr/expected-output.1    2019-12-01 
03:27:58.000000000 +0100
+++ new/argparse-manpage-1.5/examples/copr/expected-output.1    2020-12-14 
08:00:05.000000000 +0100
@@ -963,6 +963,9 @@
 \fB\-\-yaml\fR \fI\,YAML\/\fR
 Path to modulemd file in yaml format
 
+.SH COMMENTS
+dummy text
+
 .SH AUTHORS
 .B example
 was written by John Doe <j...@example.com>.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/rpm/Makefile 
new/argparse-manpage-1.5/rpm/Makefile
--- old/argparse-manpage-1.3/rpm/Makefile       2019-12-01 03:27:58.000000000 
+0100
+++ new/argparse-manpage-1.5/rpm/Makefile       2020-12-14 08:00:05.000000000 
+0100
@@ -22,5 +22,15 @@
            $< > $@.output ; \
        mv "$@.output" "$@" # move when successful
 
+srpm: all
+       dir=`pwd` ; \
+       rm *.src.rpm ; \
+       rpmbuild --define "_sourcedir $$dir" \
+                --define "_rpmdir    $$dir" \
+                --define "_builddir  $$dir" \
+                --define "_specdir   $$dir" \
+                --define "_srcrpmdir $$dir" \
+            -bs *.spec
+
 clean:
        rm -rf *.src.rpm *.tar.gz *.spec noarch
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/rpm/argparse-manpage.spec.tpl 
new/argparse-manpage-1.5/rpm/argparse-manpage.spec.tpl
--- old/argparse-manpage-1.3/rpm/argparse-manpage.spec.tpl      2019-12-01 
03:27:58.000000000 +0100
+++ new/argparse-manpage-1.5/rpm/argparse-manpage.spec.tpl      2020-12-14 
08:00:05.000000000 +0100
@@ -1,6 +1,10 @@
 %if 0%{?fedora}
-  %bcond_without python2
   %bcond_without python3
+  %if 0%{?fedora} > 29
+    %bcond_with python2
+  %else
+    %bcond_without python2
+  %endif
 %else
   %if 0%{?rhel} > 7
     %bcond_with    python2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argparse-manpage-1.3/unittests/test_examples.py 
new/argparse-manpage-1.5/unittests/test_examples.py
--- old/argparse-manpage-1.3/unittests/test_examples.py 2019-12-01 
03:27:58.000000000 +0100
+++ new/argparse-manpage-1.5/unittests/test_examples.py 2020-12-14 
08:00:05.000000000 +0100
@@ -28,7 +28,7 @@
                         env={'PYTHONPATH': ':'.join(sys.path)})
 
 
-def file_cmp(file1, file2):
+def file_cmp(file1, file2, filter_string=None):
     with open(file1, 'r') as f1:
         with open(file2, 'r') as f2:
             a1 = f1.readlines()
@@ -40,6 +40,11 @@
                     left  = re.sub('[0-9]{4}\\\\-[0-9]{2}\\\\-[0-9]{2}', 
'!!DATE!!', left)
                     right = re.sub('[0-9]{4}\\\\-[0-9]{2}\\\\-[0-9]{2}', 
'!!DATE!!', right)
                     first = False
+
+                if filter_string is not None:
+                    left = filter_string(left)
+                    right = filter_string(right)
+
                 assert left == right
 
 
@@ -64,8 +69,15 @@
                 pass
             idir = os.path.join(os.getcwd(), 'i')
             run_setup_py(['install', '--root', idir, '--prefix', prefix])
-            file_cmp('i/usr/share/man/man1/' + name, 'expected-output.1')
-            file_cmp(name, 'expected-output.1')
+
+            def version_version_filter(string):
+                return string.replace('[VERSION [VERSION ...]]',
+                                      '[VERSION ...]')
+
+            file_cmp('i/usr/share/man/man1/' + name, 'expected-output.1',
+                     filter_string=version_version_filter)
+            file_cmp(name, 'expected-output.1',
+                     filter_string=version_version_filter)
 
 
     def test_distgen(self):

Reply via email to