Hello community,

here is the log from the commit of package python-Theano for openSUSE:Factory 
checked in at 2020-02-26 15:03:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Theano (Old)
 and      /work/SRC/openSUSE:Factory/.python-Theano.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Theano"

Wed Feb 26 15:03:37 2020 rev:4 rq:779135 version:1.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Theano/python-Theano.changes      
2019-03-11 11:15:58.061327377 +0100
+++ /work/SRC/openSUSE:Factory/.python-Theano.new.26092/python-Theano.changes   
2020-02-26 15:03:40.685027373 +0100
@@ -1,0 +2,38 @@
+Tue Feb 25 15:41:27 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Reduce the test scope as it takes a day to compile the full
+  testsuite, just run the generic test directory
+
+-------------------------------------------------------------------
+Tue Feb 25 10:34:22 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Do install test files again as it fixes Keras testing
+
+-------------------------------------------------------------------
+Tue Feb 25 09:01:12 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Skip tests that are known failures
+
+-------------------------------------------------------------------
+Mon Feb 24 15:36:50 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Do not install test files and sitelib/bin folder
+
+-------------------------------------------------------------------
+Mon Feb 24 15:31:04 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- As the testing takes ages split to multibuild and reduce the
+  arch testing scope
+
+-------------------------------------------------------------------
+Mon Feb 24 12:19:14 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add _constraints to make sure we have enough memory for the
+  testing
+
+-------------------------------------------------------------------
+Thu Feb 20 14:21:23 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Enable Theano testing and add missing build/runtime deps
+
+-------------------------------------------------------------------

New:
----
  _constraints
  _multibuild

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

Other differences:
------------------
++++++ python-Theano.spec ++++++
--- /var/tmp/diff_new_pack.QcTzX4/_old  2020-02-26 15:03:41.545029089 +0100
+++ /var/tmp/diff_new_pack.QcTzX4/_new  2020-02-26 15:03:41.545029089 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Theano
 #
-# 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,31 +17,46 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name:           python-Theano
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name:           python-Theano%{psuffix}
 Version:        1.0.4
 Release:        0
 Summary:        A scientific python library
 License:        BSD-3-Clause
 Group:          Development/Libraries/Python
-URL:            http://deeplearning.net/software/theano/
+URL:            https://github.com/Theano/Theano
 Source:         
https://files.pythonhosted.org/packages/source/T/Theano/Theano-%{version}.tar.gz
 Source1:        python-Theano.rpmlintrc
+BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  c++_compiler
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       c++_compiler
+Requires:       python-devel
 Requires:       python-numpy >= 1.9.1
+Requires:       python-numpy-devel >= 1.9.1
 Requires:       python-scipy >= 0.14
 Requires:       python-six >= 1.9.0
+# The tests are compiling and are arch specific
+%if !%{with test}
 BuildArch:      noarch
-# SECTION test requirements
-BuildRequires:  %{python_module nose >= 1.3.0}
+%endif
+%if %{with test}
+BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module numpy >= 1.9.1}
+BuildRequires:  %{python_module numpy-devel}
 BuildRequires:  %{python_module parameterized}
 BuildRequires:  %{python_module scipy >= 0.14}
 BuildRequires:  %{python_module six >= 1.9.0}
-# /SECTION
+%endif
 %python_subpackages
 
 %description
@@ -66,23 +81,35 @@
 %python_build
 
 %install
+%if !%{with test}
 %python_install
 
+# remove binaries and stuff thats not supposed to end up on system
+%python_expand rm -r %{buildroot}%{$python_sitelib}/bin
+# Other pkgs use theano tests as a basis (see Keras)
+#%%python_expand rm -r %{buildroot}%{$python_sitelib}/theano/tests
+#%%python_expand rm -r %{buildroot}%{$python_sitelib}/theano/*/tests
+
 # replace duplicate .pyo/.pyc with hardlinks
 %python_expand %fdupes %{buildroot}%{_defaultdocdir}/%{name}
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
-# Fix python-bytecode-inconsistent-mtime
-%python_expand $python -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/theano
-%python_expand $python -O -m compileall -d %{$python_sitelib}  
%{buildroot}%{$python_sitelib}/theano
+%check
+%if %{with test}
+# https://github.com/Theano/Theano/issues/6719
+rm theano/tensor/tests/test_var.py
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
nosetests-%{$python_bin_suffix} theano/tests -v -e 
'(test_scan_err1|test_remove0|test_csm_unsorted|test_good|test_vector_arguments|test_vector_arguments)'
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %doc DESCRIPTION.txt EMAIL.txt HISTORY.txt NEWS.txt README.rst
 %license doc/LICENSE.txt
 %python3_only %{_bindir}/theano-cache
 %python3_only %{_bindir}/theano-nose
-%{python_sitelib}/bin
 %{python_sitelib}/theano
 %{python_sitelib}/Theano-%{version}-*.egg-info
+%endif
 
 %changelog

++++++ _constraints ++++++
<constraints>
  <hardware>
    <physicalmemory>
      <size unit="M">6000</size>
    </physicalmemory>
  </hardware>
</constraints>
++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to