Group :: Development/Python3
RPM: python3-module-patsy
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname patsy
%def_without docs
%def_with check
Name: python3-module-%oname
Version: 0.5.3
Release: alt2
Summary: A Python package for describing statistical models and for building design matrices
License: BSD-2-Clause and Python
Group: Development/Python3
Url: http://patsy.readthedocs.org/en/latest/
Vcs: https://github.com/pydata/patsy.git
Source: %name-%version.tar
Patch1: %oname-alt-doc.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-six
BuildRequires: python3-module-numpy-testing
BuildRequires: python3-module-scipy
%endif
%if_with docs
BuildRequires(pre): rpm-macros-sphinx3
BuildRequires: python3-module-sphinx-sphinx-build-symlink
BuildRequires: python3(numpy) python3(matplotlib) python3(IPython)
BuildRequires: python3(pandas)
%endif
%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.
%package tests
Summary: Tests for patsy
Group: Development/Python3
Requires: %name = %EVR
%description tests
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.
This package contains tests for patsy.
%if_with docs
%package pickles
Summary: Pickles for patsy
Group: Development/Python3
%description pickles
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.
This package contains pickles for patsy.
%package docs
Summary: Documentation for patsy
Group: Development/Documentation
%description docs
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.
This package contains documentation for patsy.
%endif
%prep
%setup
%if_with docs
%patch1 -p2
%prepare_sphinx3 .
ln -s ../objects.inv doc/
%endif
%build
%pyproject_build
%if_with docs
%make -C doc pickle
%make -C doc html
%endif
%install
%pyproject_install
%if_with docs
cp -fR doc/_build/pickle %buildroot%python3_sitelibdir/%oname/
%endif
%check
%pyproject_run_pytest
%files
%doc LICENSE.txt
%doc *.md TODO
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%if_with docs
%exclude %python3_sitelibdir/%oname/pickle
%endif
%exclude %python3_sitelibdir/%oname/test_*
%exclude %python3_sitelibdir/%oname/__pycache__/test_*
%files tests
%python3_sitelibdir/%oname/test_*
%python3_sitelibdir/%oname/__pycache__/test_*
%if_with docs
%files pickles
%python3_sitelibdir/%oname/pickle
%files docs
%doc doc/_build/html/*
%endif
%changelog
…
Full changelog you can see here
%define oname patsy
%def_without docs
%def_with check
Name: python3-module-%oname
Version: 0.5.3
Release: alt2
Summary: A Python package for describing statistical models and for building design matrices
License: BSD-2-Clause and Python
Group: Development/Python3
Url: http://patsy.readthedocs.org/en/latest/
Vcs: https://github.com/pydata/patsy.git
Source: %name-%version.tar
Patch1: %oname-alt-doc.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-six
BuildRequires: python3-module-numpy-testing
BuildRequires: python3-module-scipy
%endif
%if_with docs
BuildRequires(pre): rpm-macros-sphinx3
BuildRequires: python3-module-sphinx-sphinx-build-symlink
BuildRequires: python3(numpy) python3(matplotlib) python3(IPython)
BuildRequires: python3(pandas)
%endif
%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.
%package tests
Summary: Tests for patsy
Group: Development/Python3
Requires: %name = %EVR
%description tests
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.
This package contains tests for patsy.
%if_with docs
%package pickles
Summary: Pickles for patsy
Group: Development/Python3
%description pickles
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.
This package contains pickles for patsy.
%package docs
Summary: Documentation for patsy
Group: Development/Documentation
%description docs
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.
This package contains documentation for patsy.
%endif
%prep
%setup
%if_with docs
%patch1 -p2
%prepare_sphinx3 .
ln -s ../objects.inv doc/
%endif
%build
%pyproject_build
%if_with docs
%make -C doc pickle
%make -C doc html
%endif
%install
%pyproject_install
%if_with docs
cp -fR doc/_build/pickle %buildroot%python3_sitelibdir/%oname/
%endif
%check
%pyproject_run_pytest
%files
%doc LICENSE.txt
%doc *.md TODO
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%if_with docs
%exclude %python3_sitelibdir/%oname/pickle
%endif
%exclude %python3_sitelibdir/%oname/test_*
%exclude %python3_sitelibdir/%oname/__pycache__/test_*
%files tests
%python3_sitelibdir/%oname/test_*
%python3_sitelibdir/%oname/__pycache__/test_*
%if_with docs
%files pickles
%python3_sitelibdir/%oname/pickle
%files docs
%doc doc/_build/html/*
%endif
%changelog
…
Full changelog you can see here