Hello community, here is the log from the commit of package python-lazyarray for openSUSE:Leap:15.2 checked in at 2020-03-09 18:07:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-lazyarray (Old) and /work/SRC/openSUSE:Leap:15.2/.python-lazyarray.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-lazyarray" Mon Mar 9 18:07:33 2020 rev:3 rq:776732 version:0.3.3 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-lazyarray/python-lazyarray.changes 2020-01-15 15:49:52.351475100 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-lazyarray.new.26092/python-lazyarray.changes 2020-03-09 18:07:33.560882860 +0100 @@ -1,0 +2,6 @@ +Tue Jul 23 20:31:05 UTC 2019 - Todd R <[email protected]> + +- Update to 0.3.3 + * Do not raise a "shape mismatch" `ValueError` if the value shape is empty. + +------------------------------------------------------------------- Old: ---- lazyarray-0.3.2.tar.gz New: ---- lazyarray-0.3.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-lazyarray.spec ++++++ --- /var/tmp/diff_new_pack.fTjjv3/_old 2020-03-09 18:07:34.048883102 +0100 +++ /var/tmp/diff_new_pack.fTjjv3/_new 2020-03-09 18:07:34.056883106 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-lazyarray # -# 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 @@ -17,25 +17,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-lazyarray -Version: 0.3.2 +Version: 0.3.3 Release: 0 Summary: Lazily-evaluated numerical array class, compatible with NumPy arrays License: BSD-3-Clause Group: Development/Languages/Python Url: http://github.com/NeuralEnsemble/lazyarray/ Source: https://files.pythonhosted.org/packages/source/l/lazyarray/lazyarray-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} +# SECTION test requirements BuildRequires: %{python_module nose} -BuildRequires: %{python_module numpy-devel >= 1.5} +BuildRequires: %{python_module numpy >= 1.5} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy} -%endif +# /SECTION Requires: python-numpy >= 1.5 BuildArch: noarch @@ -68,15 +66,10 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -pytest-%{$python_bin_suffix} -} -%endif +%pytest %files %{python_files} -%defattr(-,root,root,-) %doc README.rst changelog.txt %license LICENSE %{python_sitelib}/* ++++++ lazyarray-0.3.2.tar.gz -> lazyarray-0.3.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lazyarray-0.3.2/PKG-INFO new/lazyarray-0.3.3/PKG-INFO --- old/lazyarray-0.3.2/PKG-INFO 2017-10-06 15:59:30.000000000 +0200 +++ new/lazyarray-0.3.3/PKG-INFO 2019-05-13 13:49:08.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: lazyarray -Version: 0.3.2 +Version: 0.3.3 Summary: a Python package that provides a lazily-evaluated numerical array class, larray, based on and compatible with NumPy arrays. Home-page: http://github.com/NeuralEnsemble/lazyarray/ Author: Andrew P. Davison diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lazyarray-0.3.2/changelog.txt new/lazyarray-0.3.3/changelog.txt --- old/lazyarray-0.3.2/changelog.txt 2017-10-06 15:58:35.000000000 +0200 +++ new/lazyarray-0.3.3/changelog.txt 2019-05-13 13:45:05.000000000 +0200 @@ -93,6 +93,11 @@ * Ensure SciPy is optional +Release 0.3.3 +============= + +* Do not raise a "shape mismatch" `ValueError` if the value shape is empty. + .. _`#3`: https://bitbucket.org/apdavison/lazyarray/issue/3/ .. _`#4`: https://bitbucket.org/apdavison/lazyarray/issue/4/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lazyarray-0.3.2/doc/installation.txt new/lazyarray-0.3.3/doc/installation.txt --- old/lazyarray-0.3.2/doc/installation.txt 2017-10-06 15:58:35.000000000 +0200 +++ new/lazyarray-0.3.3/doc/installation.txt 2019-05-13 13:47:53.000000000 +0200 @@ -4,7 +4,7 @@ Dependencies ============ - + * Python >= 2.7 * numpy_ >= 1.8 (or >= 1.12 for Python 3) * (optional) scipy_ >= 0.14 @@ -15,24 +15,24 @@ If you have pip_ installed:: $ pip install lazyarray - + This will automatically download and install the latest release (you may need to have administrator privileges on the machine you are installing on). - + To download and install manually, download: - https://pypi.python.org/packages/source/l/lazyarray/lazyarray-0.3.2.tar.gz + https://pypi.python.org/packages/source/l/lazyarray/lazyarray-0.3.3.tar.gz Then:: - $ tar xzf lazyarray-0.3.2.tar.gz - $ cd lazyarray-0.3.2 + $ tar xzf lazyarray-0.3.3.tar.gz + $ cd lazyarray-0.3.3 $ python setup.py install - + or:: $ python3 setup.py install - + depending on which version of Python you are using. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lazyarray-0.3.2/lazyarray.py new/lazyarray-0.3.3/lazyarray.py --- old/lazyarray-0.3.2/lazyarray.py 2017-10-06 15:58:35.000000000 +0200 +++ new/lazyarray-0.3.3/lazyarray.py 2019-05-13 13:48:55.000000000 +0200 @@ -3,7 +3,7 @@ lazyarray is a Python package that provides a lazily-evaluated numerical array class, ``larray``, based on and compatible with NumPy arrays. -Copyright Andrew P. Davison, Joël Chavas and Elodie Legouée (CNRS), 2012-2017 +Copyright Andrew P. Davison, Joël Chavas and Elodie Legouée (CNRS), 2012-2019 """ from __future__ import division @@ -22,7 +22,7 @@ have_scipy = False -__version__ = "0.3.2" +__version__ = "0.3.3" # stuff for Python 3 compatibility try: @@ -51,7 +51,7 @@ """ @wraps(meth) def wrapped_meth(self, val): - if isinstance(val, (larray, numpy.ndarray)): + if isinstance(val, (larray, numpy.ndarray)) and val.shape: if val.shape != self._shape: raise ValueError("shape mismatch: objects cannot be broadcast to a single shape") return meth(self, val) @@ -160,7 +160,7 @@ - in parallelized code, different rows or columns may be evaluated on different nodes or in different threads. """ - + def __init__(self, value, shape=None, dtype=None): """ @@ -186,11 +186,11 @@ self.base_value = value.base_value self.dtype = dtype or value.dtype self.operations = value.operations # should deepcopy? - + elif isinstance(value, collections.Sized): # False for numbers, generators, functions, iterators if have_scipy and sparse.issparse(value): # For sparse matrices - self.dtype = dtype or value.dtype - elif not isinstance(value, numpy.ndarray): + self.dtype = dtype or value.dtype + elif not isinstance(value, numpy.ndarray): value = numpy.array(value, dtype=dtype) elif dtype is not None: assert numpy.can_cast(value.dtype, dtype, casting='safe') # or could convert value to the provided dtype @@ -198,7 +198,7 @@ raise ValueError("Array has shape %s, value has shape %s" % (shape, value.shape)) self._shape = value.shape self.base_value = value - + else: assert numpy.isreal(value) # also True for callables, generators, iterators self._shape = shape diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lazyarray-0.3.2/setup.py new/lazyarray-0.3.3/setup.py --- old/lazyarray-0.3.2/setup.py 2017-10-06 15:58:35.000000000 +0200 +++ new/lazyarray-0.3.3/setup.py 2019-05-13 13:46:09.000000000 +0200 @@ -4,7 +4,7 @@ setup( name='lazyarray', - version='0.3.2', + version='0.3.3', py_modules=['lazyarray'], license='Modified BSD', author="Andrew P. Davison",
