c0b599f
%bcond_without check
c0b599f
Sergio Pascual a5a98b8
%global srcname patsy
Sergio Pascual 1f0362a
c0b599f
%global _description %{expand:
c0b599f
A Python package for describing statistical models and for building 
c0b599f
design matrices. It is closely inspired by and compatible with 
c0b599f
the 'formula' mini-language used in R and S.}
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
Name: python-%{srcname}
c0b599f
Version: 0.5.2
c0b599f
Release: 1%{?dist}
c0b599f
Summary: Describing statistical models in Python using symbolic formulas
Sergio Pascual 1f0362a
# All code is under BSD except patsy.compat that is under Python
Sergio Pascual 1f0362a
# See LICENSE.txt for details
Sergio Pascual 1f0362a
License: BSD and Python
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
URL: https://github.com/pydata/patsy
9f40941
Source0:  %{pypi_source} 
df37e6a
Patch0: patsy-intersphinx.patch
df37e6a
Patch1: patsy-error-doc.patch
db2f03a
# https://github.com/pydata/patsy/issues/143
db2f03a
Patch2: patsy-print-doc.patch
c0b599f
#Patch3: patsy-python39.patch
9f40941
# The contour routine emits a warning with numpy 1.9
9f40941
Patch4: patsy-warn-doc.patch
fa0aca0
Patch5: patsy-doc-conf.patch
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
BuildArch: noarch
ea075ba
BuildRequires: make
34aa266
BuildRequires: python3-devel
c0b599f
BuildRequires: %{py3_dist setuptools}
Sergio Pascual a5a98b8
c0b599f
%description %_description
Sergio Pascual a5a98b8
Sergio Pascual a5a98b8
%package -n python3-%{srcname}
Sergio Pascual a5a98b8
Summary: %{summary}
c0b599f
%if %{with check}
c0b599f
BuildRequires: %{py3_dist pytest}
c0b599f
#BuildRequires: python3-numpy
c0b599f
%endif
Sergio Pascual 1f0362a
# For the docs
Sergio Pascual 20f1624
BuildRequires: python3-sphinx
Sergio Pascual 20f1624
BuildRequires: python3-ipython-sphinx
4e2cb8f
BuildRequires: python3-pandas
df37e6a
BuildRequires: python3-docs
df37e6a
BuildRequires: python3-numpy-doc
2d24c1a
BuildRequires: texlive-latex
2d24c1a
BuildRequires: texlive-ucs texlive-amscls
Sergio Pascual a5a98b8
# This should be required by python3-ipython-sphinx
Sergio Pascual a5a98b8
BuildRequires: python3-matplotlib 
Sergio Pascual a5a98b8
# For splines
Sergio Pascual a5a98b8
BuildRequires: python3-scipy  
Sergio Pascual 20f1624
Sergio Pascual a5a98b8
# For splines
c0b599f
Recommends: %{py3_dist scipy}
Sergio Pascual a5a98b8
Sergio Pascual a5a98b8
%{?python_provide:%python_provide python3-%{srcname}}
Sergio Pascual 1f0362a
c0b599f
%description -n python3-%{srcname} %_description
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%package -n python3-%{srcname}-doc
Sergio Pascual a5a98b8
Summary: Documentation for python3-%{srcname}, includes full API docs
Sergio Pascual 1f0362a
BuildArch: noarch
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%description -n python3-%{srcname}-doc
Sergio Pascual a5a98b8
This package contains the full API documentation for python3-%{srcname}.
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%prep
4e2cb8f
%autosetup -n %{srcname}-%{version} -p1
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%build
Sergio Pascual a5a98b8
%py3_build
4e2cb8f
4e2cb8f
pushd doc
4e2cb8f
  export PYTHONPATH=`readlink -f ../build/lib`
4e2cb8f
  make html SPHINXBUILD=sphinx-build-%{python3_version}
4e2cb8f
popd
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%install
Sergio Pascual a5a98b8
%py3_install
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%check
c0b599f
%if %{with check}
c0b599f
export PYTHONDONTWRITEBYTECODE=1
c0b599f
export PYTEST_ADDOPTS='-p no:cacheprovider'
Sergio Pascual 1f0362a
pushd %{buildroot}/%{python3_sitelib}
c0b599f
   pytest-%{python3_version} patsy
Sergio Pascual 1f0362a
popd
c0b599f
%endif
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%files -n python3-%{srcname}
c0b599f
%doc README.md TODO
Sergio Pascual 25f03f2
%license LICENSE.txt
Sergio Pascual 1f0362a
%{python3_sitelib}/patsy*
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%files -n python3-%{srcname}-doc
c0b599f
%doc README.md TODO doc/_build/html
Sergio Pascual 25f03f2
%license LICENSE.txt
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%changelog
c0b599f
* Wed Oct 06 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.2-1
c0b599f
- New upstream source (0.5.2)
c0b599f
b46be94
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-16
b46be94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b46be94
fa0aca0
* Thu Jul 01 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-15
fa0aca0
- Patch doc conf.py problem (bz #1977623)
fa0aca0
e44eed3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.5.1-14
e44eed3
- Rebuilt for Python 3.10
e44eed3
0e9ec8f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-13
0e9ec8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0e9ec8f
3171e4c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-12
3171e4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3171e4c
9f40941
* Sun Jun 28 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-11
9f40941
- Patch a numpy 1.9 problem (bz #1838488)
9f40941
6c2ecb7
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-10
6c2ecb7
- Rebuilt for Python 3.9
6c2ecb7
0253284
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-9
0253284
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0253284
31bd3ad
* Sun Jan 26 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-8
31bd3ad
- Patch a python39 problem (bz #1794275)
31bd3ad
d6ce97f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-7
d6ce97f
- Rebuilt for Python 3.8.0rc1 (#1748018)
d6ce97f
d431066
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-6
d431066
- Rebuilt for Python 3.8
d431066
dac4e53
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-5
dac4e53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dac4e53
db2f03a
* Wed Feb 13 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-4
db2f03a
- Patch a "print" command in docs
db2f03a
c9467ed
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
c9467ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c9467ed
2d24c1a
* Tue Nov 20 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-2
2d24c1a
- Add latex for equations in docs
2d24c1a
df37e6a
* Mon Nov 12 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-1
df37e6a
- New upstream source (0.5.1)
df37e6a
- Load intersphinx object for python and numpy
df37e6a
4e2cb8f
* Sat Oct 06 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-5
4e2cb8f
- Build docs with python3
4e2cb8f
34aa266
* Fri Oct 05 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-4
34aa266
- Drop python2 subpackage
34aa266
41ed837
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
41ed837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
41ed837
1ec7839
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-2
1ec7839
- Rebuilt for Python 3.7
1ec7839
d8b9d14
* Mon Jun 04 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-1
d8b9d14
- New upstream source (0.5.0)
d8b9d14
47500fd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-9
47500fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
47500fd
bf42587
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.1-8
bf42587
- Update Python 2 dependency declarations to new packaging standards
bf42587
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bf42587
eb07482
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7
eb07482
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eb07482
4e761af
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-6
4e761af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4e761af
3465a06
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-5
3465a06
- Rebuild for Python 3.6
3465a06
Sergio Pascual a5a98b8
* Mon Oct 17 2016 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.1-4
Sergio Pascual a5a98b8
- Refactored spec
Sergio Pascual a5a98b8
- Remove pandas dep, it's circular
Sergio Pascual a5a98b8
- Recommend scipy, not require it
Sergio Pascual a5a98b8
6990ea3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
6990ea3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6990ea3
cb443de
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
cb443de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cb443de
Sergio Pascual 2d571e8
* Tue Nov 17 2015 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.1-1
Sergio Pascual 2d571e8
- New upstream source (0.4.1)
Sergio Pascual 2d571e8
5b83135
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
5b83135
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5b83135
Sergio Pascual 25f03f2
* Wed Sep 02 2015 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.0-1
Sergio Pascual 25f03f2
- New upstream source (0.4.0)
Sergio Pascual 25f03f2
f644029
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
f644029
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f644029
Sergio Pascual 13e04ba
* Mon Jul 21 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.3.0-1
Sergio Pascual 13e04ba
- New upstream source (0.3.0)
Sergio Pascual 13e04ba
- Removed patches
Sergio Pascual 13e04ba
Sergio Pascual 20f1624
* Tue Jun 17 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-6
Sergio Pascual 20f1624
- Doc generation enabled, patch from upstream
Sergio Pascual 20f1624
05899fe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-5
05899fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
05899fe
Sergio Pascual cf04bf5
* Mon Jun 02 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-4
Sergio Pascual cf04bf5
- Doc generation broken due to new ipython, disabled for the moment
Sergio Pascual cf04bf5
Sergio Pascual 407839d
* Fri Apr 04 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-3
Sergio Pascual 407839d
- Enable pandas support in python3-patsy
Sergio Pascual 407839d
Sergio Pascual 1f0362a
* Sat Jan 11 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-2
Sergio Pascual 1f0362a
- Split docs in a subpackage
Sergio Pascual 1f0362a
- License is BSD and Python
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
* Fri Dec 13 2013 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-1
Sergio Pascual 1f0362a
- Initial specfile
Sergio Pascual 1f0362a