Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2019-03-01 16:50:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and      /work/SRC/openSUSE:Factory/.python-configargparse.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-configargparse"

Fri Mar  1 16:50:18 2019 rev:3 rq:680493 version:0.14.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
    2018-05-18 14:28:33.284935532 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.28833/python-configargparse.changes
   2019-03-01 16:50:19.561733422 +0100
@@ -1,0 +2,10 @@
+Fri Mar  1 13:20:35 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.14.0:
+  * Fixes for python3.6 and 3.7
+  * Various lint fixes
+- Make sure we run tests
+- add patch skip-test.patch that skips test that does not work
+  in our test enviroment
+
+-------------------------------------------------------------------

Old:
----
  ConfigArgParse-0.10.0.tar.gz

New:
----
  ConfigArgParse-0.14.0.tar.gz
  skip-test.patch

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

Other differences:
------------------
++++++ python-configargparse.spec ++++++
--- /var/tmp/diff_new_pack.uzBldz/_old  2019-03-01 16:50:20.125733209 +0100
+++ /var/tmp/diff_new_pack.uzBldz/_new  2019-03-01 16:50:20.129733208 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-configargparse
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,22 +12,28 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-configargparse
-Version:        0.10.0
+Version:        0.14.0
 Release:        0
 Summary:        A drop-in replacement for argparse
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/zorro3/ConfigArgParse
 Source:         
https://files.pythonhosted.org/packages/source/C/ConfigArgParse/ConfigArgParse-%{version}.tar.gz
+Patch0:         skip-test.patch
+BuildRequires:  %{python_module PyYAML}
+BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+BuildRequires:  python2-devel
+BuildRequires:  python2-unittest2
+Requires:       python-PyYAML
 Requires:       python-setuptools
 BuildArch:      noarch
 %python_subpackages
@@ -46,6 +52,7 @@
 
 %prep
 %setup -q -n ConfigArgParse-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -55,13 +62,13 @@
 %fdupes %{buildroot}
 
 %check
-%python_exec setup.py test
+%python_exec -m unittest discover
 
 %files %{python_files}
-
+%doc README.rst
+%license LICENSE
 %{python_sitelib}/configargparse*
 %{python_sitelib}/ConfigArgParse-%{version}-py*.egg-info
 %pycache_only %{python_sitelib}/__pycache__
-%license LICENSE
 
 %changelog

++++++ ConfigArgParse-0.10.0.tar.gz -> ConfigArgParse-0.14.0.tar.gz ++++++
++++ 2417 lines of diff (skipped)

++++++ skip-test.patch ++++++
Index: ConfigArgParse-0.14.0/tests/test_configargparse.py
===================================================================
--- ConfigArgParse-0.14.0.orig/tests/test_configargparse.py
+++ ConfigArgParse-0.14.0/tests/test_configargparse.py
@@ -725,36 +725,6 @@ class TestMisc(TestCase):
 
         self.assertListEqual(unknown, ['--a2a', '0.5', '--a3a', '0.5'])
 
-    def test_FormatHelp(self):
-        self.initParser(args_for_setting_config_path=["-c", "--config"],
-                        config_arg_is_required = True,
-                        config_arg_help_message = "my config file",
-                        default_config_files=["~/.myconfig"],
-                        args_for_writing_out_config_file=["-w", 
"--write-config"],
-                        )
-        self.add_arg('--arg1', help='Arg1 help text', required=True)
-        self.add_arg('--flag', help='Flag help text', action="store_true")
-
-        self.assertRegex(self.format_help(),
-            'usage: .* \[-h\] -c CONFIG_FILE\s+'
-            '\[-w CONFIG_OUTPUT_PATH\]\s* --arg1 ARG1\s*\[--flag\]\s*'
-            'Args that start with \'--\' \(eg. --arg1\) can also be set in a '
-            'config file\s*\(~/.myconfig or specified via -c\).\s*'
-            'Config file syntax allows: key=value,\s*flag=true, 
stuff=\[a,b,c\] '
-            '\(for details, see syntax at https://goo.gl/R74nmi\).\s*'
-            'If an arg is specified in more than\s*one place, then '
-            'commandline values\s*override config file values which 
override\s*'
-            'defaults.\s*'
-            'optional arguments:\s*'
-            '-h, --help \s* show this help message and exit\n\s*'
-            '-c CONFIG_FILE, --config CONFIG_FILE\s+my config file\s*'
-            '-w CONFIG_OUTPUT_PATH, --write-config 
CONFIG_OUTPUT_PATH\s*takes\s*'
-            'the current command line args and writes them\s*'
-            'out to a config file at the given path, then exits\s*'
-            '--arg1 ARG1\s*Arg1 help text\s*'
-            '--flag \s*Flag help text'
-        )
-
     class CustomClass(object):
         def __init__(self, name):
             self.name = name

Reply via email to