## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without check %global srcname patsy %global _description %{expand: A Python package for describing statistical models and for building design matrices. It is closely inspired by and compatible with the 'formula' mini-language used in R and S.} Name: python-%{srcname} Version: 0.5.6 Release: %autorelease Summary: Describing statistical models in Python using symbolic formulas # All code is under BSD except patsy.compat that is under Python # See LICENSE.txt for details License: BSD-2-Clause AND PSF-2.0 URL: https://github.com/pydata/patsy Source0: %{pypi_source} Patch0: patsy-intersphinx.patch Patch1: patsy-error-doc.patch # https://github.com/pydata/patsy/issues/143 Patch2: patsy-print-doc.patch #Patch3: patsy-python39.patch # The contour routine emits a warning with numpy 1.9 Patch4: patsy-warn-doc.patch Patch5: patsy-doc-conf.patch BuildArch: noarch BuildRequires: make BuildRequires: python3-devel BuildRequires: %{py3_dist setuptools} %description %_description %package -n python3-%{srcname} Summary: %{summary} %if %{with check} BuildRequires: %{py3_dist pytest} #BuildRequires: python3-numpy %endif # For the docs BuildRequires: python3-sphinx BuildRequires: python3-ipython-sphinx BuildRequires: python3-pandas BuildRequires: python3-docs BuildRequires: python3-numpy-doc BuildRequires: texlive-latex BuildRequires: texlive-ucs texlive-amscls # This should be required by python3-ipython-sphinx BuildRequires: python3-matplotlib # For splines BuildRequires: python3-scipy # For splines Recommends: %{py3_dist scipy} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_description %package -n python3-%{srcname}-doc Summary: Documentation for python3-%{srcname}, includes full API docs BuildArch: noarch %description -n python3-%{srcname}-doc This package contains the full API documentation for python3-%{srcname}. %prep %autosetup -n %{srcname}-%{version} -p1 # Apply fix for NumPy 2.x # https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword # https://numpy.org/doc/stable/reference/generated/numpy.array.html#numpy-array sed -r \ -e 's/(def asarray_or_pandas.*, copy=)False/\1None/' \ -i patsy/util.py %build %py3_build pushd doc export PYTHONPATH=`readlink -f ../build/lib` make html SPHINXBUILD=sphinx-build-%{python3_version} popd %install %py3_install %check %if %{with check} %pytest -v --deselect "patsy/eval.py::test_EvalEnvironment_eq" %endif %files -n python3-%{srcname} %doc README.md TODO %license LICENSE.txt %{python3_sitelib}/patsy* %files -n python3-%{srcname}-doc %doc README.md TODO doc/_build/html %license LICENSE.txt %changelog ## START: Generated by rpmautospec * Mon Oct 28 2024 Sandro - 0.5.6-7 - Apply patch for NumPy 2.x * Fri Jul 19 2024 Fedora Release Engineering - 0.5.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 15 2024 Sergio Pascual - 0.5.6-5 - Skip broken test in python 3.13 * Sun Jun 09 2024 Python Maint - 0.5.6-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.5.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 26 2023 Sergio Pascual - 0.5.5-1 - Update to upstream release 0.5.5 * Sat Dec 02 2023 Sergio Pascual - 0.5.4-2 - Using autorelease and autochangelog * Sat Dec 02 2023 Sergio Pascual - 0.5.4-1 - New upstream source (0.5.4) * Fri Jul 21 2023 Fedora Release Engineering - 0.5.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 02 2023 Python Maint - 0.5.3-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Oct 10 2022 Benjamin A. Beasley - 0.5.3-1 - Update to 0.5.3 (close RHBZ#2133307) * Tue Aug 02 2022 Benjamin A. Beasley - 0.5.2-5 - Fix RHBZ#2113642 by backporting upstream PR#187 * Fri Jul 22 2022 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 0.5.2-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Oct 06 2021 Sergio Pascual - 0.5.2-1 - New upstream source (0.5.2) * Fri Jul 23 2021 Fedora Release Engineering - 0.5.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jul 01 2021 Sergio Pascual - 0.5.1-15 - Patch doc conf.py problem (bz #1977623) * Fri Jun 04 2021 Python Maint - 0.5.1-14 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Jun 28 2020 Sergio Pascual - 0.5.1-11 - Patch a numpy 1.9 problem (bz #1838488) * Tue May 26 2020 Miro Hrončok - 0.5.1-10 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 26 2020 Sergio Pascual - 0.5.1-8 - Patch a python39 problem (bz #1794275) * Thu Oct 03 2019 Miro Hrončok - 0.5.1-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.5.1-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Feb 13 2019 Sergio Pascual - 0.5.1-4 - Patch a "print" command in docs * Sat Feb 02 2019 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Nov 20 2018 Sergio Pascual - 0.5.1-2 - Add latex for equations in docs * Mon Nov 12 2018 Sergio Pascual - 0.5.1-1 - New upstream source (0.5.1) - Load intersphinx object for python and numpy * Sat Oct 06 2018 Sergio Pascual - 0.5.0-5 - Build docs with python3 * Fri Oct 05 2018 Sergio Pascual - 0.5.0-4 - Drop python2 subpackage * Sat Jul 14 2018 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.5.0-2 - Rebuilt for Python 3.7 * Mon Jun 04 2018 Sergio Pascual - 0.5.0-1 - New upstream source (0.5.0) * Fri Feb 09 2018 Fedora Release Engineering - 0.4.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 26 2018 Iryna Shcherbina - 0.4.1-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jul 27 2017 Fedora Release Engineering - 0.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.4.1-5 - Rebuild for Python 3.6 * Mon Oct 17 2016 Sergio Pascual - 0.4.1-4 - Refactored spec - Remove pandas dep, it's circular - Recommend scipy, not require it * Tue Jul 19 2016 Fedora Release Engineering - 0.4.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 17 2015 Sergio Pascual - 0.4.1-1 - New upstream source (0.4.1) * Tue Nov 10 2015 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Sep 02 2015 Sergio Pascual - 0.4.0-1 - New upstream source (0.4.0) * Thu Jun 18 2015 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jul 21 2014 Sergio Pascual - 0.3.0-1 - New upstream source (0.3.0) - Removed patches * Tue Jun 17 2014 Sergio Pascual - 0.2.1-6 - Doc generation enabled, patch from upstream * Sat Jun 07 2014 Fedora Release Engineering - 0.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Jun 02 2014 Sergio Pascual - 0.2.1-4 - Doc generation broken due to new ipython, disabled for the moment * Fri Apr 04 2014 Sergio Pascual - 0.2.1-3 - Enable pandas support in python3-patsy * Sat Jan 11 2014 Sergio Pascual - 0.2.1-2 - Split docs in a subpackage - License is BSD and Python * Fri Dec 13 2013 Sergio Pascual - 0.2.1-1 - Initial specfile ## END: Generated by rpmautospec