Hello community,

here is the log from the commit of package python-cached-property for 
openSUSE:Factory checked in at 2019-02-01 12:03:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cached-property (Old)
 and      /work/SRC/openSUSE:Factory/.python-cached-property.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cached-property"

Fri Feb  1 12:03:39 2019 rev:5 rq:670547 version:1.3.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-cached-property/python-cached-property.changes
    2018-12-13 19:40:51.321280017 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-cached-property.new.28833/python-cached-property.changes
 2019-02-01 12:03:43.503426927 +0100
@@ -1,0 +2,6 @@
+Fri Feb  1 10:58:51 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix build with new freezegun (by skipping test):
+  * freezegun-skip.patch
+
+-------------------------------------------------------------------

New:
----
  freezegun-skip.patch

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

Other differences:
------------------
++++++ python-cached-property.spec ++++++
--- /var/tmp/diff_new_pack.iBbjjt/_old  2019-02-01 12:03:44.143426270 +0100
+++ /var/tmp/diff_new_pack.iBbjjt/_new  2019-02-01 12:03:44.143426270 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cached-property
 #
-# 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
@@ -17,7 +17,6 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
 Name:           python-cached-property
 Version:        1.3.0
 Release:        0
@@ -26,13 +25,14 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/pydanny/cached-property
 Source:         
https://files.pythonhosted.org/packages/source/c/cached-property/cached-property-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM skip test that rely on wrong freezegun behaviour
+# https://github.com/pydanny/cached-property/pull/125
+Patch0:         freezegun-skip.patch
+BuildRequires:  %{python_module freezegun}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-%if %{with test}
-BuildRequires:  %{python_module freezegun}
-%endif
 %python_subpackages
 
 %description
@@ -42,6 +42,7 @@
 
 %prep
 %setup -q -n cached-property-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -50,10 +51,8 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%if %{with test}
 %check
-%python_exec setup.py test
-%endif
+%python_expand $python -m unittest discover -v
 
 %files %{python_files}
 %license LICENSE

++++++ freezegun-skip.patch ++++++
Index: cached-property-1.3.0/tests/test_cached_property.py
===================================================================
--- cached-property-1.3.0.orig/tests/test_cached_property.py
+++ cached-property-1.3.0/tests/test_cached_property.py
@@ -191,6 +191,7 @@ class TestCachedPropertyWithTTL(TestCach
         self.assert_cached(check, 2)
         self.assert_cached(check, 2)
 
+    @unittest.skip("new freezegun breaks behaviour of this test")
     def test_threads_ttl_expiry(self):
         Check = CheckFactory(self.cached_property_factory(ttl=100000),
                              threadsafe=True)

Reply via email to