%bcond_with check %bcond_with doc %global srcname statsmodels Name: python-%{srcname} Version: 0.14.4 Release: 1%{?dist} Summary: Statistics in Python # Package is licensed under BSD (3 clauses) # except the following files in Public Domain # statsmodels/datasets/anes96/data.py # statsmodels/datasets/co2/data.py # statsmodels/datasets/elec_equip/data.py # statsmodels/datasets/elnino/data.py # statsmodels/datasets/engel/data.py # statsmodels/datasets/grunfeld/data.py # statsmodels/datasets/longley/data.py # statsmodels/datasets/macrodata/data.py # statsmodels/datasets/modechoice/data.py # statsmodels/datasets/nile/data.py # statsmodels/datasets/randhie/data.py # statsmodels/datasets/stackloss/data.py # statsmodels/datasets/strikes/data.py # statsmodels/datasets/sunspots/data.py # Automatically converted from old format: BSD and Public Domain - review is highly recommended. License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-Public-Domain URL: https://www.statsmodels.org/ Source0: %{pypi_source} BuildRequires: gcc BuildRequires: python3-devel # Drop support for i686 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} %global _description %{expand: statsmodels is a Python module that provides classes and functions for the estimation of many different statistical models, as well as for conducting statistical tests, and statistical data exploration. An extensive list of result statistics are available for each estimator. The results are tested against existing statistical packages to ensure that they are correct.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %if %{with check} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist matplotlib} BuildRequires: python3-matplotlib-tk BuildRequires: %{py3_dist pandas} BuildRequires: %{py3_dist patsy} %endif %description -n python3-%{srcname} %_description %package -n python3-%{srcname}-doc Summary: Documentation for %{srcname}, includes full API docs BuildArch: noarch %if %{with doc} BuildRequires: graphviz BuildRequires: python3-sphinx BuildRequires: python3-numpydoc BuildRequires: python3-ipython-sphinx BuildRequires: python3-matplotlib %endif %description -n python3-%{srcname}-doc This package contains the full API documentation for python3-%{srcname}. %prep %autosetup -n %{srcname}-%{version} -p1 # Regenerate Cython sources rm $(grep -rl '/\* Generated by Cython') pushd statsmodels # Copy license files cp -a stats/libqsturng/LICENSE.txt ../LICENSE.libqsturng.txt popd sed -i -e "s/oldest-supported-numpy/numpy/" pyproject.toml sed -i -e "s/setuptools>=69.0.2/setuptools/" pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files statsmodels %if %{with check} %check export PYTHONDONTWRITEBYTECODE=1 export PYTEST_ADDOPTS='-p no:cacheprovider' pushd %{buildroot}/%{python3_sitearch} %pytest statsmodels popd %endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt LICENSE.libqsturng.txt %doc COPYRIGHTS.txt README_l1.txt README.rst %files -n python3-%{srcname}-doc %license LICENSE.txt LICENSE.libqsturng.txt ## %doc build/sphinx/html %changelog * Mon Oct 28 2024 Sandro - 0.14.4-1 - Update to 0.14.4 (RHBZ#2275442) - Add support for NumPy 2.x - Close RHBZ#2332200 * Wed Sep 04 2024 Miroslav Suchý - 0.14.1-7 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.14.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 16 2024 Sergio Pascual - 0.14.1-5 - Rebuilt for Python 3.13 (2nd try) * Sat Jun 15 2024 Python Maint - 0.14.1-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.14.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 04 2024 Sergio Pascual - 0.14.1-1 - New upstream version * Mon Dec 11 2023 Miro Hrončok - 0.14.0-5 - Add compatibility with Cython 3 - Fixes: rhbz#2254039 * Tue Aug 29 2023 Sergio Pascual - 0.14.0-4 - Use cython < 3 * Fri Jul 21 2023 Fedora Release Engineering - 0.14.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 0.14.0-2 - Rebuilt for Python 3.12 * Tue May 09 2023 Sandro - 0.14.0-1 - Update to 0.14.0 (RHBZ#2139206) * Sun Apr 30 2023 Sergio Pascual - 0.13.5-1 - New upstream source (0.13.5) * Fri Jan 20 2023 Fedora Release Engineering - 0.13.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.13.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.13.2-2 - Rebuilt for Python 3.11 * Thu Feb 17 2022 Sergio Pascual - 0.13.2-1 - New upstream source (0.13.2) * Fri Jan 21 2022 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Oct 07 2021 Sergio Pascual - 0.13.0-1 - New upstream source (0.13.0) * Fri Jul 23 2021 Fedora Release Engineering - 0.12.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.12.2-2 - Rebuilt for Python 3.10 * Tue Feb 16 2021 Sergio Pascual - 0.12.2-1 - New upstream source (0.12.2) * Wed Jan 27 2021 Fedora Release Engineering - 0.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Oct 29 2020 Sergio Pascual - 0.12.1-1 - New upstream source (0.12.1) * Thu Sep 10 2020 Sergio Pascual - 0.12.0-1 - New upstream source (0.12.0) * Wed Jul 29 2020 Fedora Release Engineering - 0.11.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.11.1-2 - Rebuilt for Python 3.9 * Sun Mar 01 2020 Sergio Pascual - 0.11.1 - New upstream source (0.11.1) * Thu Jan 30 2020 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 26 2020 Sergio Pascual - 0.11.0 - New upstream source (0.11.0) * Thu Oct 03 2019 Miro Hrončok - 0.10.1-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 31 2019 Fedora Release Monitoring - 0.10.1-1 - Update to 0.10.1 (#1742125) * Mon Aug 19 2019 Miro Hrončok - 0.10.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jul 11 2019 Sergio Pascual - 0.10.0 - New upstream source (0.10.0) * Fri Feb 08 2019 Sergio Pascual - 0.9.0-5 - Disable docs generation (bz #1637994) * Sat Feb 02 2019 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 17 2018 Christian Dersch - 0.9.0-3 - BuildRequires: gcc * Sat Jul 14 2018 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jul 08 2018 Christian Dersch - 0.9.0-1 - new version * Tue Jun 19 2018 Miro Hrončok - 0.8.0-6 - Rebuilt for Python 3.7 * Mon Mar 26 2018 Iryna Shcherbina - 0.8.0-5 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Sergio Pascual - 0.8.0-1 - New upstream source (0.8.0) * Sat Feb 11 2017 Fedora Release Engineering - 0.6.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.6.1-8 - Rebuild for Python 3.6 * Thu Sep 01 2016 Sergio Pascual - 0.6.1-7 - Add requirements, were missing * Thu Apr 21 2016 Sergio Pascual - 0.6.1-6 - Use new style macros - Redone patches * Thu Feb 04 2016 Fedora Release Engineering - 0.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek - 0.6.1-4 - Fix build with new pandas and numpy * Tue Nov 10 2015 Fedora Release Engineering - 0.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Dec 05 2014 Sergio Pascual - 0.6.1-1 - New upstream source, bugfix (0.6.1) * Mon Nov 17 2014 Sergio Pascual - 0.6.0-1 - New upstream source (0.6.0) * Sun Aug 17 2014 Fedora Release Engineering - 0.5.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Jun 17 2014 Sergio Pascual - 0.5.0-11 - Enabled documentation * Thu Jun 12 2014 Sergio Pascual - 0.5.0-10 - Documentation broken due to IPython incompatibility, disable for the moment - Examples moved out installed package - Disabled tests for the moment * Sat Jun 07 2014 Fedora Release Engineering - 0.5.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Jan 24 2014 Sergio Pascual - 0.5.0-8 - Enable tests in arm - Disable failling test in i686 - Disable failling test in arm * Tue Jan 21 2014 Sergio Pascual - 0.5.0-7 - Disable tests in arm * Mon Jan 20 2014 Sergio Pascual - 0.5.0-6 - Add README.txt and COPYING from datasets to doc * Sun Jan 19 2014 Sergio Pascual - 0.5.0-5 - Added url for bug report of removed tests - Minor fixes in the spec - Included other LICENSE.txt in the documentation * Wed Jan 15 2014 Sergio Pascual - 0.5.0-4 - Use an empty matplotlibrc for tests * Wed Jan 15 2014 Sergio Pascual - 0.5.0-3 - Patch those tests that fail * Fri Jan 10 2014 Sergio Pascual - 0.5.0-2 - Add ipython to build documentation * Fri Jan 10 2014 Sergio Pascual - 0.5.0-1 - Initial spec