Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-vncdotool for openSUSE:Factory checked in at 2023-01-14 00:02:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-vncdotool (Old) and /work/SRC/openSUSE:Factory/.python-vncdotool.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-vncdotool" Sat Jan 14 00:02:23 2023 rev:5 rq:1057971 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-vncdotool/python-vncdotool.changes 2022-05-06 18:58:59.249333517 +0200 +++ /work/SRC/openSUSE:Factory/.python-vncdotool.new.32243/python-vncdotool.changes 2023-01-14 00:02:30.561463327 +0100 @@ -1,0 +2,6 @@ +Thu Jan 12 11:44:38 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add py311-compat.patch to make it compatible with python 3.11 + gh#python/cpython#88852 + +------------------------------------------------------------------- New: ---- py311-compat.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-vncdotool.spec ++++++ --- /var/tmp/diff_new_pack.YdYQfM/_old 2023-01-14 00:02:32.045471971 +0100 +++ /var/tmp/diff_new_pack.YdYQfM/_new 2023-01-14 00:02:32.061472065 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-vncdotool # -# Copyright (c) 2022 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,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-vncdotool Version: 1.0.0 @@ -29,6 +28,8 @@ Patch1: fix-mocking.patch # https://github.com/sibson/vncdotool/issues/218 Patch2: python-vncdotool-no-mock.patch +# gh#python/cpython#88852 +Patch3: py311-compat.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -81,6 +82,7 @@ %python_alternative %{_bindir}/vncdo %python_alternative %{_bindir}/vncdotool %python_alternative %{_bindir}/vnclog -%{python_sitelib}/* +%{python_sitelib}/vncdotool +%{python_sitelib}/vncdotool-%{version}*-info %changelog ++++++ py311-compat.patch ++++++ Index: vncdotool-1.0.0/tests/unit/helpers.py =================================================================== --- vncdotool-1.0.0.orig/tests/unit/helpers.py +++ vncdotool-1.0.0/tests/unit/helpers.py @@ -1,5 +1,7 @@ import sys -from unittest.mock import Mock, _importer +import pkgutil +from unittest.mock import Mock + from functools import wraps class _isolate(object): @@ -102,7 +104,7 @@ def isolate(target, excludes=None): ``isolate`` borrows heavily from DingusTestCase. """ - target = _importer(target) + target = pkgutil.resolve_name(target) return _isolate(target, excludes)