c72e7c9
%global forgeurl https://github.com/python-quantities/python-quantities/
33ff21f
Name:       python-quantities
c72e7c9
Version:    0.15.0
3f46c30
Release:    %autorelease
0916dda
Summary:    Support for physical quantities with units, based on numpy
0916dda
c72e7c9
%forgemeta
c72e7c9
fbaa3b2
License:    BSD-3-Clause
c72e7c9
URL:        %forgeurl
c72e7c9
Source0:    %forgesource
4ea5456
0916dda
BuildArch:      noarch
0916dda
0916dda
0c6d7e5
%global _description\
0c6d7e5
Quantities is designed to handle arithmetic and conversions of physical\
0c6d7e5
quantities, which have a magnitude, dimensionality specified by various units,\
0c6d7e5
and possibly an uncertainty. See the tutorial for examples. Quantities builds\
0c6d7e5
on the popular numpy library and is designed to work with numpy ufuncs, many of\
0c6d7e5
which are already supported. Quantities is actively developed, and while the\
0c6d7e5
current features and API are stable, test coverage is incomplete so the package\
0916dda
is not suggested for mission-critical applications.
0916dda
0c6d7e5
%description %_description
0c6d7e5
33ff21f
%package -n python3-quantities
0916dda
Summary:    Support for physical quantities with units, based on numpy
f5979cf
BuildRequires:  python3-devel
33ff21f
BuildRequires:  python3-pytest
0916dda
33ff21f
%description -n python3-quantities %_description
0916dda
0916dda
%prep
c72e7c9
%forgesetup
917299c
# Work around confusion with SPECPARTS directory looking like a package to
917299c
# setuptools automatic discovery:
917299c
# https://bugzilla.redhat.com/show_bug.cgi?id=2213013#c2
917299c
rm -rf SPECPARTS
33ff21f
33ff21f
%generate_buildrequires
c72e7c9
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
33ff21f
%pyproject_buildrequires
0916dda
0916dda
%build
c72e7c9
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
33ff21f
%pyproject_wheel
0916dda
0916dda
%install
c72e7c9
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
33ff21f
%pyproject_install
33ff21f
%pyproject_save_files quantities
0916dda
0916dda
%check
c72e7c9
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
33ff21f
PY_IGNORE_IMPORTMISMATCH=1 %{pytest}
0916dda
33ff21f
%files -n python3-quantities -f %{pyproject_files}
33ff21f
%doc CHANGES.txt README.rst
33ff21f
%license doc/user/license.rst
0916dda
0916dda
%changelog
3f46c30
%autochangelog