diff --git a/pytest-arraydiff-0.3.tar.gz b/pytest-arraydiff-0.3.tar.gz deleted file mode 100644 index 1eec6eb..0000000 --- a/pytest-arraydiff-0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15 -size 11167 diff --git a/pytest-arraydiff-0.5.0.tar.gz b/pytest-arraydiff-0.5.0.tar.gz new file mode 100644 index 0000000..f5993f1 --- /dev/null +++ b/pytest-arraydiff-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:714149beffd0dfa085477c65791c1139b619602b049536353ce1a91397fb3bd2 +size 12355 diff --git a/python-pytest-arraydiff.changes b/python-pytest-arraydiff.changes index 0b548ea..98b31b0 100644 --- a/python-pytest-arraydiff.changes +++ b/python-pytest-arraydiff.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Nov 7 19:03:45 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-pytest-arraydiff.spec b/python-pytest-arraydiff.spec index 6c08749..cf1ac82 100644 --- a/python-pytest-arraydiff.spec +++ b/python-pytest-arraydiff.spec @@ -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}