%bcond_without check %global srcname seaborn Name: python-%{srcname} Version: 0.11.1 Release: 5%{?dist} Summary: Statistical data visualization in Python License: BSD URL: http://seaborn.pydata.org/ Source0: %{pypi_source} # Use system python-husl Patch0: seaborn-husl.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel %global _description %{expand: Seaborn is a library for making attractive and informative statistical graphics in Python. It is built on top of matplotlib and tightly integrated with the PyData stack, including support for numpy and pandas data structures and statistical routines from scipy and statsmodels.} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: Statistical data visualization in Python BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_version}dist(setuptools) %if %{with check} BuildRequires: python%{python3_version}dist(pytest) BuildRequires: python%{python3_version}dist(numpy) >= 1.15 BuildRequires: python%{python3_version}dist(scipy) >= 1.0 BuildRequires: python%{python3_version}dist(pandas) >= 0.23 BuildRequires: python%{python3_version}dist(matplotlib) >= 2.2 BuildRequires: python%{python3_version}dist(husl) %endif Requires: python%{python3_version}dist(husl) Recommends: python%{python3_version}dist(statsmodels) ## Not in fedora ##Recommends: _{py3_dist fastcluster} %description -n python%{python3_pkgversion}-%{srcname} %_description %prep rm -rf %{pypi_name}.egg-info %autosetup -p1 -n %{srcname}-%{version} rm -rf seaborn/external/husl.py %build %py3_build %install %py3_install %if %{with check} %check # Empty matplotlibrc for testing mkdir matplotlib touch matplotlib/matplotlibrc export XDG_CONFIG_HOME=`pwd` # Avoid writing bad pyc files export PYTHONDONTWRITEBYTECODE=1 # No cache dir export PYTEST_ADDOPTS="-v -p no:cacheprovider" pushd %{buildroot}/%{python3_sitelib} pytest \ --deselect "seaborn/tests/test_matrix.py::TestClustermap::test_tree_kws" \ seaborn popd %endif %files -n python%{python3_pkgversion}-%{srcname} %doc README.md %license LICENSE %{python3_sitelib}/seaborn %{python3_sitelib}/seaborn-%{version}-py%{python3_version}.egg-info %changelog * Fri Jul 23 2021 Fedora Release Engineering - 0.11.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 22 2021 Sergio Pascual - 0.11.1-4 - Add requirement on numpydoc (fixes bz #1973562) * Wed Jun 09 2021 Sergio Pascual - 0.11.1-3 - Fix wrong changelog entry * Fri Jun 04 2021 Python Maint - 0.11.1-2 - Rebuilt for Python 3.10 * Fri Apr 09 2021 Sergio Pascual - 0.11.1-1 - New upstream version 0.11.1 - Update spec * Wed Jan 27 2021 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 27 2020 Sergio Pascual - 0.11.0-1 - New upstream version 0.11.0 * Tue Aug 18 2020 Sergio Pascual - 0.10.1-5 - Fix problem with get_aspect in tests * Sat Aug 01 2020 Fedora Release Engineering - 0.10.1-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.10.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jun 06 2020 Sergio Pascual - 0.10.1-2 - New upstream version (0.10.1) - Enable tests - Use correct husl patch * Tue May 26 2020 Miro Hrončok - 0.10.0-3 - Rebuilt for Python 3.9 * Mon Mar 02 2020 Sergio Pascual - 0.10.0-2 - Disable tests for the moment * Sun Mar 01 2020 Sergio Pascual - 0.10.0-1 - New upstream source 0.10.0 * Thu Jan 30 2020 Fedora Release Engineering - 0.9.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.9.0-8 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.9.0-7 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.9.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 05 2018 Sergio Pascual - 0.9.0-4 - Do not create pytest pyc files - Drop python2 subpackage - Disable testing for the momment * Tue Sep 11 2018 Elliott Sales de Andrade - 0.9.0-1 - Update to latest version * Sat Jul 14 2018 Fedora Release Engineering - 0.8.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Miro Hrončok - 0.8.1-5 - Rebuilt for Python 3.7 * Tue Jun 19 2018 Miro Hrončok - 0.8.1-4 - Rebuilt for Python 3.7 - Exclude test_get_color_cycle because the test assumes old matplotlib API * Fri Mar 09 2018 Iryna Shcherbina - 0.8.1-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Mar 08 2018 Sergio Pascual - 0.8.1-2 - New upstream source 0.8.1 - And the sources * Fri Feb 09 2018 Fedora Release Engineering - 0.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.7.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.7.1-4 - Rebuild for Python 3.6 * Wed Sep 28 2016 Dominik Mierzejewski - 0.7.1-3 - rebuilt for matplotlib-2.0.0 - fix testsuite failure * Tue Jul 19 2016 Fedora Release Engineering - 0.7.1-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Jul 13 2016 Sergio Pascual - 0.7.1-1 - New upstream source 0.7.1 - Updated pypi url * Mon Mar 28 2016 Sergio Pascual - 0.7.0-1 - New upstream source 0.7.0 - Add patch with fixes for Python 3.5 * Thu Feb 04 2016 Fedora Release Engineering - 0.5.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Nov 15 2015 Thomas Spura - 0.5.1-7 - Use newer python macros and add python2 subpackage * Tue Nov 10 2015 Fedora Release Engineering - 0.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Nov 27 2014 Sergio Pascual - 0.5.1-4 - Add source of LICENSE from upstream, distribution of LICENSE is required * Thu Nov 27 2014 Sergio Pascual - 0.5.1-3 - More comments * Wed Nov 26 2014 Sergio Pascual - 0.5.1-2 - Added BRs: six and husl * Mon Nov 17 2014 Sergio Pascual - 0.5.1-1 - Initial spec