From e7a17c9d193abad67e5ef7ae803caac7f18732c051cd0cc7ff4c8460ad890d72 Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 14 Aug 2018 20:33:04 +0000 Subject: [PATCH] required by python-astropy OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-arraydiff?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + pytest-arraydiff-0.2.tar.gz | 3 ++ python-pytest-arraydiff.changes | 4 ++ python-pytest-arraydiff.spec | 71 +++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-arraydiff-0.2.tar.gz create mode 100644 python-pytest-arraydiff.changes create mode 100644 python-pytest-arraydiff.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-arraydiff-0.2.tar.gz b/pytest-arraydiff-0.2.tar.gz new file mode 100644 index 0000000..2bbc663 --- /dev/null +++ b/pytest-arraydiff-0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0145edfa8830aba07150fc09443da74d0ec4074e3de702445453415a744d3ad9 +size 12838 diff --git a/python-pytest-arraydiff.changes b/python-pytest-arraydiff.changes new file mode 100644 index 0000000..cb6b485 --- /dev/null +++ b/python-pytest-arraydiff.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Aug 14 20:03:10 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-pytest-arraydiff.spec b/python-pytest-arraydiff.spec new file mode 100644 index 0000000..f7c9ea2 --- /dev/null +++ b/python-pytest-arraydiff.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-pytest-arraydiff +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ + + +# Tests require astropy, which in turn requires this package +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-arraydiff +Version: 0.2 +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 +Source: https://files.pythonhosted.org/packages/source/p/pytest-arraydiff/pytest-arraydiff-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-numpy +Requires: python-pytest +Requires: python-six +BuildArch: noarch + +%python_subpackages + +%description +This is a py.test plugin to facilitate the generation and comparison of +data arrays produced during tests. + +The basic idea is that you can write a test that generates a Numpy array (or +other related objects depending on the format). You can then either run the +tests in a mode to generate reference files from the arrays, or you can run +the tests in comparison mode, which will compare the results of the tests to +the reference ones within some tolerance. + +At the moment, the supported file formats for the reference files are: + +- A plain text-based format (baSed on Numpy loadtxt output) +- 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} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc CHANGES.md README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog