Group :: Development/Python3
RPM: python3-module-scikits.bootstrap
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define mname scikits
%define oname %mname.bootstrap
%def_with check
Name: python3-module-%oname
Version: 1.1.0
Release: alt1
Summary: Bootstrap confidence interval estimation routines for Numpy/Scipy/Pandas
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/scikits.bootstrap/
VCS: https://github.com/cgevans/scikits-bootstrap.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-numpy-testing
BuildRequires: python3-module-erf
BuildRequires: python3-module-pytest-cov
%endif
%py3_provides %oname
%description
Scikits.bootstrap provides bootstrap statistics confidence interval algorithms
for Numpy/Scipy/Pandas. It originally required scipy, but no longer needs it.
It also provides an algorithm which estimates the probability that the
statistics lies satisfies some criteria, e.g., lies in some interval.
%prep
%setup
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
$(find ./ -name '*.py')
%build
%python3_build_debug
%install
%python3_install
%check
%ifnarch %ix86
%tox_check
%else
%tox_check -- -k 'not test_abc_simple'
%endif
%if "%python3_sitelibdir" != "%python3_sitelibdir_noarch"
mkdir -p %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir/
%endif
%files
%doc LICENSE *.md
%python3_sitelibdir/%mname
%python3_sitelibdir/%oname-%version-*.egg-info
%changelog
…
Todas as alterações você pod ver aqui
%define oname %mname.bootstrap
%def_with check
Name: python3-module-%oname
Version: 1.1.0
Release: alt1
Summary: Bootstrap confidence interval estimation routines for Numpy/Scipy/Pandas
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/scikits.bootstrap/
VCS: https://github.com/cgevans/scikits-bootstrap.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-numpy-testing
BuildRequires: python3-module-erf
BuildRequires: python3-module-pytest-cov
%endif
%py3_provides %oname
%description
Scikits.bootstrap provides bootstrap statistics confidence interval algorithms
for Numpy/Scipy/Pandas. It originally required scipy, but no longer needs it.
It also provides an algorithm which estimates the probability that the
statistics lies satisfies some criteria, e.g., lies in some interval.
%prep
%setup
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
$(find ./ -name '*.py')
%build
%python3_build_debug
%install
%python3_install
%check
%ifnarch %ix86
%tox_check
%else
%tox_check -- -k 'not test_abc_simple'
%endif
%if "%python3_sitelibdir" != "%python3_sitelibdir_noarch"
mkdir -p %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir/
%endif
%files
%doc LICENSE *.md
%python3_sitelibdir/%mname
%python3_sitelibdir/%oname-%version-*.egg-info
%changelog
…
Todas as alterações você pod ver aqui