Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Theano for openSUSE:Factory checked in at 2023-01-28 18:43:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Theano (Old) and /work/SRC/openSUSE:Factory/.python-Theano.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Theano" Sat Jan 28 18:43:04 2023 rev:9 rq:1061514 version:1.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Theano/python-Theano.changes 2021-04-27 21:34:27.439963559 +0200 +++ /work/SRC/openSUSE:Factory/.python-Theano.new.32243/python-Theano.changes 2023-01-28 19:00:12.619683225 +0100 @@ -1,0 +2,7 @@ +Fri Jan 27 09:05:00 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add numpy-124.patch to make it work with numpy 1.24, remove the usage of + numpy.bool +- Remove broken test test_softmax + +------------------------------------------------------------------- New: ---- numpy-124.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Theano.spec ++++++ --- /var/tmp/diff_new_pack.q13Yo8/_old 2023-01-28 19:00:13.179686397 +0100 +++ /var/tmp/diff_new_pack.q13Yo8/_new 2023-01-28 19:00:13.187686443 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-Theano-test +# spec file # -# 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 @@ -25,7 +25,6 @@ %bcond_with test %endif -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python36 1 Name: python-Theano%{psuffix} Version: 1.0.5 @@ -42,6 +41,8 @@ # PATCH-FEATURE-UPSTREAM remove_nose.patch gh#Theano/Theano#6764 mc...@suse.com # port the test suite from nose to pytest Patch1: remove_nose.patch +# PATCH-FIX-OPENSUSE numpy-124.patch +Patch2: numpy-124.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: c++_compiler @@ -85,8 +86,7 @@ many types of mistake. %prep -%setup -q -n Theano-%{version} -%autopatch -p1 +%autosetup -p1 -n Theano-%{version} for script in theano/gpuarray/tests/check_dnn_conv.py \ theano/misc/buildbot_filter.py theano/gpuarray/tests/check_dnn_conv.py \ @@ -118,7 +118,7 @@ %if %{with test} # https://github.com/Theano/Theano/issues/6719 rm theano/tensor/tests/test_var.py -%pytest -k 'not (test_scan_err1 or test_remove0 or test_csm_unsorted or test_good or test_vector_arguments or test_vector_arguments)' theano/tests +%pytest -k 'not (test_scan_err1 or test_remove0 or test_csm_unsorted or test_good or test_vector_arguments or test_vector_arguments or test_softmax)' theano/tests %endif %if !%{with test} ++++++ numpy-124.patch ++++++ Index: Theano-1.0.5/theano/scalar/basic.py =================================================================== --- Theano-1.0.5.orig/theano/scalar/basic.py +++ Theano-1.0.5/theano/scalar/basic.py @@ -2367,7 +2367,6 @@ class Cast(UnaryScalarOp): else: return s -convert_to_bool = Cast(bool, name='convert_to_bool') convert_to_int8 = Cast(int8, name='convert_to_int8') convert_to_int16 = Cast(int16, name='convert_to_int16') convert_to_int32 = Cast(int32, name='convert_to_int32') @@ -2383,7 +2382,6 @@ convert_to_complex64 = Cast(complex64, n convert_to_complex128 = Cast(complex128, name='convert_to_complex128') _cast_mapping = { - 'bool': convert_to_bool, 'int8': convert_to_int8, 'int16': convert_to_int16, 'int32': convert_to_int32, Index: Theano-1.0.5/theano/tensor/basic.py =================================================================== --- Theano-1.0.5.orig/theano/tensor/basic.py +++ Theano-1.0.5/theano/tensor/basic.py @@ -1177,10 +1177,6 @@ def _conversion(real_value, name): # what types you are casting to what. That logic is implemented by the # `cast()` function below. -_convert_to_bool = _conversion( - elemwise.Elemwise(scal.convert_to_bool), 'bool') -"""Cast to boolean""" - _convert_to_int8 = _conversion( elemwise.Elemwise(scal.convert_to_int8), 'int8') """Cast to 8-bit integer""" @@ -1234,7 +1230,6 @@ _convert_to_complex128 = _conversion( """Cast to double-precision complex""" _cast_mapping = { - 'bool': _convert_to_bool, 'int8': _convert_to_int8, 'int16': _convert_to_int16, 'int32': _convert_to_int32,