Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-traittypes for openSUSE:Factory checked in at 2023-01-08 21:25:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-traittypes (Old) and /work/SRC/openSUSE:Factory/.python-traittypes.new.1563 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-traittypes" Sun Jan 8 21:25:32 2023 rev:9 rq:1056815 version:0.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-traittypes/python-traittypes.changes 2021-04-12 17:10:51.766598066 +0200 +++ /work/SRC/openSUSE:Factory/.python-traittypes.new.1563/python-traittypes.changes 2023-01-08 21:25:33.511253880 +0100 @@ -1,0 +2,7 @@ +Sat Jan 7 20:11:30 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Add python-fix-nptypes.patch gh#jupyter-widgets/traittypes#32 +- Clean specfile, no files catachall +- Use PEP517 build + +------------------------------------------------------------------- New: ---- python-fix-nptypes.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-traittypes.spec ++++++ --- /var/tmp/diff_new_pack.1iqJJZ/_old 2023-01-08 21:25:33.927256352 +0100 +++ /var/tmp/diff_new_pack.1iqJJZ/_new 2023-01-08 21:25:33.931256376 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-traittypes # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,7 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -%define skip_python36 1 Name: python-traittypes Version: 0.2.1 Release: 0 @@ -27,10 +25,14 @@ 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 +# PATCH-FEATURE-UPSTREAM gh#jupyter-widgets/traittypes#43 Patch0: python-traittypes-remove-nose.patch +# PATCH-FIX-UPSTREAM h#jupyter-widgets/traittypes#32 +Patch1: python-fix-nptypes.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-traitlets >= 4.2.2 @@ -48,23 +50,22 @@ Custom trait types for scientific computing. %prep -%setup -q -n traittypes-%{version} -%patch0 -p1 +%autosetup -p1 -n traittypes-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# test_bad_values: gh#jupyter-widgets/traittypes#31 -%pytest -k 'not test_bad_values' traittypes +%pytest traittypes %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/traittypes +%{python_sitelib}/traittypes-%{version}.dist-info %changelog ++++++ python-fix-nptypes.patch ++++++ Index: traittypes-0.2.1/traittypes/tests/test_traittypes.py =================================================================== --- traittypes-0.2.1.orig/traittypes/tests/test_traittypes.py +++ traittypes-0.2.1/traittypes/tests/test_traittypes.py @@ -17,17 +17,17 @@ import xarray as xr class IntArrayTrait(HasTraits): - value = Array().tag(dtype=np.int) + value = Array(dtype=int) class TestIntArray(TraitTestBase): """ - Test dtype validation with a ``dtype=np.int`` + Test dtype validation with a ``dtype=int`` """ obj = IntArrayTrait() _good_values = [1, [1, 2, 3], [[1, 2, 3], [4, 5, 6]], np.array([1])] - _bad_values = [[1, [0, 0]]] + _bad_values = [[1, [0, 0]], ['str'], 'str'] def assertEqual(self, v1, v2): return np.testing.assert_array_equal(v1, v2)