Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ana for openSUSE:Factory checked in at 2023-01-25 17:44:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ana (Old) and /work/SRC/openSUSE:Factory/.python-ana.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ana" Wed Jan 25 17:44:08 2023 rev:6 rq:1060866 version:0.06 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ana/python-ana.changes 2020-03-25 23:49:18.840036170 +0100 +++ /work/SRC/openSUSE:Factory/.python-ana.new.32243/python-ana.changes 2023-01-25 17:54:05.087557356 +0100 @@ -1,0 +2,10 @@ +Wed Jan 25 11:30:57 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Make package compatible with python3.6 + +------------------------------------------------------------------- +Wed Jan 25 10:50:32 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add fix-tests.patch to fix tests with python3.11 gh#zardus/ana#15 + +------------------------------------------------------------------- New: ---- fix-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ana.spec ++++++ --- /var/tmp/diff_new_pack.Gwrb23/_old 2023-01-25 17:54:05.683560537 +0100 +++ /var/tmp/diff_new_pack.Gwrb23/_new 2023-01-25 17:54:05.691560580 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-ana # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define internal_version 0.6 Name: python-ana Version: 0.06 Release: 0 @@ -30,6 +30,8 @@ Source3: https://raw.githubusercontent.com/zardus/ana/master/test_pickle.p # https://github.com/zardus/ana/pull/14 Patch0: use_unittest.patch +# https://github.com/zardus/ana/pull/15 +Patch1: fix-tests.patch BuildRequires: %{python_module future} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -46,6 +48,7 @@ [ -e test.py ] || cp %{SOURCE2} test.py [ -e test_pickle.p ] || cp %{SOURCE3} test_pickle.p %patch0 +%patch1 -p1 %build %python_build @@ -60,6 +63,11 @@ %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/ana +%if %python_version_nodots < 38 +%{python_sitelib}/ana-%{version}*-info +%else +%{python_sitelib}/ana-%{internal_version}*-info +%endif %changelog ++++++ fix-tests.patch ++++++ >From b8338bc7a6517a57ddd1537490be8b7023617104 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno <daniel.gar...@suse.com> Date: Wed, 25 Jan 2023 11:01:30 +0100 Subject: [PATCH] Fix tests: Do not test different id in test_dir Looks like the python interpreter uses the same id if it's available, so this test fails randomly, depending on memory management. ".../ana-0.06/test.py", line 113, in test_dir self.assertNotEqual(old_id, id(two)) AssertionError: 140642905866320 == 140642905866320 This patch just removes the check because we cannot be sure that they are different. --- test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test.py b/test.py index 8c5f9ee..1250c34 100644 --- a/test.py +++ b/test.py @@ -110,7 +110,6 @@ def test_dir(self): ana.dl = ana.DirDataLayer(pickle_dir="/tmp/test_ana") two = A.ana_load(uuid) self.assertEquals(uuid, two.ana_uuid) - self.assertNotEqual(old_id, id(two)) # reset the datalayer to make sure we handle it properly ana.set_dl(ana.DictDataLayer())