Hello community,
here is the log from the commit of package python-opt-einsum for
openSUSE:Factory checked in at 2020-03-07 21:41:01
Comparing /work/SRC/openSUSE:Factory/python-opt-einsum (Old)
and /work/SRC/openSUSE:Factory/.python-opt-einsum.new.26092 (New)
Package is "python-opt-einsum"
Sat Mar 7 21:41:01 2020 rev:2 rq:778990 version:3.1.0
Changes:
--- /work/SRC/openSUSE:Factory/python-opt-einsum/python-opt-einsum.changes
2020-02-03 11:12:46.681828547 +0100
+++
/work/SRC/openSUSE:Factory/.python-opt-einsum.new.26092/python-opt-einsum.changes
2020-03-07 21:41:08.188389553 +0100
@@ -1,0 +2,6 @@
+Tue Feb 25 09:41:48 UTC 2020 - Tomáš Chvátal
+
+- Enable testing
+- Install license and documentation
+
+---
Other differences:
--
++ python-opt-einsum.spec ++
--- /var/tmp/diff_new_pack.tIaB2I/_old 2020-03-07 21:41:08.588389823 +0100
+++ /var/tmp/diff_new_pack.tIaB2I/_new 2020-03-07 21:41:08.592389825 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-opt-einsum
#
-# Copyright (c) 2020 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
@@ -12,27 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-
%define skip_python2 1
-
Name: python-opt-einsum
Version:3.1.0
Release:0
-License:MIT
Summary:Optimizing numpys einsum function
-Url:https://github.com/dgasmith/opt_einsum
-Group: Development/Languages/Python
-Source:
https://files.pythonhosted.org/packages/source/o/opt-einsum/opt_einsum-%{version}.tar.gz
-BuildRequires: python-rpm-macros
-BuildRequires: %{python_module devel}
+License:MIT
+URL:https://github.com/dgasmith/opt_einsum
+Source:
https://files.pythonhosted.org/packages/source/o/opt_einsum/opt_einsum-%{version}.tar.gz
+BuildRequires: %{python_module numpy >= 1.7}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
+Requires: python-numpy >= 1.7
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
BuildArch: noarch
-
%python_subpackages
%description
@@ -45,10 +44,10 @@
any library which conforms to a standard API. See the
[**documentation**](http://optimized-einsum.readthedocs.io) for more
information.
+
%prep
%setup -q -n opt_einsum-%{version}
-# will break on python2 builds, but this not relevant for factory
-%python_expand sed -i 's@/usr/bin/env
python@/usr/bin/python%{$python_bin_suffix}@' ./opt_einsum/parser.py
+
%build
%python_build
@@ -56,7 +55,12 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+%pytest
+
%files %{python_files}
+%doc README.md
+%license LICENSE
%{python_sitelib}/*
%changelog