commit python-configargparse for openSUSE:Factory

2020-06-11 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2020-06-11 10:10:14

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new.3606 (New)


Package is "python-configargparse"

Thu Jun 11 10:10:14 2020 rev:10 rq:813281 version:1.2.3

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2020-06-02 14:40:34.195887598 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.3606/python-configargparse.changes
2020-06-11 10:12:21.548635933 +0200
@@ -1,0 +2,5 @@
+Wed Jun 10 15:57:44 UTC 2020 - Matej Cepl 
+
+- Remove unnecessary dependency on unittest2
+
+---



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.nrQfpA/_old  2020-06-11 10:12:23.164641105 +0200
+++ /var/tmp/diff_new_pack.nrQfpA/_new  2020-06-11 10:12:23.164641105 +0200
@@ -37,7 +37,6 @@
 BuildArch:  noarch
 %if %{with python2}
 BuildRequires:  python2-devel
-BuildRequires:  python2-unittest2
 %endif
 %python_subpackages
 




commit python-configargparse for openSUSE:Factory

2020-06-02 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2020-06-02 14:39:46

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new.3606 (New)


Package is "python-configargparse"

Tue Jun  2 14:39:46 2020 rev:9 rq:810601 version:1.2.3

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2020-04-23 18:37:30.280898932 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.3606/python-configargparse.changes
2020-06-02 14:40:26.899864535 +0200
@@ -1,0 +2,9 @@
+Mon Jun  1 11:01:45 UTC 2020 - pgaj...@suse.com
+
+- version update to 1.2.3
+  * Fixes #179
+  * allow use of nargs with action=append (#177)
+  * Merged ConfigparserConfigFileParser - PR #173 - which adds support
+for python's Configparser config file format
+
+---

Old:

  ConfigArgParse-1.0.tar.gz

New:

  ConfigArgParse-1.2.3.tar.gz



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.nmcfKP/_old  2020-06-02 14:40:27.559866621 +0200
+++ /var/tmp/diff_new_pack.nmcfKP/_new  2020-06-02 14:40:27.563866634 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:   python-configargparse
-Version:1.0
+Version:1.2.3
 Release:0
 Summary:A drop-in replacement for argparse
 License:MIT

++ ConfigArgParse-1.0.tar.gz -> ConfigArgParse-1.2.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ConfigArgParse-1.0/ConfigArgParse.egg-info/PKG-INFO 
new/ConfigArgParse-1.2.3/ConfigArgParse.egg-info/PKG-INFO
--- old/ConfigArgParse-1.0/ConfigArgParse.egg-info/PKG-INFO 2019-12-30 
06:16:29.0 +0100
+++ new/ConfigArgParse-1.2.3/ConfigArgParse.egg-info/PKG-INFO   2020-04-24 
05:43:41.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: ConfigArgParse
-Version: 1.0
+Version: 1.2.3
 Summary: A drop-in replacement for argparse that allows options to also be set 
via config files and/or environment variables.
 Home-page: https://github.com/bw2/ConfigArgParse
 License: MIT
@@ -168,11 +168,12 @@
 ~~
 
 Only command line args that have a long version (eg. one that starts 
with '--')
-can be set in a config file. For example, "--color" can be set by
-putting "color=green" in a config file. The config file syntax depends 
on the
-constuctor arg: :code:`config_file_parser_class` which can be set to 
one of the
-provided classes: :code:`DefaultConfigFileParser` or 
:code:`YAMLConfigFileParser`,
-or to your own subclass of the :code:`ConfigFileParser` abstract class.
+can be set in a config file. For example, "--color" can be set by 
putting
+"color=green" in a config file. The config file syntax depends on the 
constuctor
+arg: :code:`config_file_parser_class` which can be set to one of the 
provided
+classes: :code:`DefaultConfigFileParser`, :code:`YAMLConfigFileParser`,
+:code:`ConfigparserConfigFileParser` or to your own subclass of the
+:code:`ConfigFileParser` abstract class.
 
 *DefaultConfigFileParser*  - the full range of valid syntax is:
 
@@ -211,6 +212,57 @@
 fruit: [apple, orange, lemon]
 indexes: [1, 12, 35, 40]
 
+*ConfigparserConfigFileParser*  - allows a subset of python's 
configparser
+module syntax (https://docs.python.org/3.7/library/configparser.html). 
In
+particular the following configparser options are set:
+
+.. code:: py
+
+config = configparser.ConfigParser(
+delimiters=("=",":"),
+allow_no_value=False,
+comment_prefixes=("#",";"),
+inline_comment_prefixes=("#",";"),
+strict=True,
+empty_lines_in_values=False,
+)
+
+Once configparser parses the config file all section names are 
removed, thus all
+keys must have unique names regardless of which INI section they are 
defined
+under. Also, any keys which have python list syntax are converted to 
lists by
+evaluating them as python code using ast.literal_eval
+(https://docs.python.org/3/library/ast.html#ast.literal_eval). To 
facilitate
+this all multi-line values are converted to single-line values. Thus 
multi-line
+

commit python-configargparse for openSUSE:Factory

2020-04-23 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2020-04-23 18:37:27

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new.2738 (New)


Package is "python-configargparse"

Thu Apr 23 18:37:27 2020 rev:8 rq:796510 version:1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2020-02-20 15:00:34.318899268 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.2738/python-configargparse.changes
2020-04-23 18:37:30.280898932 +0200
@@ -1,0 +2,5 @@
+Thu Apr 23 11:15:11 UTC 2020 - Tomáš Chvátal 
+
+- Fix build without python2
+
+---



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.UmWTPZ/_old  2020-04-23 18:37:31.164900624 +0200
+++ /var/tmp/diff_new_pack.UmWTPZ/_new  2020-04-23 18:37:31.168900631 +0200
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
 Name:   python-configargparse
 Version:1.0
 Release:0
@@ -31,11 +32,13 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python2-devel
-BuildRequires:  python2-unittest2
 Requires:   python-PyYAML
 Requires:   python-setuptools
 BuildArch:  noarch
+%if %{with python2}
+BuildRequires:  python2-devel
+BuildRequires:  python2-unittest2
+%endif
 %python_subpackages
 
 %description




commit python-configargparse for openSUSE:Factory

2020-02-20 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2020-02-20 15:00:31

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new.26092 (New)


Package is "python-configargparse"

Thu Feb 20 15:00:31 2020 rev:7 rq:777654 version:1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2019-11-22 10:27:35.001235350 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.26092/python-configargparse.changes
   2020-02-20 15:00:34.318899268 +0100
@@ -1,0 +2,6 @@
+Thu Feb 20 11:25:43 UTC 2020 - Steve Kowalik 
+
+- Update to 1.0.
+  * Dash supported as first char of argument
+
+---

Old:

  ConfigArgParse-0.15.1.tar.gz

New:

  ConfigArgParse-1.0.tar.gz



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.BMbpJE/_old  2020-02-20 15:00:35.806902188 +0100
+++ /var/tmp/diff_new_pack.BMbpJE/_new  2020-02-20 15:00:35.810902196 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-configargparse
 #
-# 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-configargparse
-Version:0.15.1
+Version:1.0
 Release:0
 Summary:A drop-in replacement for argparse
 License:MIT

++ ConfigArgParse-0.15.1.tar.gz -> ConfigArgParse-1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ConfigArgParse-0.15.1/ConfigArgParse.egg-info/PKG-INFO 
new/ConfigArgParse-1.0/ConfigArgParse.egg-info/PKG-INFO
--- old/ConfigArgParse-0.15.1/ConfigArgParse.egg-info/PKG-INFO  2019-10-08 
16:50:55.0 +0200
+++ new/ConfigArgParse-1.0/ConfigArgParse.egg-info/PKG-INFO 2019-12-30 
06:16:29.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: ConfigArgParse
-Version: 0.15.1
+Version: 1.0
 Summary: A drop-in replacement for argparse that allows options to also be set 
via config files and/or environment variables.
 Home-page: https://github.com/bw2/ConfigArgParse
 License: MIT
@@ -106,7 +106,7 @@
 
 .. code:: bash
 
-python my_script.py --genome hg19 --my-config config.txt  f1.vcf  
f2.vcf
+DBSNP_PATH=/data/dbsnp/variants_v2.vcf python config_test.py 
--my-config config.txt f1.vcf f2.vcf
 
 *output:*
 
@@ -114,30 +114,36 @@
 
 .. code:: bash
 
-Namespace(dbsnp='/data/dbsnp/variants.vcf', genome='hg19', 
my_config='config.txt', vcf=['f1.vcf', 'f2.vcf'], verbose=False)
+Namespace(dbsnp='/data/dbsnp/variants_v2.vcf', genome='HCMV', 
my_config='config.txt', v=False, vcf=['f1.vcf', 'f2.vcf'])
 --
-usage: my_script.py [-h] --genome GENOME [-v] -c MY_CONFIG [-d 
DBSNP]
-vcf [vcf ...]
+usage: config_test.py [-h] -c MY_CONFIG --genome GENOME [-v] [-d 
DBSNP]
+  vcf [vcf ...]
+
 Args that start with '--' (eg. --genome) can also be set in a 
config file
-(/etc/settings.ini or /home/jeff/.my_settings or provided via -c) 
by using
-.ini or .yaml-style syntax (eg. genome=value). Command-line values 
override
-environment variables which override config file values which 
override
-defaults.
-
+(/etc/app/conf.d/*.conf or ~/.my_settings or specified via -c). 
Config file
+syntax allows: key=value, flag=true, stuff=[a,b,c] (for details, 
see syntax at
+https://goo.gl/R74nmi). If an arg is specified in more than one 
place, then
+commandline values override environment variables which override 
config file
+values which override defaults.
+
 positional arguments:
-  vcf   variant file
+  vcf   variant file(s)
+
 optional arguments:
   -h, --helpshow this help message and exit
-  --genome GENOME   path to genome file
-  -vverbose
   -c MY_CONFIG, --my-config MY_CONFIG
 config file path
+  --genome GENOME   path to genome file
+  -v

commit python-configargparse for openSUSE:Factory

2019-11-22 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2019-11-22 10:27:24

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new.26869 (New)


Package is "python-configargparse"

Fri Nov 22 10:27:24 2019 rev:6 rq:750115 version:0.15.1

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2019-10-24 23:03:31.604127527 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.26869/python-configargparse.changes
   2019-11-22 10:27:35.001235350 +0100
@@ -1,0 +2,7 @@
+Thu Nov 21 15:24:10 CET 2019 - Matej Cepl 
+
+- When setting the environmental variable COLUMNS=80
+  test case test_help_with_metavar works again.
+  gh#bw2/ConfigArgParse#146
+
+---



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.T13YyS/_old  2019-11-22 10:27:35.889235088 +0100
+++ /var/tmp/diff_new_pack.T13YyS/_new  2019-11-22 10:27:35.893235087 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-configargparse
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -62,7 +62,8 @@
 
 %check
 # https://github.com/bw2/ConfigArgParse/issues/146
-%pytest -k 'not (test_main or test_help_with_metavar or testGlobalInstances or 
testGlobalInstances_WithName or testConfigOrEnvValueErrors)'
+export COLUMNS=80
+%pytest -k 'not (test_main or testGlobalInstances or 
testGlobalInstances_WithName or testConfigOrEnvValueErrors)'
 
 %files %{python_files}
 %doc README.rst




commit python-configargparse for openSUSE:Factory

2019-10-24 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2019-10-24 23:03:27

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new.2990 (New)


Package is "python-configargparse"

Thu Oct 24 23:03:27 2019 rev:5 rq:742147 version:0.15.1

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2019-09-27 14:49:25.868611441 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.2990/python-configargparse.changes
2019-10-24 23:03:31.604127527 +0200
@@ -1,0 +2,13 @@
+Wed Oct 23 13:07:43 UTC 2019 - Marketa Calabkova 
+
+- Update to 0.15.1
+  * Drop support for EOL Python 2.6, 3.2-3.3
+  * Add Python 3.6
+  * sudo no longer needed
+  * travis: Add latest Python versions.
+  * Drop support for EOL Python 3.4
+  * Fix DeprecationWarning: invalid escape sequence \[
+- dropped skip-test.patch
+  * 
https://github.com/bw2/ConfigArgParse/commit/6267759da55c87508394314292c6c5286220d99d
+
+---

Old:

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

New:

  ConfigArgParse-0.15.1.tar.gz



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.QMZp21/_old  2019-10-24 23:03:32.916129059 +0200
+++ /var/tmp/diff_new_pack.QMZp21/_new  2019-10-24 23:03:32.952129101 +0200
@@ -18,14 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-configargparse
-Version:0.14.0
+Version:0.15.1
 Release:0
 Summary:A drop-in replacement for argparse
 License:MIT
 Group:  Development/Languages/Python
 URL:https://github.com/bw2/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 pytest}
@@ -53,7 +52,6 @@
 
 %prep
 %setup -q -n ConfigArgParse-%{version}
-%patch0 -p1
 
 %build
 %python_build

++ ConfigArgParse-0.14.0.tar.gz -> ConfigArgParse-0.15.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ConfigArgParse-0.14.0/ConfigArgParse.egg-info/PKG-INFO 
new/ConfigArgParse-0.15.1/ConfigArgParse.egg-info/PKG-INFO
--- old/ConfigArgParse-0.14.0/ConfigArgParse.egg-info/PKG-INFO  2019-01-13 
17:09:05.0 +0100
+++ new/ConfigArgParse-0.15.1/ConfigArgParse.egg-info/PKG-INFO  2019-10-08 
16:50:55.0 +0200
@@ -1,12 +1,25 @@
 Metadata-Version: 2.1
 Name: ConfigArgParse
-Version: 0.14.0
+Version: 0.15.1
 Summary: A drop-in replacement for argparse that allows options to also be set 
via config files and/or environment variables.
 Home-page: https://github.com/bw2/ConfigArgParse
-Author: Zorro
-Author-email: zorro3.git...@gmail.com
 License: MIT
-Description: Overview
+Description: ConfigArgParse
+--
+
+.. image:: https://img.shields.io/pypi/v/ConfigArgParse.svg?style=flat
+:alt: PyPI version
+:target: https://pypi.python.org/pypi/ConfigArgParse
+
+.. image:: https://img.shields.io/pypi/pyversions/ConfigArgParse.svg
+:alt: Supported Python versions
+:target: https://pypi.python.org/pypi/ConfigArgParse
+
+.. image:: https://travis-ci.org/bw2/ConfigArgParse.svg?branch=master
+:alt: Travis CI build
+:target: https://travis-ci.org/bw2/ConfigArgParse
+
+Overview
 
 
 Applications with more than a handful of user-settable options are best
@@ -45,7 +58,7 @@
 -  extensible (:code:`ConfigFileParser` can be subclassed to define a 
new
config file format)
 -  unittested by running the unittests that came with argparse but on
-   configargparse, and using tox to test with python2.7+ and python3+
+   configargparse, and using tox to test with Python 2.7 and Python 3+
 
 Example
 ~~~
@@ -271,7 +284,7 @@
 
 Previously existing modules (PyPI search keywords: config argparse):
 
--  argparse (built-in module python v2.7+ )
+-  argparse (built-in module Python v2.7+)
 
-  Good:
 
@@ -302,7 +315,7 @@
  "choices" are not handled as expected. For example, if you
  specify a required value in a config file, you still have to
  specify it again on the command line.
- 

commit python-configargparse for openSUSE:Factory

2019-09-27 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2019-09-27 14:49:24

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new.2352 (New)


Package is "python-configargparse"

Fri Sep 27 14:49:24 2019 rev:4 rq:731447 version:0.14.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2019-03-01 16:50:19.561733422 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new.2352/python-configargparse.changes
2019-09-27 14:49:25.868611441 +0200
@@ -1,0 +2,5 @@
+Tue Sep 17 09:14:02 UTC 2019 - Tomáš Chvátal 
+
+- Skip failing tests that were reported upstream with no reaction
+
+---



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.yMBryT/_old  2019-09-27 14:49:27.808606396 +0200
+++ /var/tmp/diff_new_pack.yMBryT/_new  2019-09-27 14:49:27.816606375 +0200
@@ -23,11 +23,12 @@
 Summary:A drop-in replacement for argparse
 License:MIT
 Group:  Development/Languages/Python
-URL:https://github.com/zorro3/ConfigArgParse
+URL:https://github.com/bw2/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 pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -59,10 +60,11 @@
 
 %install
 %python_install
-%fdupes %{buildroot}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec -m unittest discover
+# https://github.com/bw2/ConfigArgParse/issues/146
+%pytest -k 'not (test_main or test_help_with_metavar or testGlobalInstances or 
testGlobalInstances_WithName or testConfigOrEnvValueErrors)'
 
 %files %{python_files}
 %doc README.rst




commit python-configargparse for openSUSE:Factory

2019-03-01 Thread root
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 
+
+- 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 

commit python-configargparse for openSUSE:Factory

2018-05-18 Thread root
Hello community,

here is the log from the commit of package python-configargparse for 
openSUSE:Factory checked in at 2018-05-18 14:28:30

Comparing /work/SRC/openSUSE:Factory/python-configargparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-configargparse.new (New)


Package is "python-configargparse"

Fri May 18 14:28:30 2018 rev:2 rq:610250 version:0.10.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-configargparse/python-configargparse.changes  
2016-01-11 19:11:16.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-configargparse.new/python-configargparse.changes
 2018-05-18 14:28:33.284935532 +0200
@@ -1,0 +2,10 @@
+Fri May 18 08:54:47 UTC 2018 - mc...@suse.com
+
+- Cleanup SPEC file and add check section
+
+---
+Thu Aug 24 13:34:40 UTC 2017 - jmate...@suse.com
+
+- singlespec auto-conversion
+
+---
@@ -35,0 +46 @@
+



Other differences:
--
++ python-configargparse.spec ++
--- /var/tmp/diff_new_pack.WZUbye/_old  2018-05-18 14:28:34.172902946 +0200
+++ /var/tmp/diff_new_pack.WZUbye/_new  2018-05-18 14:28:34.176902800 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-configargparse
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -16,20 +16,21 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-configargparse
 Version:0.10.0
 Release:0
 Summary:A drop-in replacement for argparse
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/zorro3/ConfigArgParse
-Source: 
https://pypi.python.org/packages/source/C/ConfigArgParse/ConfigArgParse-%{version}.tar.gz
+URL:https://github.com/zorro3/ConfigArgParse
+Source: 
https://files.pythonhosted.org/packages/source/C/ConfigArgParse/ConfigArgParse-%{version}.tar.gz
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
 Requires:   python-setuptools
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
+%python_subpackages
 
 %description
 ConfigArgParse allows options to also be set via config files and/or 
environment
@@ -47,17 +48,20 @@
 %setup -q -n ConfigArgParse-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root %{buildroot}
+%python_install
 %fdupes %{buildroot}
 
-%files
-%defattr(-,root,root,-)
+%check
+%python_exec setup.py test
+
+%files %{python_files}
 
 %{python_sitelib}/configargparse*
-%{python_sitelib}/ConfigArgParse-%{version}-py2.7.egg-info
-%doc LICENSE
+%{python_sitelib}/ConfigArgParse-%{version}-py*.egg-info
+%pycache_only %{python_sitelib}/__pycache__
+%license LICENSE
 
 %changelog