## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global srcname pytest-arraydiff %global modname pytest_arraydiff %global sum The py.test arraydiff plugin Name: python-%{srcname} Version: 0.5.0 Release: %autorelease Summary: %{sum} License: BSD URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %description This is a py.test plugin to facilitate the generation and comparison of data arrays produced during tests. The basic idea is that you can write a test that generates a Numpy array (or other related objects depending on the format). You can then either run the tests in a mode to generate reference files from the arrays, or you can run the tests in comparison mode, which will compare the results of the tests to the reference ones within some tolerance. At the moment, the supported file formats for the reference files are: * A plain text-based format (baed on Numpy loadtxt output) * The FITS format (requires astropy). With this format, tests can return either a Numpy array for a FITS HDU object. %package -n python3-%{srcname} Summary: %{sum} %description -n python3-%{srcname} This is a py.test plugin to facilitate the generation and comparison of data arrays produced during tests. The basic idea is that you can write a test that generates a Numpy array (or other related objects depending on the format). You can then either run the tests in a mode to generate reference files from the arrays, or you can run the tests in comparison mode, which will compare the results of the tests to the reference ones within some tolerance. At the moment, the supported file formats for the reference files are: * A plain text-based format (baed on Numpy loadtxt output) * The FITS format (requires astropy). With this format, tests can return either a Numpy array for a FITS HDU object. %prep %autosetup -n %{srcname}-%{version} # Remove egg files from source rm -r %{modname}.egg-info %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %check %pyproject_check_import %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc CHANGES.md README.rst %changelog * Mon Aug 08 2022 Mattia Verga 0.5.0-1 - Update to 0.5.0 (fedora#2040133) - Switch to modern python build macros * Mon Aug 08 2022 Mattia Verga 0.4.0-7 - Switch to rpmautospec * Fri Jul 22 2022 Fedora Release Engineering 0.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint 0.4.0-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 0.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 31 2021 Christian Dersch 0.4.0-3 - BR: python3-setuptools_scm * Fri Dec 31 2021 Christian Dersch 0.4.0-2 - BR: python3-wheel python3-pip * Fri Dec 31 2021 Christian Dersch 0.4.0-1 - new version * Fri Jul 23 2021 Fedora Release Engineering 0.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint 0.3-9 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering 0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering 0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok 0.3-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering 0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok 0.3-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok 0.3-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering 0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Mar 29 2019 Christian Dersch 0.3-1 - new version * Sat Feb 02 2019 Fedora Release Engineering 0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering 0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok 0.2-2 - Rebuilt for Python 3.7 * Mon Mar 19 2018 Christian Dersch 0.2-1 - initial import (#1557644)