* Sisotool: Fix Matplotlib deprecation of axis share handling by
@bnavigator in #834
* Fix Interconnect name clobbering by @henklaak in #857
* Solve #862 and #864: bode_plot phase wrapping incorrect for
multiple systems by @henklaak in #863
* Fix root_locus() handling of ax parameter by @henklaak in #871
* Small fixes based on Caltech CDS 112 course by @murrayrm in
#849
* Feature print zpk by @henklaak in #869
* Feature enable doctest by @henklaak in #868
* Optimization-based and moving horizon estimation by @murrayrm
in #877
* new examples for Simulink-like interconnection of digital and
nonlinear systems by @sawyerbfuller in #882
* fix blank bode plot in rootlocus_pid_designer by @sawyerbfuller
in #883
* bandwidth feature by @SCLiao47 in #889
* update nyquist_plot for DT transfer functions with poles at 0
and 1 by @sawyerbfuller in #885
* Add missing labels when returning TimeResponseData by
@joaoantoniocardoso in #892
* fix damp command natural frequency printout for discrete poles
on real axis by @sawyerbfuller in #894
* Add H2 and Hinf synthesis examples by @jrforbes in #895
* warn if prewarp-frequency is not used by @sawyerbfuller in #900
* make _convert_to_statespace properly pass signal and system
names by @sawyerbfuller in #884
* Change name of converted LinearIOSystems by @murrayrm in #903
* add/cleanup documentation on simulation functions by @murrayrm
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-control?expand=0&rev=42
85 lines
2.9 KiB
RPMSpec
85 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-control
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-control
|
|
Version: 0.9.4
|
|
Release: 0
|
|
Summary: Python control systems library
|
|
License: BSD-3-Clause
|
|
URL: https://python-control.org
|
|
Source: https://files.pythonhosted.org/packages/source/c/control/control-%{version}.tar.gz
|
|
Source1: %{name}-rpmlintrc
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-matplotlib
|
|
Requires: python-numpy
|
|
Requires: python-scipy >= 1.3
|
|
Recommends: python-slycot
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module matplotlib-qt5}
|
|
BuildRequires: %{python_module matplotlib}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module pytest-timeout}
|
|
BuildRequires: %{python_module pytest-xvfb}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module scipy >= 1.3}
|
|
BuildRequires: %{python_module slycot}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
The Python Control Systems Library is a Python module that implements basic
|
|
operations for analysis and design of feedback control systems.
|
|
|
|
%prep
|
|
%autosetup -p1 -n control-%{version}
|
|
# remove shebang from testfiles which could be theoretically run standalone, but we don't do this
|
|
sed -i '1{\@^#!/usr/bin/env@ d}' control/tests/*.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# The default Agg backend does not define the toolbar attribute in the Figure
|
|
# Manager used by some tests, so we run the tests with the Qt5 backend
|
|
export MPLBACKEND="Qt5Agg"
|
|
donttest="dummyprefix"
|
|
# gh#python-control/python-control#838
|
|
[ "${RPM_ARCH}" != "x86_64" ] && donttest="$donttest or (test_optimal_doc and shooting-3-u0-None)"
|
|
# causes i586 segfaults in matplotlib after successful balanced model reduction tests
|
|
[ $(getconf LONG_BIT) -eq 32 ] && donttest="$donttest or testBalredMatchDC"
|
|
%pytest -k "not (${donttest})"
|
|
|
|
%files %{python_files}
|
|
%doc ChangeLog README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/control
|
|
%{python_sitelib}/control-%{version}.dist-info
|
|
|
|
%changelog
|