File python-corner.spec of Package python-corner
#
# spec file for package python-corner
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Missing reference images
%bcond_with test
Name: python-corner
Version: 2.0.1
Release: 0
Summary: Make some beautiful corner plots of samples
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/dfm/corner.py
Source: https://files.pythonhosted.org/packages/source/c/corner/corner-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pandas}
BuildRequires: python-backports.functools_lru_cache
%endif
Requires: python-matplotlib
Requires: python-numpy
%ifpython2
Requires: python-backports.functools_lru_cache
%endif
BuildArch: noarch
%python_subpackages
%description
This Python module uses matplotlib to visualize multidimensional
samples using a scatterplot matrix. In these visualizations, each
one- and two-dimensional projection of the sample is plotted to
reveal covariances. corner was originally conceived to display the
results of Markov Chain Monte Carlo simulations and the defaults are
chosen with this application in mind but it can be used for
displaying many qualitatively different samples.
%prep
%setup -q -n corner-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_expand nosetests-%{$python_bin_suffix} corner
%endif
%files %{python_files}
%doc LICENSE README.rst
%{python_sitelib}/*
%changelog