Hello community,

here is the log from the commit of package python-traittypes for 
openSUSE:Factory checked in at 2020-07-05 01:20:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-traittypes (Old)
 and      /work/SRC/openSUSE:Factory/.python-traittypes.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-traittypes"

Sun Jul  5 01:20:20 2020 rev:5 rq:818559 version:0.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-traittypes/python-traittypes.changes      
2019-05-22 11:04:17.158599901 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-traittypes.new.3060/python-traittypes.changes
    2020-07-05 01:21:53.345678620 +0200
@@ -1,0 +2,10 @@
+Fri Jul  3 10:39:29 UTC 2020 - [email protected]
+
+- switch from nose to pytest
+- added patches
+  fix https://github.com/jupyter-widgets/traittypes/pull/43
+  + python-traittypes-remove-nose.patch
+- python3 only package, xarray is actually required by
+  traittypes/traittypes.py
+
+-------------------------------------------------------------------

New:
----
  python-traittypes-remove-nose.patch

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

Other differences:
------------------
++++++ python-traittypes.spec ++++++
--- /var/tmp/diff_new_pack.TMYU5s/_old  2020-07-05 01:21:55.953686193 +0200
+++ /var/tmp/diff_new_pack.TMYU5s/_new  2020-07-05 01:21:55.953686193 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-traittypes
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:           python-traittypes
 Version:        0.2.1
 Release:        0
@@ -25,6 +26,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/jupyter-widgets/traittypes
 Source:         
https://files.pythonhosted.org/packages/source/t/traittypes/traittypes-%{version}.tar.gz
+# https://github.com/jupyter-widgets/traittypes/pull/43
+Patch0:         python-traittypes-remove-nose.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -32,7 +35,6 @@
 Requires:       python-traitlets >= 4.2.2
 BuildArch:      noarch
 # SECTION test requirements
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module pandas}
 BuildRequires:  %{python_module pytest}
@@ -46,6 +48,7 @@
 
 %prep
 %setup -q -n traittypes-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -55,9 +58,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# gh#jupyter-widgets/traittypes#31
-# tests require xarray, which doesn't support python2, even though the package 
itself doesn't
-nosetests-%{python3_bin_suffix} -v -e 'test_bad_values' traittypes
+# test_bad_values: gh#jupyter-widgets/traittypes#31
+%pytest -k 'not test_bad_values' traittypes
 
 %files %{python_files}
 %doc README.md

++++++ python-traittypes-remove-nose.patch ++++++
Index: traittypes-0.2.1/traittypes/tests/test_import_errors.py
===================================================================
--- traittypes-0.2.1.orig/traittypes/tests/test_import_errors.py        
2018-04-27 16:58:52.000000000 +0200
+++ traittypes-0.2.1/traittypes/tests/test_import_errors.py     2020-07-03 
11:18:24.336543158 +0200
@@ -1,10 +1,11 @@
 
-import nose.tools as nt
+from unittest import TestCase
 
 from ..traittypes import _DelayedImportError
 
 
[email protected](RuntimeError)
-def test_delayed_access_raises():
-    dummy = _DelayedImportError('mypackage')
-    dummy.asarray([1, 2, 3])
+class TestError(TestCase):
+    def test_delayed_access_raises(self):
+        dummy = _DelayedImportError('mypackage')
+        with self.assertRaises(RuntimeError):
+            dummy.asarray([1, 2, 3])

Reply via email to