Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-aexpect for openSUSE:Factory checked in at 2021-08-18 08:56:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-aexpect (Old) and /work/SRC/openSUSE:Factory/.python-aexpect.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aexpect" Wed Aug 18 08:56:00 2021 rev:3 rq:912370 version:1.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-aexpect/python-aexpect.changes 2018-07-28 12:45:06.972958735 +0200 +++ /work/SRC/openSUSE:Factory/.python-aexpect.new.1899/python-aexpect.changes 2021-08-18 08:56:49.246910786 +0200 @@ -1,0 +2,10 @@ +Mon Aug 16 08:53:00 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 1.6.2: + * No changelog available +- Add patch helper-version-in-cmdline.patch: + * Always call the correct version of the helper script. +- Drop {Build,}Requires on Python 3 subprocess backport module. +- Switch to pytest, and skip two truculent tests + +------------------------------------------------------------------- Old: ---- aexpect-1.5.1.tar.gz New: ---- aexpect-1.6.2.tar.gz helper-version-in-cmdline.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-aexpect.spec ++++++ --- /var/tmp/diff_new_pack.dNYBgn/_old 2021-08-18 08:56:49.658910301 +0200 +++ /var/tmp/diff_new_pack.dNYBgn/_new 2021-08-18 08:56:49.662910297 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python-aexpect +# spec file # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,31 +12,29 @@ # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 %global pkgname aexpect Name: python-%{pkgname} -Version: 1.5.1 +Version: 1.6.2 Release: 0 Summary: Python library to control interactive applications License: GPL-2.0-only -Group: Development/Languages/Python URL: http://avocado-framework.readthedocs.org/ Source: https://github.com/avocado-framework/aexpect/archive/%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz +Patch0: helper-version-in-cmdline.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-subprocess32 >= 3.2.6 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch -%ifpython2 -Requires: python2-subprocess32 >= 3.2.6 -%endif %python_subpackages %description @@ -46,29 +44,30 @@ %prep %setup -q -n %{pkgname}-%{version} +%autopatch -p1 %build %python_build %install %python_install -%python_clone -a %{buildroot}%{_bindir}/aexpect-helper +%python_clone -a %{buildroot}%{_bindir}/aexpect_helper %fdupes %{buildroot} %check export PATH=$PATH:%{buildroot}%{_bindir} -%python_exec setup.py test +%pytest -k 'not pass_fds_spawn and not share_remote_objects' %post -%python_install_alternative aexpect-helper +%python_install_alternative aexpect_helper %postun -%python_uninstall_alternative aexpect-helper +%python_uninstall_alternative aexpect_helper %files %{python_files} %license LICENSE %doc README.rst -%python_alternative %{_bindir}/aexpect-helper +%python_alternative %{_bindir}/aexpect_helper %{python_sitelib}/* %changelog ++++++ aexpect-1.5.1.tar.gz -> aexpect-1.6.2.tar.gz ++++++ ++++ 4778 lines of diff (skipped) ++++++ helper-version-in-cmdline.patch ++++++ Index: aexpect-1.6.2/aexpect/client.py =================================================================== --- aexpect-1.6.2.orig/aexpect/client.py +++ aexpect-1.6.2/aexpect/client.py @@ -25,6 +25,7 @@ import threading import shutil import select import subprocess +import sys import locale import logging @@ -178,7 +179,8 @@ class Spawn(object): # Start the server (which runs the command) if command: - helper_cmd = utils_path.find_command('aexpect_helper') + minor = sys.version_info.minor + helper_cmd = utils_path.find_command('aexpect_helper-3.%s' % minor) self._aexpect_helper = subprocess.Popen([helper_cmd], # pylint: disable=R1732 shell=True, stdin=subprocess.PIPE,