17
0

Compare commits

12 Commits

Author SHA256 Message Date
34b0d9739b Accepting request 1133204 from devel:languages:python:pytest
- 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.

- Do not build :test on Python 3.6, due to no NumPy.

OBS-URL: https://build.opensuse.org/request/show/1133204
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-arraydiff?expand=0&rev=5
2023-12-15 20:48:40 +00:00
099ce80570 - 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.
- Do not build :test on Python 3.6, due to no NumPy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=14
2023-12-14 21:33:39 +00:00
2d613bb53f 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
2022-11-08 09:54:54 +00:00
e3c5676afd 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
2022-11-08 07:23:15 +00:00
272e7f00d4 Accepting request 888760 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/888760
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-arraydiff?expand=0&rev=3
2021-04-27 19:34:19 +00:00
ba935da77b Accepting request 888738 from home:bnavigator:branches:devel:languages:python:pytest
- Do not build the package for python36 either
  (installcheck failure, numpy is a runtime requirement)
- Test astropy functionality for python3

OBS-URL: https://build.opensuse.org/request/show/888738
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=10
2021-04-27 11:17:51 +00:00
11a2bd0f5f - Do not build :test on Python 3.6, due to no NumPy.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=9
2021-04-19 05:21:23 +00:00
f78ac8c6ed Accepting request 701023 from devel:languages:python:pytest
- Update to 0.3:
  * Fixed compatibility with pytest 4+. [#15]
- Use _multibuild to run tests

OBS-URL: https://build.opensuse.org/request/show/701023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-arraydiff?expand=0&rev=2
2019-05-06 19:17:06 +00:00
Tomáš Chvátal
546e8e72be OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=7 2019-05-06 09:16:24 +00:00
Todd R
4a0b2fe443 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=6 2019-02-25 20:06:48 +00:00
Tomáš Chvátal
8064fd394b - Update to 0.3:
* Fixed compatibility with pytest 4+. [#15]
- Use _multibuild to run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=5
2019-02-13 13:27:45 +00:00
1c3ff67776 Accepting request 629288 from devel:languages:python:pytest
Required by python-pytest-astropy, which in turn is required by python-astropy.

OBS-URL: https://build.opensuse.org/request/show/629288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-arraydiff?expand=0&rev=1
2018-08-15 08:39:08 +00:00
5 changed files with 88 additions and 21 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0145edfa8830aba07150fc09443da74d0ec4074e3de702445453415a744d3ad9
size 12838

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2937b1450fc935620f24709d87d40c67e055a043d7b8541a25fdfa994dda67de
size 16907

View File

@@ -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

View File

@@ -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
# 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)
# 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
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-arraydiff
Version: 0.2
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-pytest-arraydiff%{psuffix}
Version: 0.6.1
Release: 0
License: BSD-2-Clause
Summary: Pytest plugin to help with comparing array output from tests
Url: https://github.com/astrofrog/pytest-arraydiff
Group: Development/Languages/Python
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 devel}
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}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest >= 4.6}
%endif
%python_subpackages
%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
can return either a Numpy array for a FITS HDU object.
%prep
%setup -q -n pytest-arraydiff-%{version}
%if !%{with test}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%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}
%doc CHANGES.md README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/pytest_arraydiff
%{python_sitelib}/pytest_arraydiff-%{version}*-info
%endif
%changelog