2018-05-24 20:56:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-testflo
|
|
|
|
#
|
2022-10-11 15:57:21 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-24 20:56:56 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:09:05 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-30 07:35:14 +00:00
|
|
|
#
|
|
|
|
|
2018-05-24 20:56:56 +00:00
|
|
|
|
2021-07-14 17:42:38 +00:00
|
|
|
%define skip_python36 1
|
2018-05-24 20:56:56 +00:00
|
|
|
Name: python-testflo
|
2022-10-11 15:57:21 +00:00
|
|
|
Version: 1.4.9
|
2018-05-24 20:56:56 +00:00
|
|
|
Release: 0
|
2018-07-30 07:35:14 +00:00
|
|
|
Summary: A flow-based testing framework
|
2018-05-24 20:56:56 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2020-03-11 12:26:48 +00:00
|
|
|
URL: https://github.com/OpenMDAO/testflo
|
2018-05-24 20:56:56 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/testflo/testflo-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-11 12:26:48 +00:00
|
|
|
Requires: python-setuptools
|
|
|
|
Requires(post): update-alternatives
|
2021-07-14 17:42:38 +00:00
|
|
|
Requires(preun):update-alternatives
|
2019-01-04 19:13:41 +00:00
|
|
|
Recommends: python-coverage
|
2018-05-24 20:56:56 +00:00
|
|
|
Recommends: python-mpi4py
|
2019-01-04 19:13:41 +00:00
|
|
|
Recommends: python-psutil
|
2018-05-24 20:56:56 +00:00
|
|
|
BuildArch: noarch
|
2020-03-11 12:26:48 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module coverage}
|
|
|
|
BuildRequires: %{python_module mpi4py}
|
|
|
|
BuildRequires: %{python_module psutil}
|
|
|
|
# /SECTION
|
2018-05-24 20:56:56 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-30 07:35:14 +00:00
|
|
|
This module provides a flow-based testing framework. testflo supports
|
2018-05-24 20:56:56 +00:00
|
|
|
testing of the OpenMDAO framework. Some OpenMDAO features require
|
2018-07-30 07:35:14 +00:00
|
|
|
execution under MPI, while others don't. testflo runs all of the
|
|
|
|
authors' tests in the same way and allows them to build their tests
|
|
|
|
using unittest.TestCase objects that they are familiar with.
|
2018-05-24 20:56:56 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n testflo-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/testflo
|
|
|
|
|
2019-01-04 19:13:41 +00:00
|
|
|
# Tests not included in sdists
|
|
|
|
# %%check
|
|
|
|
# %%python_expand $python -B -m unittest testflo.test
|
2018-05-24 20:56:56 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative testflo
|
|
|
|
|
2022-11-11 13:47:53 +00:00
|
|
|
%postun
|
2018-05-24 20:56:56 +00:00
|
|
|
%python_uninstall_alternative testflo
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt
|
2020-07-24 14:06:51 +00:00
|
|
|
%doc README.md
|
2018-05-24 20:56:56 +00:00
|
|
|
%python_alternative %{_bindir}/testflo
|
2022-11-11 13:47:53 +00:00
|
|
|
%{python_sitelib}/testflo
|
|
|
|
%{python_sitelib}/testflo-*.egg-info
|
2018-05-24 20:56:56 +00:00
|
|
|
|
|
|
|
%changelog
|