Hello community,
here is the log from the commit of package python-Keras-Applications for
openSUSE:Factory checked in at 2020-03-07 21:41:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Keras-Applications (Old)
and /work/SRC/openSUSE:Factory/.python-Keras-Applications.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Keras-Applications"
Sat Mar 7 21:41:08 2020 rev:3 rq:779126 version:1.0.8
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-Keras-Applications/python-Keras-Applications.changes
2020-02-07 16:00:50.327709659 +0100
+++
/work/SRC/openSUSE:Factory/.python-Keras-Applications.new.26092/python-Keras-Applications.changes
2020-03-07 21:41:09.588390498 +0100
@@ -1,0 +2,15 @@
+Tue Feb 25 15:02:20 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add python-Keras recommend only as we don't wanna have build cycle
+
+-------------------------------------------------------------------
+Tue Feb 25 11:24:09 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Match up exclude archs with tensorflow
+
+-------------------------------------------------------------------
+Mon Feb 24 13:57:05 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Switch to multibuild and enable tests
+
+-------------------------------------------------------------------
Old:
----
LICENSE
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Keras-Applications.spec ++++++
--- /var/tmp/diff_new_pack.1pUzRc/_old 2020-03-07 21:41:10.028390795 +0100
+++ /var/tmp/diff_new_pack.1pUzRc/_new 2020-03-07 21:41:10.032390798 +0100
@@ -17,28 +17,37 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name: python-Keras-Applications
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+%define skip_python2 1
+Name: python-Keras-Applications%{psuffix}
Version: 1.0.8
Release: 0
Summary: Reference implementations of deep learning models
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/keras-team/keras-applications
Source0:
https://files.pythonhosted.org/packages/source/K/Keras_Applications/Keras_Applications-%{version}.tar.gz
-Source10:
https://raw.githubusercontent.com/keras-team/keras-applications/%{version}/LICENSE
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-h5py
Requires: python-numpy >= 1.9.1
-BuildArch: noarch
-# SECTION test requirements
+# It won't work without it but we don't want a build loop in OBS
+Recommends: python-Keras
+# match up with tensorflow
+ExcludeArch: %{ix86}
+%if %{with test}
+BuildRequires: %{python_module Keras}
BuildRequires: %{python_module h5py}
BuildRequires: %{python_module numpy >= 1.9.1}
-BuildRequires: %{python_module pytest-cov}
-BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
-# /SECTION
+%endif
%python_subpackages
%description
@@ -49,18 +58,29 @@
%prep
%setup -q -n Keras_Applications-%{version}
-cp %{SOURCE10} .
+# these fetch tensorflow data from aws sadly
+rm tests/applications_test.py
%build
%python_build
%install
+%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%check
+%if %{with test}
+# test_decode_predictions - online test (fetches from google cloud)
+%pytest -k 'not test_decode_predictions'
+%endif
+
+%if !%{with test}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>