Accepting request 1034429 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1034429 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-arraydiff?expand=0&rev=4
This commit is contained in:
commit
2d613bb53f
@ -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>
|
||||
|
||||
|
@ -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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -25,27 +25,27 @@
|
||||
%bcond_with test
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python36 1
|
||||
Name: python-pytest-arraydiff%{psuffix}
|
||||
Version: 0.3
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: Pytest plugin to help with comparing array output from tests
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/astropy/pytest-arraydiff
|
||||
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 wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-numpy
|
||||
Requires: python-pytest
|
||||
Requires: python-six
|
||||
Requires: python-pytest >= 4.6
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module astropy if %python-base > 3}
|
||||
BuildRequires: %{python_module astropy}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module pytest >= 4.6}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
@ -68,27 +68,20 @@ At the moment, the supported file formats for the reference files are:
|
||||
%prep
|
||||
%setup -q -n pytest-arraydiff-%{version}
|
||||
|
||||
%if !%{with test}
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%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
|
||||
export PYTHONPATH="$PWD"
|
||||
# generate, default_format, test_fails, test_succeeds_func_fits_hdu tests need astropy that is python3 only, so skip
|
||||
python2_donttest=" or test_generate or test_default_format or test_fails or test_succeeds_func_fits_hdu"
|
||||
%pytest -k "not (donttestdummyprefix ${$python_donttest})"
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
Loading…
x
Reference in New Issue
Block a user