forked from pool/python-pytest-arraydiff
		
	Accepting request 1034352 from home:bnavigator:branches:devel:languages:python:numeric
- Update to v0.5.0 * Remove astropy dependency by @olebole in #31 * Register array_compare as pytest marker. - Release v0.4.0 * Minimum Python version is now 3.7. [#30] * Various infrastructure updates. OBS-URL: https://build.opensuse.org/request/show/1034352 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=12
This commit is contained in:
		@@ -1,3 +0,0 @@
 | 
				
			|||||||
version https://git-lfs.github.com/spec/v1
 | 
					 | 
				
			||||||
oid sha256:de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15
 | 
					 | 
				
			||||||
size 11167
 | 
					 | 
				
			||||||
							
								
								
									
										3
									
								
								pytest-arraydiff-0.5.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								pytest-arraydiff-0.5.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					version https://git-lfs.github.com/spec/v1
 | 
				
			||||||
 | 
					oid sha256:714149beffd0dfa085477c65791c1139b619602b049536353ce1a91397fb3bd2
 | 
				
			||||||
 | 
					size 12355
 | 
				
			||||||
@@ -1,3 +1,13 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Mon Nov  7 19:03:45 UTC 2022 - Ben Greiner <code@bnavigator.de>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Update to v0.5.0
 | 
				
			||||||
 | 
					  * Remove astropy dependency by @olebole in #31
 | 
				
			||||||
 | 
					  * Register array_compare as pytest marker.
 | 
				
			||||||
 | 
					- Release v0.4.0
 | 
				
			||||||
 | 
					  * Minimum Python version is now 3.7. [#30]
 | 
				
			||||||
 | 
					  * Various infrastructure updates.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-------------------------------------------------------------------
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
Tue Apr 27 09:52:52 UTC 2021 - Ben Greiner <code@bnavigator.de>
 | 
					Tue Apr 27 09:52:52 UTC 2021 - Ben Greiner <code@bnavigator.de>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# spec file for package python-pytest-arraydiff-test
 | 
					# spec file
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Copyright (c) 2021 SUSE LLC
 | 
					# Copyright (c) 2022 SUSE LLC
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# All modifications and additions to the file contributed by third parties
 | 
					# All modifications and additions to the file contributed by third parties
 | 
				
			||||||
# remain the property of their copyright owners, unless otherwise agreed
 | 
					# remain the property of their copyright owners, unless otherwise agreed
 | 
				
			||||||
@@ -25,27 +25,27 @@
 | 
				
			|||||||
%bcond_with test
 | 
					%bcond_with test
 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					 | 
				
			||||||
%define skip_python36 1
 | 
					 | 
				
			||||||
Name:           python-pytest-arraydiff%{psuffix}
 | 
					Name:           python-pytest-arraydiff%{psuffix}
 | 
				
			||||||
Version:        0.3
 | 
					Version:        0.5.0
 | 
				
			||||||
Release:        0
 | 
					Release:        0
 | 
				
			||||||
Summary:        Pytest plugin to help with comparing array output from tests
 | 
					Summary:        Pytest plugin to help with comparing array output from tests
 | 
				
			||||||
License:        BSD-2-Clause
 | 
					License:        BSD-2-Clause
 | 
				
			||||||
URL:            https://github.com/astropy/pytest-arraydiff
 | 
					URL:            https://github.com/astropy/pytest-arraydiff
 | 
				
			||||||
Source:         https://files.pythonhosted.org/packages/source/p/pytest-arraydiff/pytest-arraydiff-%{version}.tar.gz
 | 
					Source:         https://files.pythonhosted.org/packages/source/p/pytest-arraydiff/pytest-arraydiff-%{version}.tar.gz
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module base >= 3.7}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module pip}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module setuptools_scm}
 | 
				
			||||||
BuildRequires:  %{python_module setuptools}
 | 
					BuildRequires:  %{python_module setuptools}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module wheel}
 | 
				
			||||||
BuildRequires:  fdupes
 | 
					BuildRequires:  fdupes
 | 
				
			||||||
BuildRequires:  python-rpm-macros
 | 
					BuildRequires:  python-rpm-macros
 | 
				
			||||||
Requires:       python-numpy
 | 
					Requires:       python-numpy
 | 
				
			||||||
Requires:       python-pytest
 | 
					Requires:       python-pytest >= 4.6
 | 
				
			||||||
Requires:       python-six
 | 
					 | 
				
			||||||
BuildArch:      noarch
 | 
					BuildArch:      noarch
 | 
				
			||||||
%if %{with test}
 | 
					%if %{with test}
 | 
				
			||||||
BuildRequires:  %{python_module astropy if %python-base > 3}
 | 
					BuildRequires:  %{python_module astropy}
 | 
				
			||||||
BuildRequires:  %{python_module numpy}
 | 
					BuildRequires:  %{python_module numpy}
 | 
				
			||||||
BuildRequires:  %{python_module pytest}
 | 
					BuildRequires:  %{python_module pytest >= 4.6}
 | 
				
			||||||
BuildRequires:  %{python_module six}
 | 
					 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
%python_subpackages
 | 
					%python_subpackages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -68,27 +68,20 @@ At the moment, the supported file formats for the reference files are:
 | 
				
			|||||||
%prep
 | 
					%prep
 | 
				
			||||||
%setup -q -n pytest-arraydiff-%{version}
 | 
					%setup -q -n pytest-arraydiff-%{version}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%if !%{with test}
 | 
				
			||||||
%build
 | 
					%build
 | 
				
			||||||
%python_build
 | 
					%pyproject_wheel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%install
 | 
					%install
 | 
				
			||||||
%if !%{with test}
 | 
					%pyproject_install
 | 
				
			||||||
%python_install
 | 
					 | 
				
			||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					%python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%if %{with test}
 | 
					%if %{with test}
 | 
				
			||||||
%check
 | 
					%check
 | 
				
			||||||
%{python_expand # u-a controlled pytest executable for nested pytest calls within tests
 | 
					 | 
				
			||||||
mkdir -p build/bin
 | 
					 | 
				
			||||||
ln -sf %{_bindir}/pytest-%{$python_bin_suffix} build/bin/pytest
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
export PATH="$PWD/build/bin:$PATH"
 | 
					 | 
				
			||||||
# not installed in :test multiflavor
 | 
					# not installed in :test multiflavor
 | 
				
			||||||
export PYTHONPATH="$PWD"
 | 
					export PYTHONPATH="$PWD"
 | 
				
			||||||
# generate, default_format, test_fails, test_succeeds_func_fits_hdu tests need astropy that is python3 only, so skip
 | 
					%pytest
 | 
				
			||||||
python2_donttest=" or test_generate or test_default_format or test_fails or test_succeeds_func_fits_hdu"
 | 
					 | 
				
			||||||
%pytest -k "not (donttestdummyprefix ${$python_donttest})"
 | 
					 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%if !%{with test}
 | 
					%if !%{with test}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user