Blame python-pingouin.spec

0102a88
%bcond_without tests
0102a88
%bcond_with docs
0102a88
0102a88
%global srcname pingouin
0102a88
0102a88
%global _description %{expand:
0102a88
Pingouin is an open-source statistical package written in Python 3 and based on
0102a88
Pandas and NumPy.
0102a88
0102a88
It provides easy-to-grasp functions for computing several statistical
0102a88
functions:
0102a88
0102a88
- ANOVAs: one- and two-ways, repeated measures, mixed, ancova
0102a88
- Post-hocs tests and pairwise comparisons
0102a88
- Robust correlations
0102a88
- Partial correlation, repeated measures correlation and intraclass correlation
0102a88
- Bayes Factor
0102a88
- Tests for sphericity, normality and homoscedasticity
0102a88
- Effect sizes (Cohen's d, Hedges'g, AUC, Glass delta, eta-square...)
0102a88
- Parametric/bootstrapped confidence intervals around an effect size or a
0102a88
  correlation coefficient
0102a88
- Circular statistics
0102a88
- Linear/logistic regression and mediation analysis
0102a88
0102a88
Pingouin is designed for users who want simple yet exhaustive statistical
0102a88
functions.}
0102a88
0102a88
Name:           python-%{srcname}
c2df8dd
Version:        0.3.3
764f07c
Release:        2%{?dist}
0102a88
Summary:        Statistical package for Python
0102a88
0102a88
# Documentation pulls in bootstrap, bootswatch, jquery which are MIT
0102a88
License:        GPLv3 and MIT
0102a88
URL:            https://pypi.python.org/pypi/%{srcname}
0102a88
# Pypi tar does not contain docs and tests
0102a88
Source0:        https://github.com/raphaelvallat/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
0102a88
0102a88
BuildArch:      noarch
0102a88
0102a88
%description %_description
0102a88
0102a88
%package -n python3-%{srcname}
0102a88
Summary:        %{summary}
0102a88
BuildRequires:  python3-devel
0102a88
0102a88
BuildRequires:  %{py3_dist numpy}
0102a88
BuildRequires:  %{py3_dist pandas}
0102a88
BuildRequires:  %{py3_dist seaborn}
0102a88
0102a88
%if %{with tests}
0102a88
BuildRequires:  %{py3_dist pandas-flavor}
0102a88
BuildRequires:  %{py3_dist pytest}
0102a88
BuildRequires:  %{py3_dist pytest-cov}
0102a88
BuildRequires:  %{py3_dist pytest-remotedata}
0102a88
BuildRequires:  %{py3_dist statsmodels}
0102a88
BuildRequires:  %{py3_dist pytest-sugar}
c2df8dd
BuildRequires:  %{py3_dist outdated}
0102a88
BuildRequires:  %{py3_dist openpyxl}
0102a88
BuildRequires:  %{py3_dist mpmath}
0102a88
BuildRequires:  %{py3_dist scikit-learn}
0102a88
# Only required and works in TRAVIS, so not needed here
0102a88
# BuildRequires:  python3-pytest-travis-fold
0102a88
%endif
0102a88
0102a88
%{?python_provide:%python_provide python3-%{srcname}}
0102a88
0102a88
%description -n python3-%{srcname} %_description
0102a88
0102a88
%package doc
0102a88
Summary:        %{summary}
0102a88
BuildRequires:  %{py3_dist numpydoc}
0102a88
BuildRequires:  %{py3_dist pandas-flavor}
0102a88
BuildRequires:  %{py3_dist sphinx}
0102a88
BuildRequires:  %{py3_dist sphinx-bootstrap-theme}
0102a88
0102a88
%description doc
0102a88
Documentation for %{name}.
0102a88
0102a88
%prep
0102a88
%autosetup -n %{srcname}-%{version}
0102a88
rm -rf %{srcname}.egg-info
0102a88
0102a88
%build
0102a88
%py3_build
0102a88
0102a88
%if %{with docs}
0102a88
PYTHONPATH=. sphinx-build-%{python3_version} -b html docs html
0102a88
rm -rf html/.doctrees
0102a88
rm -rf html/.buildinfo
0102a88
rm -rf html/.nojekyll
0102a88
%endif
0102a88
0102a88
%install
0102a88
%py3_install
0102a88
0102a88
%check
0102a88
%if %{with tests}
0102a88
export PYTHONPATH=%{buildroot}%{python3_sitelib}
0102a88
pytest-%{python3_version}
0102a88
%endif
0102a88
0102a88
%files -n python3-%{srcname}
0102a88
%license LICENSE
0102a88
%doc README.rst
0102a88
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
0102a88
%{python3_sitelib}/%{srcname}
0102a88
0102a88
%files doc
0102a88
%license LICENSE
0102a88
%doc notebooks
0102a88
%if %{with docs}
0102a88
%doc html
0102a88
%endif
0102a88
0102a88
%changelog
764f07c
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.3.3-2
764f07c
- Rebuilt for Python 3.9
764f07c
c2df8dd
* Sat May 02 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.3-1
c2df8dd
- Update to latest release
c2df8dd
0102a88
* Fri Dec 06 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.1-1
0102a88
- Update to 0.3.1
0102a88
0102a88
* Sat Nov 09 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.9-1
0102a88
- Update to 0.2.9
0102a88
- rebuild since scipy 1.3.0 is now available in rawhide
0102a88
- Requires pandas-flavor, needs packaging
0102a88
0102a88
* Sat Jul 20 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.7-1
0102a88
- Correct license
0102a88
- Add missing BR
0102a88
- Add notebooks to documentation
0102a88
0102a88
* Fri Jul 19 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.7-1
0102a88
- Initial build