Group :: Development/Python3
RPM: python3-module-pyamg
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name pyamg
%ifarch ppc64le
%def_without check
%else
%def_with check
%endif
Name: python3-module-%pypi_name
Version: 5.0.1
Release: alt1
Summary: PyAMG: Algebraic Multigrid Solvers in Python
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/pyamg/
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(setuptools_scm)
BuildRequires: python3(pybind11)
BuildRequires: python3(wheel)
BuildRequires: gcc-c++
%if_with check
# deps
BuildRequires: python3(numpy)
BuildRequires: python3(scipy)
BuildRequires: python3(numpy.testing)
BuildRequires: python3(pytest)
%endif
%description
PyAMG is a library of Algebraic Multigrid (AMG) solvers with a
convenient Python interface.
%prep
%setup
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM.
if [ ! -d .git ]; then
git init
git config user.email author at example.com
git config user.name author
git add .
git commit -m 'release'
git tag '%version'
fi
%build
%pyproject_build
%install
%pyproject_install
%check
# https://github.com/pyamg/pyamg/issues/342
%ifarch i586
_PYTEST_ARGS=--ignore=pyamg/tests/test_graph.py
%endif
%tox_create_default_config
%tox_check_pyproject -- -vra --import-mode=importlib . ${_PYTEST_ARGS-}
%files
%doc *.txt *.md
%python3_sitelibdir/pyamg/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/pyamg/tests
%exclude %python3_sitelibdir/pyamg/*/tests
%changelog
…
Full changelog you can see here
%define pypi_name pyamg
%ifarch ppc64le
%def_without check
%else
%def_with check
%endif
Name: python3-module-%pypi_name
Version: 5.0.1
Release: alt1
Summary: PyAMG: Algebraic Multigrid Solvers in Python
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/pyamg/
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(setuptools_scm)
BuildRequires: python3(pybind11)
BuildRequires: python3(wheel)
BuildRequires: gcc-c++
%if_with check
# deps
BuildRequires: python3(numpy)
BuildRequires: python3(scipy)
BuildRequires: python3(numpy.testing)
BuildRequires: python3(pytest)
%endif
%description
PyAMG is a library of Algebraic Multigrid (AMG) solvers with a
convenient Python interface.
%prep
%setup
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM.
if [ ! -d .git ]; then
git init
git config user.email author at example.com
git config user.name author
git add .
git commit -m 'release'
git tag '%version'
fi
%build
%pyproject_build
%install
%pyproject_install
%check
# https://github.com/pyamg/pyamg/issues/342
%ifarch i586
_PYTEST_ARGS=--ignore=pyamg/tests/test_graph.py
%endif
%tox_create_default_config
%tox_check_pyproject -- -vra --import-mode=importlib . ${_PYTEST_ARGS-}
%files
%doc *.txt *.md
%python3_sitelibdir/pyamg/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/pyamg/tests
%exclude %python3_sitelibdir/pyamg/*/tests
%changelog
…
Full changelog you can see here