- Update to 0.9.3.post2
* Improvements in optimal and flatsys modules, updated passivity
module, gain scheduling support, bug fixes
* Handle t_eval for static systems in input_output_response by
@murrayrm in #743
* add GitHub URL for PyPi by @andriyor in #708
* Remove Deprecated API calls to Pytest, SciPy <1.3, Python 2 by
@bnavigator in #745
* Add passivity module, ispassive function, and passivity_test.
Introduces optional dependency cvxopt. by @Mark-Yeatman in #739
* Slycot source uses setuptools_scm now by @bnavigator in #751
* Passivity indices and support for discrete time systems. by
@Mark-Yeatman in #750
* Switch CI to mambaforge and conda-forge channel by @bnavigator
in #757
* Fix timebase bug in InterconnectedSystem (issue #754) by
@murrayrm in #755
* fix issue with slycot balred change in state by @bnavigator in
#762
* Build system and test suite update by @bnavigator in #759
* fix control.matlab.lsim bug for discrete time system by
@murrayrm in #765
* Add B-splines and solve_flat_ocp to flatsys by @murrayrm in
#763
* CI: switch slycot and cvxopt installation order by @murrayrm in
#769
* Fixed a couple of typos in documentation by @fredrhen in #775
* Allow new matplotlib 3.6 error message in kwargs tests by
@bnavigator in #777
* Move sys._update_params(params) before TimeResponseData return
OBS-URL: https://build.opensuse.org/request/show/1045948
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-control?expand=0&rev=38
85 lines
2.8 KiB
RPMSpec
85 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-control
|
|
#
|
|
# Copyright (c) 2022 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.3.post2
|
|
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}
|
|
BuildRequires: libjemalloc2
|
|
# /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"
|
|
# preload malloc library to avoid free() error on i586 architecture
|
|
if [[ $(getconf LONG_BIT) == 32 ]]; then
|
|
export LD_PRELOAD="%{_libdir}/libjemalloc.so.2"
|
|
fi
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc ChangeLog README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/control
|
|
%{python_sitelib}/control-%{version}.dist-info
|
|
|
|
%changelog
|