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}
92b71e2
Version:        0.5.0
74106f4
Release:        1%{?dist}
74106f4
Summary:        Statistical package in Python based on Pandas
0102a88
0102a88
# Documentation pulls in bootstrap, bootswatch, jquery which are MIT
0102a88
License:        GPLv3 and MIT
74106f4
URL:            https://pingouin-stats.org/
74106f4
# PyPI tar does not contain docs and tests
0102a88
Source0:        https://github.com/raphaelvallat/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
0102a88
74106f4
# TestCorrelation::test_corr fails on aarch64, ppc64le, and s390x without this
74106f4
# patch.
74106f4
# https://github.com/raphaelvallat/pingouin/issues/195
74106f4
Patch0:         0001-Loosen-one-test-to-allow-near-unity-correlation.patch
535227b
74106f4
BuildRequires:  python3-devel
74106f4
74106f4
# The odd combination of an arched package with only noarch binary packages
74106f4
# makes it easier for us to detect with arch-dependent test failures, since the
74106f4
# tests will always be run on every platform, and easier for us to skip failing
74106f4
# tests if necessary, since we can be sure that %%ifarch macros work as
74106f4
# expected.
74106f4
#
74106f4
# Since the package still contains no compiled machine code, we still have no
74106f4
# debuginfo.
74106f4
%global debug_package %{nil}
0102a88
0102a88
%description %_description
0102a88
0102a88
%package -n python3-%{srcname}
0102a88
Summary:        %{summary}
74106f4
BuildArch:      noarch
0102a88
0102a88
%description -n python3-%{srcname} %_description
0102a88
0102a88
%package doc
74106f4
Summary:        Documentation and examples for %{name}
74106f4
BuildArch:      noarch
74106f4
74106f4
%if %{with docs}
74106f4
BuildRequires:  make
0102a88
BuildRequires:  %{py3_dist sphinx}
74106f4
# docs/conf.py
0102a88
BuildRequires:  %{py3_dist sphinx-bootstrap-theme}
74106f4
BuildRequires:  %{py3_dist sphinx-copybutton}
74106f4
BuildRequires:  %{py3_dist numpydoc}
74106f4
%endif
0102a88
0102a88
%description doc
74106f4
%{summary}.
0102a88
0102a88
%prep
535227b
%autosetup -n %{srcname}-%{version} -p1
74106f4
%if %{with tests}
74106f4
# Only required and works in TRAVIS, so not needed here
74106f4
sed -r -i 's/^(pytest-travis-fold)$/# \1/' requirements-test.txt
74106f4
%endif
74106f4
74106f4
%generate_buildrequires
74106f4
%pyproject_buildrequires -r %{?with_tests:requirements-test.txt}
0102a88
0102a88
%build
74106f4
%pyproject_wheel
0102a88
0102a88
%if %{with docs}
74106f4
PYTHONPATH="${PWD}" %make_build -C docs html SPHINXOPTS='%{_smp_mflags}'
74106f4
find docs/build/html -maxdepth 1 -name '.*' -execdir rm -rvf '{}' '+'
0102a88
%endif
0102a88
0102a88
%install
74106f4
%pyproject_install
74106f4
%pyproject_save_files %{srcname}
0102a88
0102a88
%check
0102a88
%if %{with tests}
74106f4
%ifarch %{arm32}
74106f4
# https://github.com/raphaelvallat/pingouin/issues/196
74106f4
k="${k-}${k+ and }not (TestRegression and test_linear_regression)"
74106f4
%endif
74106f4
%ifarch %{arm32} %{ix86}
74106f4
# https://github.com/raphaelvallat/pingouin/issues/197
74106f4
# https://github.com/pandas-dev/pandas/issues/43588
74106f4
k="${k-}${k+ and }not (TestParametric and test_pandas)"
74106f4
%endif
74106f4
%pytest -k "${k-}"
0102a88
%endif
0102a88
74106f4
%files -n python3-%{srcname} -f %{pyproject_files}
74106f4
%doc CODE_OF_CONDUCT.md
0102a88
%doc README.rst
0102a88
0102a88
%files doc
0102a88
%license LICENSE
0102a88
%doc notebooks
0102a88
%if %{with docs}
0102a88
%doc html
0102a88
%endif
0102a88
0102a88
%changelog
92b71e2
* Fri Oct 29 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.5.0-1
92b71e2
- Update to 0.5.0 (close RHBZ#2018342)
92b71e2
74106f4
* Thu Sep 23 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.4.0-1
74106f4
- Update to 0.4.0
74106f4
- Switch to pyproject-rpm-macros to avoid manual BR’s
74106f4
- Use an arched source package with only noarch binary packages to ensure tests
74106f4
  are run on all arches; while this package really is noarch, it has a history
74106f4
  of arch-dependent test failures
74106f4
535227b
* Fri Jul 23 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3.12-3
535227b
- Fix RHBZ#1981679
535227b
c6983f1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-2
c6983f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c6983f1
a78bc3f
* Thu Jun 17 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.12-1
a78bc3f
- Update to new release
a78bc3f
63e54d0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3.11-2
63e54d0
- Rebuilt for Python 3.10
63e54d0
d6355db
* Sat May 22 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.11-1
d6355db
- Update to latest release
d6355db
5ffa0bc
* Sun Mar 28 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.10-1
5ffa0bc
- Update to new release
5ffa0bc
82f4c6b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-2
82f4c6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
82f4c6b
55f174e
* Sun Sep 13 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.8-1
55f174e
- Update to new release
c91d819
- Fix BR on scipy
55f174e
6143fb3
* Fri Sep 04 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.7-1
6143fb3
- Update to new release
6143fb3
f6ebb63
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-2
f6ebb63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f6ebb63
f51e829
* Sat Jul 04 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.6-1
f51e829
- Update to new release
f51e829
5a3dce0
* Thu Jun 25 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.5-2
5a3dce0
- Explicitly BR setuptools
5a3dce0
254927e
* Sun Jun 21 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.5-1
254927e
- Update to 0.3.5
254927e
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