commit python-slycot for openSUSE:Factory

2020-07-01 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2020-07-01 14:26:50

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.3060 (New)


Package is "python-slycot"

Wed Jul  1 14:26:50 2020 rev:11 rq:817900 version:0.4.0.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2020-06-27 23:22:37.109829819 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.3060/python-slycot.changes
2020-07-01 14:26:51.694798569 +0200
@@ -1,0 +2,8 @@
+Tue Jun 30 09:36:05 UTC 2020 - Benjamin Greiner 
+
+- Remove the ppc workaround and skip the failing test entirely.
+- Remove openblas configuration; link to Generic implementation.
+  This lets update-alternatives select the implementation at runtime.
+  Optimized packages are pulled in by numpy-devel and scipy.
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.Fbe6PJ/_old  2020-07-01 14:26:52.726801770 +0200
+++ /var/tmp/diff_new_pack.Fbe6PJ/_new  2020-07-01 14:26:52.730801782 +0200
@@ -16,16 +16,6 @@
 #
 
 
-%if 0%{?sle_version} == 120300 && !0%{?is_opensuse}
-  %bcond_with openblas
-%else
- %ifarch armv6l s390 s390x m68k riscv64
-  %bcond_with openblas
- %else
-  %bcond_without openblas
- %endif
-%endif
-
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 %define eggversion 0.4.0
@@ -43,17 +33,13 @@
 BuildRequires:  %{python_module scikit-build}
 BuildRequires:  %{python_module scipy}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  blas-devel
 BuildRequires:  cmake >= 3.11
 BuildRequires:  fdupes
 BuildRequires:  gcc
 BuildRequires:  gcc-fortran
-BuildRequires:  python-rpm-macros
-%if %{with openblas}
-BuildRequires:  openblas-devel
-%else
-BuildRequires:  blas-devel
 BuildRequires:  lapack-devel
-%endif
+BuildRequires:  python-rpm-macros
 Requires:   python-numpy
 %python_subpackages
 
@@ -62,13 +48,13 @@
 
 %prep
 %setup -q -n slycot-%{version}
-# break test loop before test matrices are too ill-conditioned for the 
architecture
-%ifarch ppc64 ppc64le
-  sed -i 's/for t in range(0, 50, 10)/for t in range(0, 20, 10)/' 
slycot/tests/test_sg03ad.py
-%endif
 
 %build
 export CFLAGS="%{optflags}"
+# link against the generic BLAS/LAPACK binaries
+# let update-alternatives choose the vendor at runtime,
+# even when openblas-devel is pulled in by numpy
+export BLA_VENDOR="Generic"
 %python_build --generator "Unix Makefiles"
 
 %install
@@ -79,7 +65,10 @@
 export LANG="en_US.UTF-8"
 # avoid leading empty path entry introduced by %%pytest_arch
 export PYTHONPATH=/nonexistent
-%pytest_arch --pyargs slycot
+%ifarch ppc64 ppc64le
+  %define skiptest -k "not (test_tb05ad_ or test_sg03ad_ex)"
+%endif
+%pytest_arch --pyargs slycot %{?skiptest}
 
 %files %{python_files}
 %doc README.rst




commit python-slycot for openSUSE:Factory

2020-06-27 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2020-06-27 23:22:36

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.3060 (New)


Package is "python-slycot"

Sat Jun 27 23:22:36 2020 rev:10 rq:817306 version:0.4.0.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2020-06-02 14:38:50.959561258 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.3060/python-slycot.changes
2020-06-27 23:22:37.109829819 +0200
@@ -1,0 +2,8 @@
+Fri Jun 26 15:59:21 UTC 2020 - Benjamin Greiner 
+
+- break test loop before test matrices are too ill-conditioned for
+  the ppc architecture
+- remove python2 support: there is no python2-scikit-build
+- requires cmake >= 3.11 (no leap 15.1)
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.Y5091D/_old  2020-06-27 23:22:39.681838274 +0200
+++ /var/tmp/diff_new_pack.Y5091D/_new  2020-06-27 23:22:39.685838288 +0200
@@ -27,7 +27,7 @@
 %endif
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without python2
+%define skip_python2 1
 %define eggversion 0.4.0
 Name:   python-slycot
 Version:0.4.0.0
@@ -43,14 +43,11 @@
 BuildRequires:  %{python_module scikit-build}
 BuildRequires:  %{python_module scipy}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  cmake
+BuildRequires:  cmake >= 3.11
 BuildRequires:  fdupes
 BuildRequires:  gcc
 BuildRequires:  gcc-fortran
 BuildRequires:  python-rpm-macros
-%if %{with python2}
-BuildRequires:  python2-configparser
-%endif
 %if %{with openblas}
 BuildRequires:  openblas-devel
 %else
@@ -65,6 +62,10 @@
 
 %prep
 %setup -q -n slycot-%{version}
+# break test loop before test matrices are too ill-conditioned for the 
architecture
+%ifarch ppc64 ppc64le
+  sed -i 's/for t in range(0, 50, 10)/for t in range(0, 20, 10)/' 
slycot/tests/test_sg03ad.py
+%endif
 
 %build
 export CFLAGS="%{optflags}"




commit python-slycot for openSUSE:Factory

2020-06-02 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2020-06-02 14:38:06

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.3606 (New)


Package is "python-slycot"

Tue Jun  2 14:38:06 2020 rev:9 rq:810372 version:0.4.0.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2020-04-22 20:52:03.923283351 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.3606/python-slycot.changes
2020-06-02 14:38:50.959561258 +0200
@@ -1,0 +2,55 @@
+Sat May 30 14:03:41 UTC 2020 - Benjamin Greiner 
+
+- Update to version 0.4.0.0 
+  * Added periodic Schur decomposition functions mb03vd, mb03vy, and mb03wd
+  * Added ab08nz, allowing one to find zeros of complex-valued state-space 
models
+  * Added mb03rd, Schur to block-diagonal transform
+  * Added sb01fd H-infinity solver
+Already present sb10ad searches for a minimum gamma value for a given 
+H-infinity problem; sb10fd, by contrast, only attempts to solve for a 
given 
+gamma value. This can be used to test for admissible gamma values, which 
+could be useful for problems like python-control/python-control#367.
+  * New Slycot exception hierarchy; greatly improved Slycot error handling.
+Slycot routines now raise SlycotValueError where they would previously 
have 
+raised ValueError, and SlycotArithmeticError where they would have raised 
+ArithmeticError.
+These changes are backwardly compatible: SlycotValueError is a subclasss 
of 
+ValueError, and SlycotArithmeticError is a subclass of ArithmeticError.
+As part of this, many of the Slycot function docstrings were changed to 
+conform to numpydoc conventions.
+This supersedes an earlier fix for python-control#347 made during 0.4.0 
+development.
+  * Override XERBLA
+Overrode the BLAS error function XERBLA that SLICOT routines use to report 
+errors; the BLAS-provided XERBLA can terminate the whole Python process.
+  * Correct application of DGEBAL in TB01TD and TB05AD
+  * Fixed ab01nd for jobz='N' case
+  * conda build recipes no longer use pip
+  * added conda recipes for MKL and Apple
+  * removed conda recipes for Windows; no developer is using them, and they 
+weren't working
+  * the signature files (.pyf files) are now a dependency of wrapper generation
+Testing
+  * Tests added for mb05nd, mc01td, ab08nd, ab08nz, mb03vd, mb03vy, mb03wd.
+  * Tests fixed or expanded for mb05md, sg03ad, td04ad.
+  * Switched to pytest; Slycot CI now uses pytest for both the Slycot and 
+ python-control test suites.
+  * CI now builds and tests for Linux and macOS. The Linux builds include 
+OpenBLAS and MKL variants.
+  * Examples are run as part of tests. Outputs are not checked, but errors and 
+warnings are.
+  * CI coveralls.io integration fixed.
+  * General test clean-up.
+  * Test files are no longer executable.
+  * Fix for mb05nd.
+  * Lots of clean-up: removal of unused mathematical.pyf, many docstring 
fixes, 
+and some PEP 8 conformance changes to Python code.
+  * Fix for Fortran-compiler dependence on machine value used to represent 
+logical values .TRUE. and .FALSE.
+  * @repagh fired up his time machine and ensured punch-card compatibility of 
+the SLICOT Fortran code by limiting line lengths to 72 characters.
+- switch testing to pytest
+- some new tests require scipy
+- remove obsolete patches fix-test-sg03ad.patch and fix-test-td04ad.patch
+
+---

Old:

  fix-test-sg03ad.patch
  fix-test-td04ad.patch
  slycot-0.3.5.0.tar.gz

New:

  slycot-0.4.0.0.tar.gz



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.CKb7XB/_old  2020-06-02 14:38:54.847573548 +0200
+++ /var/tmp/diff_new_pack.CKb7XB/_new  2020-06-02 14:38:54.851573561 +0200
@@ -28,21 +28,20 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
+%define eggversion 0.4.0
 Name:   python-slycot
-Version:0.3.5.0
+Version:0.4.0.0
 Release:0
 Summary:A wrapper for the SLICOT control and systems library
 License:GPL-2.0-only
 Group:  Development/Languages/Python
 URL:https://github.com/python-control/Slycot
 Source: 
https://files.pythonhosted.org/packages/source/s/slycot/slycot-%{version}.tar.gz
-Patch0: fix-test-td04ad.patch
-Patch1: fix-test-sg03ad.patch
-BuildRequires:  %{python_module coverage}
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module numpy-devel}

commit python-slycot for openSUSE:Factory

2020-04-22 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2020-04-22 20:52:01

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.2738 (New)


Package is "python-slycot"

Wed Apr 22 20:52:01 2020 rev:8 rq:795721 version:0.3.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2020-04-09 23:18:01.406333593 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.2738/python-slycot.changes
2020-04-22 20:52:03.923283351 +0200
@@ -1,0 +2,5 @@
+Mon Apr 20 08:20:00 UTC 2020 - Benjamin Greiner 
+
+- python2 dependency only for python2 enabling repos
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.T8BWMd/_old  2020-04-22 20:52:04.603284681 +0200
+++ /var/tmp/diff_new_pack.T8BWMd/_new  2020-04-22 20:52:04.603284681 +0200
@@ -27,6 +27,7 @@
 %endif
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
 Name:   python-slycot
 Version:0.3.5.0
 Release:0
@@ -48,7 +49,9 @@
 BuildRequires:  gcc
 BuildRequires:  gcc-fortran
 BuildRequires:  python-rpm-macros
+%if %{with python2}
 BuildRequires:  python2-configparser
+%endif
 %if %{with openblas}
 BuildRequires:  openblas-devel
 %else




commit python-slycot for openSUSE:Factory

2020-04-09 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2020-04-09 23:17:21

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.3248 (New)


Package is "python-slycot"

Thu Apr  9 23:17:21 2020 rev:7 rq:791982 version:0.3.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2019-12-05 17:34:30.361446760 +0100
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.3248/python-slycot.changes
2020-04-09 23:18:01.406333593 +0200
@@ -1,0 +2,10 @@
+Tue Apr  7 12:16:37 UTC 2020 - Benjamin Greiner 
+
+- let the updated scikit-build do the f2py detection 
+
+---
+Tue Apr  7 11:10:31 UTC 2020 - Benjamin Greiner 
+
+- update the f2py detection. The numpy package removed /usr/bin/f2py3
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.Icd35W/_old  2020-04-09 23:18:01.958333912 +0200
+++ /var/tmp/diff_new_pack.Icd35W/_new  2020-04-09 23:18:01.962333914 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-slycot
 #
-# Copyright (c) 2019 SUSE LLC
+# 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
@@ -72,9 +72,7 @@
 
 %build
 export CFLAGS="%{optflags}"
-%{python_expand # make sure the correct f2py flavor is executed
-%{$python_build} --generator "Unix Makefiles" -- 
-DF2PY_EXECUTABLE=/usr/bin/f2py%{$python_bin_suffix}
-}
+%python_build --generator "Unix Makefiles"
 
 %install
 %python_expand %{$python_install} --install-lib %{$python_sitearch} 
--generator "Unix Makefiles"




commit python-slycot for openSUSE:Factory

2019-12-05 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2019-12-05 17:34:02

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.4691 (New)


Package is "python-slycot"

Thu Dec  5 17:34:02 2019 rev:6 rq:753976 version:0.3.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2019-11-09 23:39:47.457241774 +0100
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.4691/python-slycot.changes
2019-12-05 17:34:30.361446760 +0100
@@ -1,0 +2,13 @@
+Wed Dec  4 11:15:25 UTC 2019 - Benjamin Greiner 
+
+- mirror blas/lapack/openblas requirements from numpy-devel depending
+  on architecture and force CMake to find it.
+- reduce the required precision in the sg03ad test so that 
+  powerpc passes
+
+---
+Tue Dec  3 14:18:40 UTC 2019 - Tomáš Chvátal 
+
+- Update fix-test-sg03ad.patch once more again
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.GwPshy/_old  2019-12-05 17:34:31.069446659 +0100
+++ /var/tmp/diff_new_pack.GwPshy/_new  2019-12-05 17:34:31.073446659 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-slycot
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,16 @@
 #
 
 
+%if 0%{?sle_version} == 120300 && !0%{?is_opensuse}
+  %bcond_with openblas
+%else
+ %ifarch armv6l s390 s390x m68k riscv64
+  %bcond_with openblas
+ %else
+  %bcond_without openblas
+ %endif
+%endif
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-slycot
 Version:0.3.5.0
@@ -33,16 +43,18 @@
 BuildRequires:  %{python_module numpy-devel}
 BuildRequires:  %{python_module scikit-build}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  blas-devel
 BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  gcc
 BuildRequires:  gcc-fortran
-BuildRequires:  lapack-devel
 BuildRequires:  python-rpm-macros
 BuildRequires:  python2-configparser
-Requires:   blas
-Requires:   lapack
+%if %{with openblas}
+BuildRequires:  openblas-devel
+%else
+BuildRequires:  blas-devel
+BuildRequires:  lapack-devel
+%endif
 Requires:   python-numpy
 %python_subpackages
 
@@ -53,6 +65,10 @@
 %setup -q -n slycot-%{version}
 %patch0 -p1
 %patch1 -p1
+%if %{with openblas}
+sed -i 's/#set(BLA_VENDOR "OpenBLAS")/set(BLA_VENDOR "OpenBLAS")/' 
CMakeLists.txt
+%endif
+sed -i 's/LAPACK REQUIRED/LAPACK REQUIRED MODULE/' CMakeLists.txt
 
 %build
 export CFLAGS="%{optflags}"

++ fix-test-sg03ad.patch ++
--- /var/tmp/diff_new_pack.GwPshy/_old  2019-12-05 17:34:31.089446657 +0100
+++ /var/tmp/diff_new_pack.GwPshy/_new  2019-12-05 17:34:31.089446657 +0100
@@ -1,8 +1,8 @@
 diff --git a/slycot/tests/test_sg03ad.py b/slycot/tests/test_sg03ad.py
-index 7b498d6..bc4b043 100644
+index 7b498d6..35d23e6 100644
 --- a/slycot/tests/test_sg03ad.py
 +++ b/slycot/tests/test_sg03ad.py
-@@ -8,52 +8,50 @@ import unittest
+@@ -8,52 +8,73 @@ import unittest
  from slycot import synthesis
  import numpy as np
  
@@ -15,7 +15,8 @@
 +
  class test_sg03ad(unittest.TestCase):
  
- def test_sg03ad_a(self):
+-def test_sg03ad_a(self):
++def test_sg03ad_1c(self):
  # Example 1
  n = 100
 -Xref = np.ones((n,n)) 
@@ -24,8 +25,8 @@
  for t in range(0, 50, 10):
 -A = 2.0**(-t) - np.eye(n) + np.diag(range(1,n+1)) + U.T
 -E = np.eye(n) + 2**(-t)*U
-+A = 2.0**(-t) - np.eye(n) + np.diag(np.arange(1, n+1)) + U.T
-+E = np.eye(n) + 2.0**(-t)*U
++A = (2**(-t) - 1) * np.eye(n) + np.diag(np.arange(1., n+1.)) + U.T
++E = np.eye(n) + 2**(-t) * U
  Y = A.T.dot(Xref).dot(E) + E.T.dot(Xref).dot(A)
 -Q = np.zeros((n,n))
 -Z = np.zeros((n,n))
@@ -33,8 +34,32 @@
 +Z = np.zeros((n, n))
  A, E, Q, Z, X, scale, sep, ferr, alphar, alphai, beta = \
  synthesis.sg03ad('C', 'B', 'N', 'N', 'L', n, A, E, Q, Z, Y)
- assert_almost_equal(Xref, X)
+-assert_almost_equal(Xref, X)
 -
++try:
++assert_almost_equal(X, Xref, decimal=5)
++except AssertionError as e:
++print("Failed on t={}".format(t))
++raise e
++
++def test_sg03ad_1d(self):
++# Example 1
++n = 100
++Xref = 

commit python-slycot for openSUSE:Factory

2019-11-09 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2019-11-09 23:39:46

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.2990 (New)


Package is "python-slycot"

Sat Nov  9 23:39:46 2019 rev:5 rq:746657 version:0.3.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2019-09-23 12:46:29.233520431 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.2990/python-slycot.changes
2019-11-09 23:39:47.457241774 +0100
@@ -1,0 +2,7 @@
+Fri Nov  8 13:30:41 UTC 2019 - Benjamin Greiner 
+
+- fix unittests to pass on all architectures 
+  * fix-test-sg03ad.patch see upstream PR#82
+  * fix-test-td04ad.patch see upstream PR#83  
+
+---

New:

  fix-test-sg03ad.patch
  fix-test-td04ad.patch



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.q02ZW9/_old  2019-11-09 23:39:47.949242531 +0100
+++ /var/tmp/diff_new_pack.q02ZW9/_new  2019-11-09 23:39:47.949242531 +0100
@@ -25,6 +25,8 @@
 Group:  Development/Languages/Python
 URL:https://github.com/python-control/Slycot
 Source: 
https://files.pythonhosted.org/packages/source/s/slycot/slycot-%{version}.tar.gz
+Patch0: fix-test-td04ad.patch
+Patch1: fix-test-sg03ad.patch
 BuildRequires:  %{python_module coverage}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module nose}
@@ -49,6 +51,8 @@
 
 %prep
 %setup -q -n slycot-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ fix-test-sg03ad.patch ++
diff --git a/slycot/tests/test_sg03ad.py b/slycot/tests/test_sg03ad.py
index 7b498d6..bc4b043 100644
--- a/slycot/tests/test_sg03ad.py
+++ b/slycot/tests/test_sg03ad.py
@@ -8,52 +8,50 @@ import unittest
 from slycot import synthesis
 import numpy as np
 
-from numpy.testing import assert_raises, assert_almost_equal
+from numpy.testing import assert_almost_equal
 
 # test cases from
 # http://www.qucosa.de/fileadmin/data/qucosa/documents/4168/data/b002.pdf
 
+
 class test_sg03ad(unittest.TestCase):
 
 def test_sg03ad_a(self):
 # Example 1
 n = 100
-Xref = np.ones((n,n)) 
+Xref = np.ones((n, n))
 U = np.tril(Xref)
 for t in range(0, 50, 10):
-A = 2.0**(-t) - np.eye(n) + np.diag(range(1,n+1)) + U.T
-E = np.eye(n) + 2**(-t)*U
+A = 2.0**(-t) - np.eye(n) + np.diag(np.arange(1, n+1)) + U.T
+E = np.eye(n) + 2.0**(-t)*U
 Y = A.T.dot(Xref).dot(E) + E.T.dot(Xref).dot(A)
-Q = np.zeros((n,n))
-Z = np.zeros((n,n))
+Q = np.zeros((n, n))
+Z = np.zeros((n, n))
 A, E, Q, Z, X, scale, sep, ferr, alphar, alphai, beta = \
 synthesis.sg03ad('C', 'B', 'N', 'N', 'L', n, A, E, Q, Z, Y)
 assert_almost_equal(Xref, X)
-
+
 def test_sg03ad_3(self):
 n = 3
 A = np.array([[3.0, 1.0, 1.0],
   [1.0, 3.0, 0.0],
   [1.0, 0.0, 2.0]])
 E = np.array([[1.0, 3.0, 0.0],
-   [3.0, 2.0, 1.0],
-   [1.0, 0.0, 1.0]])
+  [3.0, 2.0, 1.0],
+  [1.0, 0.0, 1.0]])
 Y = np.array([[64.0, 73.0, 28.0],
-   [73.0, 70.0, 25.0],
-   [28.0, 25.0, 18.0]])
+  [73.0, 70.0, 25.0],
+  [28.0, 25.0, 18.0]])
 Xref = np.array([[-2., -1., 0.],
-  [-1., -3., -1.],
-  [0., -1., -3.]])
-Q = np.zeros((3,3))
-Z = np.zeros((3,3))
+ [-1., -3., -1.],
+ [0., -1., -3.]])
+Q = np.zeros((3, 3))
+Z = np.zeros((3, 3))
 A, E, Q, Z, X, scale, sep, ferr, alphar, alphai, beta = \
 synthesis.sg03ad('C', 'B', 'N', 'N', 'L', n, A, E, Q, Z, -Y)
-#print(A, E, Q, Z, X, scale, sep)
+# print(A, E, Q, Z, X, scale, sep)
 assert_almost_equal(X, Xref)
 
-def suite():
-   return unittest.TestLoader().loadTestsFromTestCase(TestConvert)
-
 
 if __name__ == "__main__":
 unittest.main()
++ fix-test-td04ad.patch ++
diff --git a/slycot/tests/test.py b/slycot/tests/test.py
index ec0b072..eca7b38 100644
--- a/slycot/tests/test.py
+++ b/slycot/tests/test.py
@@ -49,24 +49,6 @@ class Test(unittest.TestCase):
 self.assertAlmostEqual(Ac[1][0], 1)
 self.assertAlmostEqual(Ac[1][1], -3)
 
-def 

commit python-slycot for openSUSE:Factory

2019-09-23 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2019-09-23 12:46:25

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.7948 (New)


Package is "python-slycot"

Mon Sep 23 12:46:25 2019 rev:4 rq:732528 version:0.3.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2019-07-08 16:39:42.384847689 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.7948/python-slycot.changes
2019-09-23 12:46:29.233520431 +0200
@@ -1,0 +2,6 @@
+Sun Sep 22 16:42:44 UTC 2019 - Benjamin Greiner 
+
+- Make sure the correct F2PY flavor is executed
+- Enforce Unix Makefile generator for CMake
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.xxiBnx/_old  2019-09-23 12:46:29.789520340 +0200
+++ /var/tmp/diff_new_pack.xxiBnx/_new  2019-09-23 12:46:29.789520340 +0200
@@ -52,10 +52,12 @@
 
 %build
 export CFLAGS="%{optflags}"
-%python_build
+%{python_expand # make sure the correct f2py flavor is executed
+%{$python_build} --generator "Unix Makefiles" -- 
-DF2PY_EXECUTABLE=/usr/bin/f2py%{$python_bin_suffix}
+}
 
 %install
-%python_expand %{$python_install} --install-lib %{$python_sitearch}
+%python_expand %{$python_install} --install-lib %{$python_sitearch} 
--generator "Unix Makefiles"
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check




commit python-slycot for openSUSE:Factory

2019-07-08 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2019-07-08 15:12:41

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.4615 (New)


Package is "python-slycot"

Mon Jul  8 15:12:41 2019 rev:3 rq:714001 version:0.3.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2019-07-08 15:10:31.451316254 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.4615/python-slycot.changes
2019-07-08 16:39:42.384847689 +0200
@@ -1,0 +2,5 @@
+Sun Jul  7 21:47:19 UTC 2019 - Jan Engelhardt 
+
+- Avoid name repetition in summary.
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.1exK13/_old  2019-07-08 16:39:42.824848314 +0200
+++ /var/tmp/diff_new_pack.1exK13/_new  2019-07-08 16:39:42.824848314 +0200
@@ -20,7 +20,7 @@
 Name:   python-slycot
 Version:0.3.5.0
 Release:0
-Summary:Slycot: a wrapper for the SLICOT control and systems library
+Summary:A wrapper for the SLICOT control and systems library
 License:GPL-2.0-only
 Group:  Development/Languages/Python
 URL:https://github.com/python-control/Slycot
@@ -45,7 +45,7 @@
 %python_subpackages
 
 %description
-Slycot: a wrapper for the SLICOT control and systems library,
+Slycot is a wrapper for the SLICOT control and systems library.
 
 %prep
 %setup -q -n slycot-%{version}




commit python-slycot for openSUSE:Factory

2019-07-08 Thread root
Hello community,

here is the log from the commit of package python-slycot for openSUSE:Factory 
checked in at 2019-07-08 15:10:30

Comparing /work/SRC/openSUSE:Factory/python-slycot (Old)
 and  /work/SRC/openSUSE:Factory/.python-slycot.new.4615 (New)


Package is "python-slycot"

Mon Jul  8 15:10:30 2019 rev:2 rq:713585 version:0.3.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-slycot/python-slycot.changes  
2019-07-04 15:42:41.398054694 +0200
+++ /work/SRC/openSUSE:Factory/.python-slycot.new.4615/python-slycot.changes
2019-07-08 15:10:31.451316254 +0200
@@ -1,0 +2,6 @@
+Fri Jul  5 09:26:36 UTC 2019 - Bernhard Wiedemann 
+
+- Do not write unreproducible .pyc files for test code
+  to make the package build reproducible (boo#1047218)
+
+---



Other differences:
--
++ python-slycot.spec ++
--- /var/tmp/diff_new_pack.DKBXir/_old  2019-07-08 15:10:32.147316922 +0200
+++ /var/tmp/diff_new_pack.DKBXir/_new  2019-07-08 15:10:32.151316926 +0200
@@ -59,6 +59,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
+export PYTHONDONTWRITEBYTECODE=1 # make package build reproducible 
(boo#1047218)
 %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
 $python runtests.py --coverage --no-build
 }