04a2583
%global desc %{expand: \
505d840
Numpoly is a generic library for creating, manipulating and evaluating
505d840
arrays of polynomials based on `numpy.ndarray` objects.
505d840
505d840
- Intuitive interface for users experienced with numpy, as the library
505d840
  provides a high level of compatibility with the `numpy.ndarray`,
505d840
  including fancy indexing, broadcasting, `numpy.dtype`, vectorized
505d840
  operations to name a few
505d840
- Computationally fast evaluations of lots of functionality inherent
505d840
  from numpy
505d840
- Vectorized polynomial evaluation
505d840
- Support for arbitrary number of dimensions
505d840
- Native support for lots of `numpy.<name>` functions using numpy’s
505d840
  compatibility layer (which also exists as `numpoly.<name`> equivalents)
505d840
- Support for polynomial division through the operators `/`, `%` and
505d840
  `divmod`
505d840
- Extra polynomial specific attributes exposed on the polynomial
505d840
  objects like `poly.exponents`, `poly.coefficients`,
505d840
  `poly.indeterminants` etc.
505d840
- Polynomial derivation through functions like `numpoly.derivative`,
505d840
  `numpoly.gradient`, `numpoly.hessian` etc.
505d840
- Decompose polynomial sums into vector of addends using
505d840
  `numpoly.decompose`
505d840
- Variable substitution through `numpoly.call`}
04a2583
47c650b
%global forgeurl https://github.com/jonathf/numpoly
47c650b
8c13198
Name:       python-numpoly
6bfe74e
Version:    1.2.11
7fdc905
Release:    %autorelease
786ce87
Summary:    Polynomials as a numpy datatype
47c650b
%forgemeta
fe90aab
# spdx
fe90aab
License:    BSD-2-Clause
47c650b
URL:        %forgeurl
04a2583
04a2583
# Use the github source to build this package.
47c650b
Source0:    %forgesource
786ce87
BuildArch:  noarch
abd980d
# Tests fail on 32 bit arches.
abd980d
# Only chaospy depends on it, and chaospy does not support 32 bit arches.
abd980d
# So also dropping them here.
cb34054
ExcludeArch:    %{ix86}
786ce87
786ce87
BuildRequires:  python3-devel
786ce87
BuildRequires:  python3dist(setuptools)
786ce87
BuildRequires:  python3dist(pytest)
8c13198
# extra dev dep for tests, do not include all the linters etc.
8c13198
BuildRequires:  python3dist(sympy)
04a2583
04a2583
%description
04a2583
%{desc}
04a2583
8c13198
%package -n     python3-numpoly
04a2583
Summary:        %{summary}
04a2583
8c13198
%description -n python3-numpoly
04a2583
%{desc}
04a2583
04a2583
%prep
47c650b
%forgeautosetup
231de03
# Workaround for https://github.com/rpm-software-management/rpm/issues/2532:
231de03
rm -rf SPECPARTS
04a2583
04a2583
%generate_buildrequires
8c13198
%pyproject_buildrequires -x dev-dependencies
04a2583
04a2583
%build
04a2583
%pyproject_wheel
04a2583
04a2583
%install
04a2583
%pyproject_install
969418c
%pyproject_save_files -l numpoly
04a2583
4c7deee
%check
b68a13c
%pytest
04a2583
8c13198
%files -n python3-numpoly -f %{pyproject_files}
04a2583
%doc README.rst
04a2583
04a2583
%changelog
7fdc905
%autochangelog