From 0102a886b0d61291775123db3bd83bde9779217b Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Feb 06 2020 10:40:37 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..184e245 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pingouin-0.3.1.tar.gz diff --git a/python-pingouin.spec b/python-pingouin.spec new file mode 100644 index 0000000..a5c454c --- /dev/null +++ b/python-pingouin.spec @@ -0,0 +1,130 @@ +%bcond_without tests +%bcond_with docs + +%global srcname pingouin + +%global _description %{expand: +Pingouin is an open-source statistical package written in Python 3 and based on +Pandas and NumPy. + +It provides easy-to-grasp functions for computing several statistical +functions: + +- ANOVAs: one- and two-ways, repeated measures, mixed, ancova +- Post-hocs tests and pairwise comparisons +- Robust correlations +- Partial correlation, repeated measures correlation and intraclass correlation +- Bayes Factor +- Tests for sphericity, normality and homoscedasticity +- Effect sizes (Cohen's d, Hedges'g, AUC, Glass delta, eta-square...) +- Parametric/bootstrapped confidence intervals around an effect size or a + correlation coefficient +- Circular statistics +- Linear/logistic regression and mediation analysis + +Pingouin is designed for users who want simple yet exhaustive statistical +functions.} + +Name: python-%{srcname} +Version: 0.3.1 +Release: 1%{?dist} +Summary: Statistical package for Python + +# Documentation pulls in bootstrap, bootswatch, jquery which are MIT +License: GPLv3 and MIT +URL: https://pypi.python.org/pypi/%{srcname} +# Pypi tar does not contain docs and tests +Source0: https://github.com/raphaelvallat/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%description %_description + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel + +BuildRequires: %{py3_dist numpy} +BuildRequires: %{py3_dist pandas} +BuildRequires: %{py3_dist seaborn} + +%if %{with tests} +BuildRequires: %{py3_dist pandas-flavor} +BuildRequires: %{py3_dist pytest} +BuildRequires: %{py3_dist pytest-cov} +BuildRequires: %{py3_dist pytest-remotedata} +BuildRequires: %{py3_dist statsmodels} +BuildRequires: %{py3_dist pytest-sugar} +BuildRequires: %{py3_dist openpyxl} +BuildRequires: %{py3_dist mpmath} +BuildRequires: %{py3_dist scikit-learn} +# Only required and works in TRAVIS, so not needed here +# BuildRequires: python3-pytest-travis-fold +%endif + +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + +%package doc +Summary: %{summary} +BuildRequires: %{py3_dist numpydoc} +BuildRequires: %{py3_dist pandas-flavor} +BuildRequires: %{py3_dist sphinx} +BuildRequires: %{py3_dist sphinx-bootstrap-theme} + +%description doc +Documentation for %{name}. + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf %{srcname}.egg-info + +%build +%py3_build + +%if %{with docs} +PYTHONPATH=. sphinx-build-%{python3_version} -b html docs html +rm -rf html/.doctrees +rm -rf html/.buildinfo +rm -rf html/.nojekyll +%endif + +%install +%py3_install + +%check +%if %{with tests} +export PYTHONPATH=%{buildroot}%{python3_sitelib} +pytest-%{python3_version} +%endif + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{srcname} + +%files doc +%license LICENSE +%doc notebooks +%if %{with docs} +%doc html +%endif + +%changelog +* Fri Dec 06 2019 Ankur Sinha - 0.3.1-1 +- Update to 0.3.1 + +* Sat Nov 09 2019 Ankur Sinha - 0.2.9-1 +- Update to 0.2.9 +- rebuild since scipy 1.3.0 is now available in rawhide +- Requires pandas-flavor, needs packaging + +* Sat Jul 20 2019 Ankur Sinha - 0.2.7-1 +- Correct license +- Add missing BR +- Add notebooks to documentation + +* Fri Jul 19 2019 Ankur Sinha - 0.2.7-1 +- Initial build diff --git a/sources b/sources new file mode 100644 index 0000000..25e7be0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pingouin-0.3.1.tar.gz) = 5b6ac22204bf64de0c0e596c09741fda3ec66d3d3318ed3fe9950d2d6453612cbd2b7e4ba8e733b2bceb25b65c610c4473e888b9d25a15fd8a270c0153635e1a