Hello community,

here is the log from the commit of package python-rollbar for openSUSE:Factory 
checked in at 2020-06-03 20:35:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rollbar (Old)
 and      /work/SRC/openSUSE:Factory/.python-rollbar.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rollbar"

Wed Jun  3 20:35:06 2020 rev:5 rq:811061 version:0.15.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rollbar/python-rollbar.changes    
2020-05-19 14:57:55.469326197 +0200
+++ /work/SRC/openSUSE:Factory/.python-rollbar.new.3606/python-rollbar.changes  
2020-06-03 20:36:06.465846880 +0200
@@ -1,0 +2,9 @@
+Wed Jun  3 09:05:04 UTC 2020 - pgaj...@suse.com
+
+- use %pytest macro
+- remove dependency on unittest2 for python3
+- added patches
+  https://github.com/rollbar/pyrollbar/pull/340
+  + python-rollbar-no-unittest2.patch
+
+-------------------------------------------------------------------

New:
----
  python-rollbar-no-unittest2.patch

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

Other differences:
------------------
++++++ python-rollbar.spec ++++++
--- /var/tmp/diff_new_pack.AHfi4D/_old  2020-06-03 20:36:07.481850065 +0200
+++ /var/tmp/diff_new_pack.AHfi4D/_new  2020-06-03 20:36:07.485850078 +0200
@@ -26,12 +26,14 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/rollbar/pyrollbar
 Source:         https://github.com/rollbar/pyrollbar/archive/v%{version}.tar.gz
+# https://github.com/rollbar/pyrollbar/pull/340
+Patch0:         python-rollbar-no-unittest2.patch
 BuildRequires:  %{python_module WebOb}
 BuildRequires:  %{python_module blinker}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests >= 0.12.1}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six >= 1.9.0}
-BuildRequires:  %{python_module unittest2}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-requests >= 0.12.1
@@ -43,6 +45,7 @@
 %if %{with python2}
 BuildRequires:  python2-enum34
 BuildRequires:  python2-mock
+BuildRequires:  python2-unittest2
 %endif
 %python_subpackages
 
@@ -51,6 +54,7 @@
 
 %prep
 %setup -q -n pyrollbar-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -61,7 +65,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec setup.py test
+%pytest
 
 %post
 %python_install_alternative rollbar

++++++ python-rollbar-no-unittest2.patch ++++++
Index: pyrollbar-0.15.0/rollbar/test/__init__.py
===================================================================
--- pyrollbar-0.15.0.orig/rollbar/test/__init__.py      2020-04-04 
02:08:37.000000000 +0200
+++ pyrollbar-0.15.0/rollbar/test/__init__.py   2020-06-03 10:51:15.137644743 
+0200
@@ -1,9 +1,12 @@
-import unittest2
+try:
+    import unittest2 as unittest
+except ImportError:
+    import unittest
 
 
 SNOWMAN = b'\xe2\x98\x83'
 SNOWMAN_UNICODE = SNOWMAN.decode('utf8')
 
 
-class BaseTest(unittest2.TestCase):
+class BaseTest(unittest.TestCase):
     pass

Reply via email to