Hello community,

here is the log from the commit of package python-parse_type for 
openSUSE:Factory checked in at 2019-08-28 18:36:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-parse_type (Old)
 and      /work/SRC/openSUSE:Factory/.python-parse_type.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-parse_type"

Wed Aug 28 18:36:37 2019 rev:2 rq:726607 version:0.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-parse_type/python-parse_type.changes      
2019-02-28 21:39:26.945620451 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-parse_type.new.7948/python-parse_type.changes
    2019-08-28 18:36:39.641271409 +0200
@@ -1,0 +2,8 @@
+Tue Aug 27 13:57:32 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- update to version 0.5.2
+  * requires parse >= 1.12.0
+  * test fixes
+- shortened patch testsuite-fix.patch
+
+-------------------------------------------------------------------

Old:
----
  parse_type-0.4.2.tar.gz

New:
----
  parse_type-0.5.2.tar.gz

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

Other differences:
------------------
++++++ python-parse_type.spec ++++++
--- /var/tmp/diff_new_pack.d52YzW/_old  2019-08-28 18:36:40.421271273 +0200
+++ /var/tmp/diff_new_pack.d52YzW/_new  2019-08-28 18:36:40.425271272 +0200
@@ -18,35 +18,34 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-parse_type
-Version:        0.4.2
+Version:        0.5.2
 Release:        0
 Summary:        Extension to the parse module
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            https://github.com/jenisys/parse_type
+URL:            https://github.com/jenisys/parse_type
 Source:         
https://files.pythonhosted.org/packages/source/p/parse_type/parse_type-%{version}.tar.gz
 Patch0:         testsuite-fix.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python2-enum34
-# SECTION test requirements
-BuildRequires:  %{python_module parse >= 1.11}
-BuildRequires:  %{python_module pytest >= 3.0}
-BuildRequires:  %{python_module six >= 1.11}
-# /SECTION
-BuildRequires:  fdupes
-Requires:       python-parse >= 1.11
+Requires:       python-parse >= 1.12.0
 Requires:       python-six >= 1.11
+Suggests:       python-coverage
 Suggests:       python-enum34
 Suggests:       python-ordereddict
-Suggests:       python-coverage
 Suggests:       python-pytest >= 3.0
 Suggests:       python-pytest-cov
-Suggests:       python-tox
 Suggests:       python-sphinx >= 1.2
+Suggests:       python-tox
 BuildArch:      noarch
-
+# SECTION test requirements
+BuildRequires:  %{python_module parse >= 1.12.0}
+BuildRequires:  %{python_module pytest >= 3.0}
+BuildRequires:  %{python_module six >= 1.11}
+# /SECTION
 %python_subpackages
 
 %description
@@ -63,7 +62,7 @@
 
 %prep
 %setup -q -n parse_type-%{version}
-%autopatch -p1
+%patch0 -p1
 
 # Remove bundled parse.py
 rm -fv parse_type/parse.py
@@ -76,7 +75,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand py.test-%{$python_bin_suffix} -v -k 'not 
(test_parse_with_many0_and_unnamed_fields or 
test_parse_with_many_and_unnamed_fields or 
test_parse_with_optional_and_unnamed_fields or test_pm_overflow_issue16)'
+%pytest -k 'not (test_parse_with_many0_and_unnamed_fields or 
test_parse_with_many_and_unnamed_fields or 
test_parse_with_optional_and_unnamed_fields or test_pm_overflow_issue16)'
 
 %files %{python_files}
 %license LICENSE

++++++ parse_type-0.4.2.tar.gz -> parse_type-0.5.2.tar.gz ++++++
++++ 4717 lines of diff (skipped)

++++++ testsuite-fix.patch ++++++
--- /var/tmp/diff_new_pack.d52YzW/_old  2019-08-28 18:36:40.513271257 +0200
+++ /var/tmp/diff_new_pack.d52YzW/_new  2019-08-28 18:36:40.513271257 +0200
@@ -1,61 +1,5 @@
---- a/tests/test_cardinality.py
-+++ b/tests/test_cardinality.py
-@@ -5,11 +5,12 @@ Test suite to test the :mod:`parse_type.
- """
- 
- from __future__ import absolute_import
--from .parse_type_test import ParseTypeTestCase, parse_number
--from parse_type import Cardinality, TypeBuilder, build_type_dict
--from parse_type.parse import Parser as ParserExt
- import parse
- import unittest
-+from parse import Parser as ParserExt
-+
-+from .parse_type_test import ParseTypeTestCase, parse_number
-+from parse_type import Cardinality, TypeBuilder, build_type_dict
- 
- # 
-----------------------------------------------------------------------------
- # TEST CASE: TestCardinality
---- a/tests/test_builder.py
-+++ b/tests/test_builder.py
-@@ -495,35 +495,6 @@ Person:   Alice
-         self.assertIsNotNone(result)
-         self.assertEqual(result.fixed, tuple(expected))
- 
--    def test_parse_with_many_unnamed_fields_with_variants(self):
--        from parse_type.parse import Parser as Parser2
--        type_dict = build_type_dict(self.TYPE_CONVERTERS)
--        schema = """\
--Number:   {:Number}
--YesNo:    {:YesNo}
--Color:    {:Color}
--Person:   {:PersonChoice}
--Variant2: {:Color_or_PersonChoice}
--Variant1: {:Number_or_YesNo}
--"""
--        # -- OMIT: XFAIL, due to group_index delta counting => Parser problem.
--        parser = Parser2(schema, type_dict)
--
--        text = """\
--Number:   12
--YesNo:    yes
--Color:    red
--Person:   Alice
--Variant2: Bob
--Variant1: 42
--"""
--        expected = [ 12, True, Color.red, "Alice", "Bob", 42 ]
--
--        result = parser.parse(text)
--        self.assertIsNotNone(result)
--        self.assertEqual(result.fixed, tuple(expected))
--
--
- # 
-----------------------------------------------------------------------------
- # MAIN:
- # 
-----------------------------------------------------------------------------
---- a/tests/test_parse_type_parse.py
-+++ b/tests/test_parse_type_parse.py
+--- a/tests/test_parse.py
++++ b/tests/test_parse.py
 @@ -22,14 +22,7 @@ from datetime import datetime, time
  import re
  


Reply via email to