From c0b599fa2e0065f8ada436d85636a86f4336389f Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Oct 06 2021 18:35:36 +0000 Subject: New upstream source (0.5.2) --- diff --git a/.gitignore b/.gitignore index 764aa1b..a3f4c55 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /patsy-0.4.1.zip /patsy-0.5.0.tar.gz /patsy-0.5.1.tar.gz +/patsy-0.5.2.tar.gz diff --git a/python-patsy.spec b/python-patsy.spec index 7d770e1..f840918 100644 --- a/python-patsy.spec +++ b/python-patsy.spec @@ -1,15 +1,16 @@ +%bcond_without check + %global srcname patsy -%global summary Describing statistical models in Python using symbolic formulas -%global common_description \ -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. +%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.1 -Release: 16%{?dist} -Summary: %{summary} +Version: 0.5.2 +Release: 1%{?dist} +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 and Python @@ -20,7 +21,7 @@ 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 +#Patch3: patsy-python39.patch # The contour routine emits a warning with numpy 1.9 Patch4: patsy-warn-doc.patch Patch5: patsy-doc-conf.patch @@ -28,16 +29,16 @@ Patch5: patsy-doc-conf.patch BuildArch: noarch BuildRequires: make BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: %{py3_dist setuptools} -%description -%{common_description} +%description %_description %package -n python3-%{srcname} Summary: %{summary} -BuildRequires: python3-nose -BuildRequires: python3-six -BuildRequires: python3-numpy +%if %{with check} +BuildRequires: %{py3_dist pytest} +#BuildRequires: python3-numpy +%endif # For the docs BuildRequires: python3-sphinx BuildRequires: python3-ipython-sphinx @@ -51,15 +52,12 @@ BuildRequires: python3-matplotlib # For splines BuildRequires: python3-scipy -Requires: python3-six -Requires: python3-numpy # For splines -Recommends: python3-scipy +Recommends: %{py3_dist scipy} %{?python_provide:%python_provide python3-%{srcname}} -%description -n python3-%{srcname} -%{common_description} +%description -n python3-%{srcname} %_description %package -n python3-%{srcname}-doc Summary: Documentation for python3-%{srcname}, includes full API docs @@ -84,20 +82,27 @@ popd %py3_install %check +%if %{with check} +export PYTHONDONTWRITEBYTECODE=1 +export PYTEST_ADDOPTS='-p no:cacheprovider' pushd %{buildroot}/%{python3_sitelib} -nosetests-%{python3_version} patsy + pytest-%{python3_version} patsy popd +%endif %files -n python3-%{srcname} -%doc README.rst TODO +%doc README.md TODO %license LICENSE.txt %{python3_sitelib}/patsy* %files -n python3-%{srcname}-doc -%doc README.rst TODO doc/_build/html +%doc README.md TODO doc/_build/html %license LICENSE.txt %changelog +* 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 diff --git a/sources b/sources index d324cae..a86f945 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (patsy-0.5.1.tar.gz) = aeb56411e68713ec75c0b5344890939f721c460d3c7643b9fd57d7c928421d21408b0f2963348edf27a025842989dbae6fd5cfccd3f9d9497d60a1dffe8d7bdc +SHA512 (patsy-0.5.2.tar.gz) = 898df5536b0ff3a4d299e69c5f73a3d754cfbe78fe463fb4c4726cfd67d4e30c77cd3d7093131737207cb9f29c1374ab20a68ec5978007ea51878ec7c395f48d