Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pypet for openSUSE:Factory checked in at 2023-06-20 16:48:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pypet (Old) and /work/SRC/openSUSE:Factory/.python-pypet.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pypet" Tue Jun 20 16:48:50 2023 rev:8 rq:1093848 version:0.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pypet/python-pypet.changes 2023-02-14 16:48:04.895384714 +0100 +++ /work/SRC/openSUSE:Factory/.python-pypet.new.15902/python-pypet.changes 2023-06-20 16:48:59.079587258 +0200 @@ -1,0 +2,9 @@ +Tue Jun 20 02:03:34 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 0.6.1: + * Support for NumPy >= 1.20 +- Drop patch support-numpy-1.20.patch, included upstream. +- Add patch do-not-decode-int.patch, do not call .decode() on ints + when storing them. + +------------------------------------------------------------------- Old: ---- pypet-0.6.0.tar.gz support-numpy-1.20.patch New: ---- do-not-decode-int.patch pypet-0.6.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pypet.spec ++++++ --- /var/tmp/diff_new_pack.922vEs/_old 2023-06-20 16:49:00.187593917 +0200 +++ /var/tmp/diff_new_pack.922vEs/_new 2023-06-20 16:49:00.195593965 +0200 @@ -18,16 +18,19 @@ %bcond_without test Name: python-pypet -Version: 0.6.0 +Version: 0.6.1 Release: 0 Summary: Parameter exploration and storage of results for numerical simulations License: BSD-3-Clause URL: https://github.com/SmokinCaterpillar/pypet Source: https://files.pythonhosted.org/packages/source/p/pypet/pypet-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#SmokinCaterpillar/pypet#65 -Patch0: support-numpy-1.20.patch +# PATCH-FIX-OPENSUSE Do not call decode() on objects that do not have that +# method +Patch0: do-not-decode-int.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} @@ -62,11 +65,11 @@ %build export LANG=en_US.UTF-8 -%python_build +%pyproject_wheel %install export LANG=en_US.UTF-8 -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} @@ -81,6 +84,7 @@ %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pypet +%{python_sitelib}/pypet-%{version}.dist-info %changelog ++++++ do-not-decode-int.patch ++++++ Index: pypet-0.6.1/pypet/storageservice.py =================================================================== --- pypet-0.6.1.orig/pypet/storageservice.py +++ pypet-0.6.1/pypet/storageservice.py @@ -3175,7 +3175,8 @@ class HDF5StorageService(StorageService, # in the list or tuple for idx, item in enumerate(data): if typestr == str.__name__: - data[idx] = data[idx].decode(self._encoding) + if hasattr(data[idx], "decode"): + data[idx] = data[idx].decode(self._encoding) else: try: data[idx] = pypetconstants.PARAMETERTYPEDICT[typestr](item) ++++++ pypet-0.6.0.tar.gz -> pypet-0.6.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/LICENSE new/pypet-0.6.1/LICENSE --- old/pypet-0.6.0/LICENSE 2021-05-25 18:54:17.000000000 +0200 +++ new/pypet-0.6.1/LICENSE 2023-02-14 15:56:51.000000000 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2013-2021, Robert Meyer +Copyright (c) 2013-2023, Robert Meyer All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/PKG-INFO new/pypet-0.6.1/PKG-INFO --- old/pypet-0.6.0/PKG-INFO 2021-09-11 19:51:17.615159300 +0200 +++ new/pypet-0.6.1/PKG-INFO 2023-02-14 16:19:41.420334000 +0100 @@ -1,13 +1,11 @@ -Metadata-Version: 1.2 +Metadata-Version: 2.1 Name: pypet -Version: 0.6.0 +Version: 0.6.1 Summary: A toolkit for numerical simulations to allow easy parameter exploration and storage of results. Home-page: https://github.com/SmokinCaterpillar/pypet Author: Robert Meyer Author-email: robert.me...@alcemy.tech License: BSD -Description: A toolkit for numerical simulations to allow easy parameter exploration and storage of results. -Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 @@ -19,3 +17,6 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Topic :: Utilities Requires-Python: >=3.6 +License-File: LICENSE + +A toolkit for numerical simulations to allow easy parameter exploration and storage of results. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/README.md new/pypet-0.6.1/README.md --- old/pypet-0.6.0/README.md 2021-09-11 19:40:54.000000000 +0200 +++ new/pypet-0.6.1/README.md 2023-02-14 15:56:51.000000000 +0100 @@ -1,7 +1,6 @@ # pypet -[](https://travis-ci.com/SmokinCaterpillar/pypet) -[](https://ci.appveyor.com/project/SmokinCaterpillar/pypet/branch/master) +[](https://github.com/SmokinCaterpillar/pypet/actions/workflows/tests.yml) [](https://coveralls.io/github/SmokinCaterpillar/pypet?branch=master) [](https://www.codacy.com/gh/SmokinCaterpillar/pypet/dashboard?utm_source=github.com&utm_medium=referral&utm_content=SmokinCaterpillar/pypet&utm_campaign=Badge_Grade) [](https://badge.fury.io/py/pypet) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/pypet/_version.py new/pypet-0.6.1/pypet/_version.py --- old/pypet-0.6.0/pypet/_version.py 2021-09-11 19:41:00.000000000 +0200 +++ new/pypet-0.6.1/pypet/_version.py 2023-02-14 15:56:51.000000000 +0100 @@ -1 +1 @@ -__version__ = '0.6.0' +__version__ = '0.6.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/pypet/parameter.py new/pypet-0.6.1/pypet/parameter.py --- old/pypet-0.6.0/pypet/parameter.py 2021-09-11 19:40:54.000000000 +0200 +++ new/pypet-0.6.1/pypet/parameter.py 2023-02-14 15:56:51.000000000 +0100 @@ -894,8 +894,8 @@ # Numpy has many string types that depend on the length of the string, # We allow all of them dtype = data.dtype - if np.issubdtype(dtype, np.str): - dtype = np.str + if np.issubdtype(dtype, str): + dtype = str return dtype in pypetconstants.PARAMETER_SUPPORTED_DATA diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/pypet/pypetconstants.py new/pypet-0.6.1/pypet/pypetconstants.py --- old/pypet-0.6.0/pypet/pypetconstants.py 2020-05-26 21:13:01.000000000 +0200 +++ new/pypet-0.6.1/pypet/pypetconstants.py 2023-02-14 15:56:51.000000000 +0100 @@ -105,23 +105,22 @@ numpy.int16, numpy.int32, numpy.int64, - numpy.int, numpy.int_, - numpy.long, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64, - numpy.bool, numpy.bool_, numpy.float32, numpy.float64, - numpy.float, numpy.float_, numpy.complex64, - numpy.complex, numpy.complex_, numpy.str_, + bool, + int, + complex, + float, str, bytes) """Set of supported scalar types by the storage service and the standard parameter""" @@ -329,4 +328,4 @@ """Wildcard replaced by the name of the current run set""" DEFAULT_LOGGING = 'DEFAULT' -"""Default logging configuration""" \ No newline at end of file +"""Default logging configuration""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/pypet/tests/integration/shared_data_test.py new/pypet-0.6.1/pypet/tests/integration/shared_data_test.py --- old/pypet-0.6.0/pypet/tests/integration/shared_data_test.py 2020-05-26 21:13:01.000000000 +0200 +++ new/pypet-0.6.1/pypet/tests/integration/shared_data_test.py 2023-02-14 15:56:51.000000000 +0100 @@ -172,7 +172,7 @@ def add_array_params(self, traj): length = len(traj) - da_data = np.zeros(length, dtype=np.int) + da_data = np.zeros(length, dtype=int) traj.f_store(only_init=True) traj.f_add_result(SharedResult, 'daarrays.a', SharedArray()).create_shared_data(obj=da_data) traj.f_add_result(SharedResult, 'daarrays.ca', SharedCArray()).create_shared_data( obj=da_data) @@ -459,4 +459,4 @@ if __name__ == '__main__': opt_args = parse_args() - run_suite(**opt_args) \ No newline at end of file + run_suite(**opt_args) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/pypet/tests/testutils/data.py new/pypet-0.6.1/pypet/tests/testutils/data.py --- old/pypet-0.6.0/pypet/tests/testutils/data.py 2020-05-26 21:13:01.000000000 +0200 +++ new/pypet-0.6.1/pypet/tests/testutils/data.py 2023-02-14 15:56:51.000000000 +0100 @@ -118,7 +118,7 @@ traj.f_add_derived_parameter('Another.crun.String2', 'Really, again?', comment='test4') - traj.f_add_result('Peter_Jackson',np.str(['is','full','of','suboptimal ideas']), + traj.f_add_result('Peter_Jackson', 'is full of suboptimal ideas', comment='Only my opinion bro!',) traj.results.f_add_leaf('Test', 42, comment='NC') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/pypet/tests/unittests/shared_data_test.py new/pypet-0.6.1/pypet/tests/unittests/shared_data_test.py --- old/pypet-0.6.0/pypet/tests/unittests/shared_data_test.py 2020-05-26 21:13:01.000000000 +0200 +++ new/pypet-0.6.1/pypet/tests/unittests/shared_data_test.py 2023-02-14 15:56:51.000000000 +0100 @@ -267,7 +267,7 @@ traj = Trajectory(name=make_trajectory_name(self), filename=filename) trajname = traj.v_name - npearray = np.ones((2, 10, 3), dtype=np.float) + npearray = np.ones((2, 10, 3), dtype=float) thevlarray = np.array(['j'.encode('utf-8'), 22.2, 'gutter'.encode('utf-8')]) traj.f_store(only_init=True) res = traj.f_add_result(SharedResult, 'arrays') @@ -345,7 +345,7 @@ filename = make_temp_dir('hdf5errors.hdf5') traj = Trajectory(name=make_trajectory_name(self), filename=filename) - npearray = np.ones((2, 10, 3), dtype=np.float) + npearray = np.ones((2, 10, 3), dtype=float) thevlarray = np.array(['j'.encode('utf-8'), 22.2, 'gutter'.encode('utf-8')]) with self.assertRaises(TypeError): @@ -979,4 +979,4 @@ if __name__ == '__main__': opt_args = parse_args() - run_suite(**opt_args) \ No newline at end of file + run_suite(**opt_args) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pypet-0.6.0/pypet.egg-info/PKG-INFO new/pypet-0.6.1/pypet.egg-info/PKG-INFO --- old/pypet-0.6.0/pypet.egg-info/PKG-INFO 2021-09-11 19:51:17.000000000 +0200 +++ new/pypet-0.6.1/pypet.egg-info/PKG-INFO 2023-02-14 16:19:41.000000000 +0100 @@ -1,13 +1,11 @@ -Metadata-Version: 1.2 +Metadata-Version: 2.1 Name: pypet -Version: 0.6.0 +Version: 0.6.1 Summary: A toolkit for numerical simulations to allow easy parameter exploration and storage of results. Home-page: https://github.com/SmokinCaterpillar/pypet Author: Robert Meyer Author-email: robert.me...@alcemy.tech License: BSD -Description: A toolkit for numerical simulations to allow easy parameter exploration and storage of results. -Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 @@ -19,3 +17,6 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Topic :: Utilities Requires-Python: >=3.6 +License-File: LICENSE + +A toolkit for numerical simulations to allow easy parameter exploration and storage of results.