Compare commits
12 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 34b0d9739b | |||
| 099ce80570 | |||
| 2d613bb53f | |||
| e3c5676afd | |||
| 272e7f00d4 | |||
| ba935da77b | |||
| 11a2bd0f5f | |||
| f78ac8c6ed | |||
|
|
546e8e72be | ||
|
|
4a0b2fe443 | ||
|
|
8064fd394b | ||
| 1c3ff67776 |
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0145edfa8830aba07150fc09443da74d0ec4074e3de702445453415a744d3ad9
|
|
||||||
size 12838
|
|
||||||
3
pytest-arraydiff-0.6.1.tar.gz
Normal file
3
pytest-arraydiff-0.6.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2937b1450fc935620f24709d87d40c67e055a043d7b8541a25fdfa994dda67de
|
||||||
|
size 16907
|
||||||
@@ -1,3 +1,43 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 14 21:32:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 0.6.1:
|
||||||
|
* Fix broken ``single_reference=True`` usage.
|
||||||
|
* Add ability to compare to Pandas DataFrames and store them as
|
||||||
|
HDF5 files
|
||||||
|
* Fix ``array_compare`` so that the ``atol`` parameter is
|
||||||
|
correctly used with FITS files.
|
||||||
|
* Test inside ``pytest_runtest_call`` hook.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Do not build the package for python36 either
|
||||||
|
(installcheck failure, numpy is a runtime requirement)
|
||||||
|
- Test astropy functionality for python3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 19 05:19:34 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Do not build :test on Python 3.6, due to no NumPy.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 13 13:19:01 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.3:
|
||||||
|
* Fixed compatibility with pytest 4+. [#15]
|
||||||
|
- Use _multibuild to run tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 14 20:03:10 UTC 2018 - toddrme2178@gmail.com
|
Tue Aug 14 20:03:10 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-arraydiff
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2023 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
|
||||||
@@ -12,28 +12,41 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
# Tests require astropy, which in turn requires this package
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%if "%{flavor}" == "test"
|
||||||
Name: python-pytest-arraydiff
|
%define psuffix -test
|
||||||
Version: 0.2
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: python-pytest-arraydiff%{psuffix}
|
||||||
|
Version: 0.6.1
|
||||||
Release: 0
|
Release: 0
|
||||||
License: BSD-2-Clause
|
|
||||||
Summary: Pytest plugin to help with comparing array output from tests
|
Summary: Pytest plugin to help with comparing array output from tests
|
||||||
Url: https://github.com/astrofrog/pytest-arraydiff
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
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 devel}
|
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}
|
||||||
|
BuildRequires: %{python_module astropy}
|
||||||
|
BuildRequires: %{python_module numpy}
|
||||||
|
BuildRequires: %{python_module pytest >= 4.6}
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -52,20 +65,31 @@ At the moment, the supported file formats for the reference files are:
|
|||||||
- The FITS format (requires astropy). With this format, tests
|
- The FITS format (requires astropy). With this format, tests
|
||||||
can return either a Numpy array for a FITS HDU object.
|
can return either a Numpy array for a FITS HDU object.
|
||||||
|
|
||||||
|
|
||||||
%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
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
|
%check
|
||||||
|
# not installed in :test multiflavor
|
||||||
|
export PYTHONPATH="$PWD"
|
||||||
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES.md README.rst
|
%doc CHANGES.md README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pytest_arraydiff
|
||||||
|
%{python_sitelib}/pytest_arraydiff-%{version}*-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user