Group :: Development/Python3
RPM: python3-module-numdifftools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname numdifftools
%def_with check
Name: python3-module-%oname
Version: 0.9.41
Release: alt1
Summary: Solves automatic numerical differentiation problems in one or more variables
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/numdifftools
VCS: https://github.com/pbrod/numdifftools
Source: %name-%version.tar
Patch0: nd-0.9.41-alt-fix-pytest-runner.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-algopy
BuildRequires: python3-module-hypothesis
BuildRequires: python3-module-matplotlib
BuildRequires: python3-module-scikits.statsmodels
BuildRequires: python3-module-pandas-tests
%endif
%description
Numdifftools is a suite of tools to solve automatic numerical
differentiation problems in one or more variables. All of these methods
also produce error estimates on the result.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
Requires: python3-module-algopy
Requires: python3-module-scikits.statsmodels
Requires: python3-module-pandas-tests
%description tests
Numdifftools is a suite of tools to solve automatic numerical
differentiation problems in one or more variables. All of these methods
also produce error estimates on the result.
This package contains tests for %oname.
%prep
%setup
%patch0
%build
%python3_build
%install
%python3_install
%check
cd src
py.test-3 '--doctest-modules' '--disable-warnings'
%files
%doc LICENSE.txt *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%doc LICENSE.txt *.rst
%changelog
…
Todas as alterações você pod ver aqui
%def_with check
Name: python3-module-%oname
Version: 0.9.41
Release: alt1
Summary: Solves automatic numerical differentiation problems in one or more variables
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/numdifftools
VCS: https://github.com/pbrod/numdifftools
Source: %name-%version.tar
Patch0: nd-0.9.41-alt-fix-pytest-runner.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-algopy
BuildRequires: python3-module-hypothesis
BuildRequires: python3-module-matplotlib
BuildRequires: python3-module-scikits.statsmodels
BuildRequires: python3-module-pandas-tests
%endif
%description
Numdifftools is a suite of tools to solve automatic numerical
differentiation problems in one or more variables. All of these methods
also produce error estimates on the result.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
Requires: python3-module-algopy
Requires: python3-module-scikits.statsmodels
Requires: python3-module-pandas-tests
%description tests
Numdifftools is a suite of tools to solve automatic numerical
differentiation problems in one or more variables. All of these methods
also produce error estimates on the result.
This package contains tests for %oname.
%prep
%setup
%patch0
%build
%python3_build
%install
%python3_install
%check
cd src
py.test-3 '--doctest-modules' '--disable-warnings'
%files
%doc LICENSE.txt *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%doc LICENSE.txt *.rst
%changelog
…
Todas as alterações você pod ver aqui