Hello community,
here is the log from the commit of package python-pytest-arraydiff for
openSUSE:Leap:15.2 checked in at 2020-02-23 16:47:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pytest-arraydiff (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-pytest-arraydiff.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-arraydiff"
Sun Feb 23 16:47:38 2020 rev:3 rq:777013 version:0.3
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-pytest-arraydiff/python-pytest-arraydiff.changes
2020-01-15 15:52:14.699556691 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-pytest-arraydiff.new.26092/python-pytest-arraydiff.changes
2020-02-23 16:47:39.218341667 +0100
@@ -1,0 +2,7 @@
+Wed Feb 13 13:19:01 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.3:
+ * Fixed compatibility with pytest 4+. [#15]
+- Use _multibuild to run tests
+
+-------------------------------------------------------------------
Old:
----
pytest-arraydiff-0.2.tar.gz
New:
----
_multibuild
pytest-arraydiff-0.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-arraydiff.spec ++++++
--- /var/tmp/diff_new_pack.E923sU/_old 2020-02-23 16:47:39.594342391 +0100
+++ /var/tmp/diff_new_pack.E923sU/_new 2020-02-23 16:47:39.598342398 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-arraydiff
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,20 +12,27 @@
# 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.3
Release: 0
-License: BSD-2-Clause
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/astrofrog/pytest-arraydiff
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
@@ -33,7 +40,11 @@
Requires: python-pytest
Requires: python-six
BuildArch: noarch
-
+%if %{with test}
+BuildRequires: %{python_module numpy}
+BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module six}
+%endif
%python_subpackages
%description
@@ -52,7 +63,6 @@
- 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}
@@ -60,12 +70,22 @@
%python_build
%install
+%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+
+%if %{with test}
+%check
+# generate, default_format, test_fails, test_succeeds_func_fits_hdu tests need
astropy that is python3 only, so skip
+%pytest -k 'not (test_generate or test_default_format or test_fails or
test_succeeds_func_fits_hdu)'
+%endif
+%if !%{with test}
%files %{python_files}
%doc CHANGES.md README.rst
%license LICENSE
%{python_sitelib}/*
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>
++++++ pytest-arraydiff-0.2.tar.gz -> pytest-arraydiff-0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-arraydiff-0.2/CHANGES.md
new/pytest-arraydiff-0.3/CHANGES.md
--- old/pytest-arraydiff-0.2/CHANGES.md 2018-01-29 11:17:46.000000000 +0100
+++ new/pytest-arraydiff-0.3/CHANGES.md 2018-12-06 05:29:14.000000000 +0100
@@ -1,3 +1,8 @@
+0.3 (2018-12-05)
+----------------
+
+- Fixed compatibility with pytest 4+. [#15]
+
0.2 (2018-01-29)
----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-arraydiff-0.2/PKG-INFO
new/pytest-arraydiff-0.3/PKG-INFO
--- old/pytest-arraydiff-0.2/PKG-INFO 2018-01-29 11:17:54.000000000 +0100
+++ new/pytest-arraydiff-0.3/PKG-INFO 2018-12-06 05:30:04.000000000 +0100
@@ -1,20 +1,20 @@
Metadata-Version: 1.1
Name: pytest-arraydiff
-Version: 0.2
+Version: 0.3
Summary: pytest plugin to help with comparing array output from tests
Home-page: https://github.com/astrofrog/pytest-arraydiff
Author: Thomas Robitaille
Author-email: [email protected]
License: BSD
-Description: |Travis Build Status| |AppVeyor Build status| |Coveralls coverage|
+Description: |Travis Build Status| |AppVeyor Build status| |Coverage|
About
-----
This is a `py.test <http://pytest.org>`__ plugin to facilitate the
- generation and comparison of data arrays produced during tests (this
is a
- spin-off from
- `pytest-arraydiff <https://github.com/astrofrog/pytest-arraydiff>`__).
+ generation and comparison of data arrays produced during tests, in
particular
+ in cases where the arrays are too large to conveniently hard-code them
+ in the tests (e.g. ``np.testing.assert_allclose(x, [1, 2, 3])``).
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
@@ -38,21 +38,15 @@
requires `pytest <http://pytest.org>`__ and
`numpy <http://www.numpy.org>`__ to be installed.
- To install, you can do:
-
- ::
+ To install, you can do::
pip install pytest-arraydiff
- You can check that the plugin is registered with pytest by doing:
-
- ::
+ You can check that the plugin is registered with pytest by doing::
py.test --version
- which will show a list of plugins:
-
- ::
+ which will show a list of plugins::
This is pytest version 2.7.1, imported from ...
setuptools registered plugins:
@@ -63,9 +57,7 @@
To use, you simply need to mark the function where you want to compare
arrays using ``@pytest.mark.array_compare``, and make sure that the
- function returns a plain Numpy array:
-
- ::
+ function returns a plain Numpy array::
python
import pytest
@@ -77,9 +69,7 @@
To generate the reference data files, run the tests with the
``--arraydiff-generate-path`` option with the name of the directory
- where the generated files should be placed:
-
- ::
+ where the generated files should be placed::
py.test --arraydiff-generate-path=reference
@@ -93,9 +83,7 @@
name is configurable, see below). You can also generate the baseline
arrays directly in the right directory.
- You can then run the tests simply with:
-
- ::
+ You can then run the tests simply with::
py.test --arraydiff
@@ -161,9 +149,7 @@
end in a slash).
Finally, you can also set a custom baseline directory globally when
- running tests by running ``py.test`` with:
-
- ::
+ running tests by running ``py.test`` with::
py.test --arraydiff --arraydiff-reference-path=baseline_arrays
@@ -177,9 +163,7 @@
If the arrays produced by the tests are correct, then the test will
pass, but if they are not, the test will fail with a message similar to
- the following:
-
- ::
+ the following::
E AssertionError:
E
@@ -203,9 +187,7 @@
--------------------------------------
If you are contributing some changes and want to run the tests, first
- install the latest version of the plugin then do:
-
- ::
+ install the latest version of the plugin then do::
cd tests
py.test --arraydiff
@@ -215,10 +197,10 @@
.. |Travis Build Status| image::
https://travis-ci.org/astrofrog/pytest-arraydiff.svg?branch=master
:target: https://travis-ci.org/astrofrog/pytest-arraydiff
- .. |AppVeyor Build status| image::
https://ci.appveyor.com/api/projects/status/4hfoe954rxhgslsl/branch/master?svg=true
- :target: https://ci.appveyor.com/project/astrofrog/pytest-arraydiff
- .. |Coveralls coverage| image::
https://coveralls.io/repos/matplotlib/pytest-arraydiff/badge.svg
- :target: https://coveralls.io/r/matplotlib/pytest-arraydiff
+ .. |AppVeyor Build status| image::
https://ci.appveyor.com/api/projects/status/0nech6qgp8jlabjp/branch/master?svg=true
+ :target: https://ci.appveyor.com/project/astropy/pytest-arraydiff
+ .. |Coverage| image::
https://codecov.io/gh/astropy/pytest-arraydiff/branch/master/graph/badge.svg
+ :target: https://codecov.io/gh/astropy/pytest-arraydiff
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-arraydiff-0.2/README.rst
new/pytest-arraydiff-0.3/README.rst
--- old/pytest-arraydiff-0.2/README.rst 2018-01-29 11:12:14.000000000 +0100
+++ new/pytest-arraydiff-0.3/README.rst 2018-12-05 19:49:54.000000000 +0100
@@ -1,12 +1,12 @@
-|Travis Build Status| |AppVeyor Build status| |Coveralls coverage|
+|Travis Build Status| |AppVeyor Build status| |Coverage|
About
-----
This is a `py.test <http://pytest.org>`__ plugin to facilitate the
-generation and comparison of data arrays produced during tests (this is a
-spin-off from
-`pytest-arraydiff <https://github.com/astrofrog/pytest-arraydiff>`__).
+generation and comparison of data arrays produced during tests, in particular
+in cases where the arrays are too large to conveniently hard-code them
+in the tests (e.g. ``np.testing.assert_allclose(x, [1, 2, 3])``).
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
@@ -30,21 +30,15 @@
requires `pytest <http://pytest.org>`__ and
`numpy <http://www.numpy.org>`__ to be installed.
-To install, you can do:
-
-::
+To install, you can do::
pip install pytest-arraydiff
-You can check that the plugin is registered with pytest by doing:
-
-::
+You can check that the plugin is registered with pytest by doing::
py.test --version
-which will show a list of plugins:
-
-::
+which will show a list of plugins::
This is pytest version 2.7.1, imported from ...
setuptools registered plugins:
@@ -55,9 +49,7 @@
To use, you simply need to mark the function where you want to compare
arrays using ``@pytest.mark.array_compare``, and make sure that the
-function returns a plain Numpy array:
-
-::
+function returns a plain Numpy array::
python
import pytest
@@ -69,9 +61,7 @@
To generate the reference data files, run the tests with the
``--arraydiff-generate-path`` option with the name of the directory
-where the generated files should be placed:
-
-::
+where the generated files should be placed::
py.test --arraydiff-generate-path=reference
@@ -85,9 +75,7 @@
name is configurable, see below). You can also generate the baseline
arrays directly in the right directory.
-You can then run the tests simply with:
-
-::
+You can then run the tests simply with::
py.test --arraydiff
@@ -153,9 +141,7 @@
end in a slash).
Finally, you can also set a custom baseline directory globally when
-running tests by running ``py.test`` with:
-
-::
+running tests by running ``py.test`` with::
py.test --arraydiff --arraydiff-reference-path=baseline_arrays
@@ -169,9 +155,7 @@
If the arrays produced by the tests are correct, then the test will
pass, but if they are not, the test will fail with a message similar to
-the following:
-
-::
+the following::
E AssertionError:
E
@@ -195,9 +179,7 @@
--------------------------------------
If you are contributing some changes and want to run the tests, first
-install the latest version of the plugin then do:
-
-::
+install the latest version of the plugin then do::
cd tests
py.test --arraydiff
@@ -207,7 +189,7 @@
.. |Travis Build Status| image::
https://travis-ci.org/astrofrog/pytest-arraydiff.svg?branch=master
:target: https://travis-ci.org/astrofrog/pytest-arraydiff
-.. |AppVeyor Build status| image::
https://ci.appveyor.com/api/projects/status/4hfoe954rxhgslsl/branch/master?svg=true
- :target: https://ci.appveyor.com/project/astrofrog/pytest-arraydiff
-.. |Coveralls coverage| image::
https://coveralls.io/repos/matplotlib/pytest-arraydiff/badge.svg
- :target: https://coveralls.io/r/matplotlib/pytest-arraydiff
+.. |AppVeyor Build status| image::
https://ci.appveyor.com/api/projects/status/0nech6qgp8jlabjp/branch/master?svg=true
+ :target: https://ci.appveyor.com/project/astropy/pytest-arraydiff
+.. |Coverage| image::
https://codecov.io/gh/astropy/pytest-arraydiff/branch/master/graph/badge.svg
+ :target: https://codecov.io/gh/astropy/pytest-arraydiff
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-arraydiff-0.2/pytest_arraydiff/__init__.py
new/pytest-arraydiff-0.3/pytest_arraydiff/__init__.py
--- old/pytest-arraydiff-0.2/pytest_arraydiff/__init__.py 2018-01-29
11:17:46.000000000 +0100
+++ new/pytest-arraydiff-0.3/pytest_arraydiff/__init__.py 2018-12-06
05:29:24.000000000 +0100
@@ -1 +1 @@
-__version__ = '0.2'
+__version__ = '0.3'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-arraydiff-0.2/pytest_arraydiff/plugin.py
new/pytest-arraydiff-0.3/pytest_arraydiff/plugin.py
--- old/pytest-arraydiff-0.2/pytest_arraydiff/plugin.py 2018-01-29
09:47:37.000000000 +0100
+++ new/pytest-arraydiff-0.3/pytest_arraydiff/plugin.py 2018-12-05
19:49:54.000000000 +0100
@@ -36,6 +36,7 @@
import shutil
import tempfile
import warnings
+from distutils.version import StrictVersion
import six
from six.moves.urllib.request import urlopen
@@ -212,7 +213,10 @@
def pytest_runtest_setup(self, item):
- compare = item.keywords.get('array_compare')
+ if StrictVersion(pytest.__version__) < StrictVersion("3.6"):
+ compare = item.get_marker('array_compare')
+ else:
+ compare = item.get_closest_marker('array_compare')
if compare is None:
return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-arraydiff-0.2/pytest_arraydiff.egg-info/PKG-INFO
new/pytest-arraydiff-0.3/pytest_arraydiff.egg-info/PKG-INFO
--- old/pytest-arraydiff-0.2/pytest_arraydiff.egg-info/PKG-INFO 2018-01-29
11:17:54.000000000 +0100
+++ new/pytest-arraydiff-0.3/pytest_arraydiff.egg-info/PKG-INFO 2018-12-06
05:30:04.000000000 +0100
@@ -1,20 +1,20 @@
Metadata-Version: 1.1
Name: pytest-arraydiff
-Version: 0.2
+Version: 0.3
Summary: pytest plugin to help with comparing array output from tests
Home-page: https://github.com/astrofrog/pytest-arraydiff
Author: Thomas Robitaille
Author-email: [email protected]
License: BSD
-Description: |Travis Build Status| |AppVeyor Build status| |Coveralls coverage|
+Description: |Travis Build Status| |AppVeyor Build status| |Coverage|
About
-----
This is a `py.test <http://pytest.org>`__ plugin to facilitate the
- generation and comparison of data arrays produced during tests (this
is a
- spin-off from
- `pytest-arraydiff <https://github.com/astrofrog/pytest-arraydiff>`__).
+ generation and comparison of data arrays produced during tests, in
particular
+ in cases where the arrays are too large to conveniently hard-code them
+ in the tests (e.g. ``np.testing.assert_allclose(x, [1, 2, 3])``).
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
@@ -38,21 +38,15 @@
requires `pytest <http://pytest.org>`__ and
`numpy <http://www.numpy.org>`__ to be installed.
- To install, you can do:
-
- ::
+ To install, you can do::
pip install pytest-arraydiff
- You can check that the plugin is registered with pytest by doing:
-
- ::
+ You can check that the plugin is registered with pytest by doing::
py.test --version
- which will show a list of plugins:
-
- ::
+ which will show a list of plugins::
This is pytest version 2.7.1, imported from ...
setuptools registered plugins:
@@ -63,9 +57,7 @@
To use, you simply need to mark the function where you want to compare
arrays using ``@pytest.mark.array_compare``, and make sure that the
- function returns a plain Numpy array:
-
- ::
+ function returns a plain Numpy array::
python
import pytest
@@ -77,9 +69,7 @@
To generate the reference data files, run the tests with the
``--arraydiff-generate-path`` option with the name of the directory
- where the generated files should be placed:
-
- ::
+ where the generated files should be placed::
py.test --arraydiff-generate-path=reference
@@ -93,9 +83,7 @@
name is configurable, see below). You can also generate the baseline
arrays directly in the right directory.
- You can then run the tests simply with:
-
- ::
+ You can then run the tests simply with::
py.test --arraydiff
@@ -161,9 +149,7 @@
end in a slash).
Finally, you can also set a custom baseline directory globally when
- running tests by running ``py.test`` with:
-
- ::
+ running tests by running ``py.test`` with::
py.test --arraydiff --arraydiff-reference-path=baseline_arrays
@@ -177,9 +163,7 @@
If the arrays produced by the tests are correct, then the test will
pass, but if they are not, the test will fail with a message similar to
- the following:
-
- ::
+ the following::
E AssertionError:
E
@@ -203,9 +187,7 @@
--------------------------------------
If you are contributing some changes and want to run the tests, first
- install the latest version of the plugin then do:
-
- ::
+ install the latest version of the plugin then do::
cd tests
py.test --arraydiff
@@ -215,10 +197,10 @@
.. |Travis Build Status| image::
https://travis-ci.org/astrofrog/pytest-arraydiff.svg?branch=master
:target: https://travis-ci.org/astrofrog/pytest-arraydiff
- .. |AppVeyor Build status| image::
https://ci.appveyor.com/api/projects/status/4hfoe954rxhgslsl/branch/master?svg=true
- :target: https://ci.appveyor.com/project/astrofrog/pytest-arraydiff
- .. |Coveralls coverage| image::
https://coveralls.io/repos/matplotlib/pytest-arraydiff/badge.svg
- :target: https://coveralls.io/r/matplotlib/pytest-arraydiff
+ .. |AppVeyor Build status| image::
https://ci.appveyor.com/api/projects/status/0nech6qgp8jlabjp/branch/master?svg=true
+ :target: https://ci.appveyor.com/project/astropy/pytest-arraydiff
+ .. |Coverage| image::
https://codecov.io/gh/astropy/pytest-arraydiff/branch/master/graph/badge.svg
+ :target: https://codecov.io/gh/astropy/pytest-arraydiff
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-arraydiff-0.2/pytest_arraydiff.egg-info/SOURCES.txt
new/pytest-arraydiff-0.3/pytest_arraydiff.egg-info/SOURCES.txt
--- old/pytest-arraydiff-0.2/pytest_arraydiff.egg-info/SOURCES.txt
2018-01-29 11:17:54.000000000 +0100
+++ new/pytest-arraydiff-0.3/pytest_arraydiff.egg-info/SOURCES.txt
2018-12-06 05:30:04.000000000 +0100
@@ -9,6 +9,7 @@
pytest_arraydiff.egg-info/SOURCES.txt
pytest_arraydiff.egg-info/dependency_links.txt
pytest_arraydiff.egg-info/entry_points.txt
+pytest_arraydiff.egg-info/not-zip-safe
pytest_arraydiff.egg-info/requires.txt
pytest_arraydiff.egg-info/top_level.txt
tests/test_pytest_arraydiff.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-arraydiff-0.2/pytest_arraydiff.egg-info/not-zip-safe
new/pytest-arraydiff-0.3/pytest_arraydiff.egg-info/not-zip-safe
--- old/pytest-arraydiff-0.2/pytest_arraydiff.egg-info/not-zip-safe
1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-arraydiff-0.3/pytest_arraydiff.egg-info/not-zip-safe
2018-12-06 05:30:04.000000000 +0100
@@ -0,0 +1 @@
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-arraydiff-0.2/setup.cfg
new/pytest-arraydiff-0.3/setup.cfg
--- old/pytest-arraydiff-0.2/setup.cfg 2018-01-29 11:17:54.000000000 +0100
+++ new/pytest-arraydiff-0.3/setup.cfg 2018-12-06 05:30:04.000000000 +0100
@@ -1,5 +1,4 @@
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-arraydiff-0.2/setup.py
new/pytest-arraydiff-0.3/setup.py
--- old/pytest-arraydiff-0.2/setup.py 2018-01-29 09:47:37.000000000 +0100
+++ new/pytest-arraydiff-0.3/setup.py 2018-12-05 19:49:54.000000000 +0100
@@ -22,6 +22,7 @@
author='Thomas Robitaille',
author_email='[email protected]',
entry_points={'pytest11': ['pytest_arraydiff = pytest_arraydiff.plugin']},
+ zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Pytest',