Hello community, here is the log from the commit of package python-prompt_toolkit1 for openSUSE:Factory checked in at 2020-01-16 18:19:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-prompt_toolkit1 (Old) and /work/SRC/openSUSE:Factory/.python-prompt_toolkit1.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-prompt_toolkit1" Thu Jan 16 18:19:09 2020 rev:2 rq:761626 version:1.0.18 Changes: -------- --- /work/SRC/openSUSE:Factory/python-prompt_toolkit1/python-prompt_toolkit1.changes 2018-10-02 19:47:49.437805917 +0200 +++ /work/SRC/openSUSE:Factory/.python-prompt_toolkit1.new.26092/python-prompt_toolkit1.changes 2020-01-16 18:19:13.908906627 +0100 @@ -1,0 +2,12 @@ +Tue Jan 7 14:41:21 UTC 2020 - Ondřej Súkup <mimi...@gmail.com> + +- disabled test_with_style (gh#1046) + +------------------------------------------------------------------- +Wed Dec 18 12:58:21 UTC 2019 - Ondřej Súkup <mimi...@gmail.com> + +- update to 1.0.18 + * Handle HANDLE sizes correctly on windows + * Fixes DeprecationWarning when trying to import collections.Mapping + +------------------------------------------------------------------- Old: ---- prompt_toolkit-1.0.15.tar.gz New: ---- prompt_toolkit-1.0.18.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-prompt_toolkit1.spec ++++++ --- /var/tmp/diff_new_pack.uTDvSu/_old 2020-01-16 18:19:15.020907256 +0100 +++ /var/tmp/diff_new_pack.uTDvSu/_new 2020-01-16 18:19:15.020907256 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-prompt_toolkit1 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # 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/ # @@ -20,7 +20,7 @@ %define oldpython python %bcond_without test Name: python-prompt_toolkit1 -Version: 1.0.15 +Version: 1.0.18 Release: 0 Summary: Library for building interactive command lines in Python License: BSD-3-Clause @@ -63,9 +63,8 @@ %if %{with test} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} -} +# https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1046 +%pytest -k "not test_with_style" %endif %files %{python_files} ++++++ prompt_toolkit-1.0.15.tar.gz -> prompt_toolkit-1.0.18.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/CHANGELOG new/prompt_toolkit-1.0.18/CHANGELOG --- old/prompt_toolkit-1.0.15/CHANGELOG 2017-07-27 12:03:08.000000000 +0200 +++ new/prompt_toolkit-1.0.18/CHANGELOG 2019-10-03 22:12:57.000000000 +0200 @@ -1,6 +1,29 @@ CHANGELOG ========= +1.0.18: 2019-10-03 +------------------ + +Fixes: +- The 1.0.17 build contained files from the 2.0 branch and was broken because + of this. + + +1.0.17: 2019-10-03 +------------------ + +Bug fixes: +- Handle HANDLE sizes correctly on windows. This made things break randomly on + 64 bit systems. + + +1.0.16: 2019-04-12 +------------------ + +Fixes: +- Fixes DeprecationWarning when trying to import collections.Mapping. + + 1.0.15: 2017-07-27 ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/PKG-INFO new/prompt_toolkit-1.0.18/PKG-INFO --- old/prompt_toolkit-1.0.15/PKG-INFO 2017-07-27 12:08:26.000000000 +0200 +++ new/prompt_toolkit-1.0.18/PKG-INFO 2019-10-03 22:13:49.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: prompt_toolkit -Version: 1.0.15 +Version: 1.0.18 Summary: Library for building powerful interactive command lines in Python Home-page: https://github.com/jonathanslenders/python-prompt-toolkit Author: Jonathan Slenders diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/prompt_toolkit/__init__.py new/prompt_toolkit-1.0.18/prompt_toolkit/__init__.py --- old/prompt_toolkit-1.0.15/prompt_toolkit/__init__.py 2017-07-27 12:03:23.000000000 +0200 +++ new/prompt_toolkit-1.0.18/prompt_toolkit/__init__.py 2019-10-03 22:12:09.000000000 +0200 @@ -19,4 +19,4 @@ # Don't forget to update in `docs/conf.py`! -__version__ = '1.0.15' +__version__ = '1.0.18' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/prompt_toolkit/eventloop/win32.py new/prompt_toolkit-1.0.18/prompt_toolkit/eventloop/win32.py --- old/prompt_toolkit-1.0.15/prompt_toolkit/eventloop/win32.py 2017-07-26 17:11:12.000000000 +0200 +++ new/prompt_toolkit-1.0.18/prompt_toolkit/eventloop/win32.py 2019-10-03 22:11:38.000000000 +0200 @@ -36,7 +36,7 @@ def __init__(self, inputhook=None, recognize_paste=True): assert inputhook is None or callable(inputhook) - self._event = _create_event() + self._event = HANDLE(_create_event()) self._console_input_reader = ConsoleInputReader(recognize_paste=recognize_paste) self._calls_from_executor = [] @@ -74,14 +74,14 @@ # Wait for the next event. handle = self._ready_for_reading(remaining_timeout) - if handle == self._console_input_reader.handle: + if handle == self._console_input_reader.handle.value: # When stdin is ready, read input and reset timeout timer. keys = self._console_input_reader.read() for k in keys: callbacks.feed_key(k) current_timeout = INPUT_TIMEOUT_MS - elif handle == self._event: + elif handle == self._event.value: # When the Windows Event has been trigger, process the messages in the queue. windll.kernel32.ResetEvent(self._event) self._process_queued_calls_from_executor() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/prompt_toolkit/styles/from_dict.py new/prompt_toolkit-1.0.18/prompt_toolkit/styles/from_dict.py --- old/prompt_toolkit-1.0.15/prompt_toolkit/styles/from_dict.py 2017-07-26 17:11:12.000000000 +0200 +++ new/prompt_toolkit-1.0.18/prompt_toolkit/styles/from_dict.py 2019-10-03 22:11:38.000000000 +0200 @@ -6,7 +6,10 @@ - Support for ANSI color names. (These will map directly to the 16 terminal colors.) """ -from collections import Mapping +try: + from collections.abc import Mapping +except ImportError: + from collections import Mapping from .base import Style, DEFAULT_ATTRS, ANSI_COLOR_NAMES from .defaults import DEFAULT_STYLE_EXTENSIONS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/prompt_toolkit/terminal/win32_input.py new/prompt_toolkit-1.0.18/prompt_toolkit/terminal/win32_input.py --- old/prompt_toolkit-1.0.15/prompt_toolkit/terminal/win32_input.py 2017-07-26 17:11:12.000000000 +0200 +++ new/prompt_toolkit-1.0.18/prompt_toolkit/terminal/win32_input.py 2019-10-03 22:11:38.000000000 +0200 @@ -1,6 +1,6 @@ from __future__ import unicode_literals from ctypes import windll, pointer -from ctypes.wintypes import DWORD +from ctypes.wintypes import DWORD, HANDLE from six.moves import range from prompt_toolkit.key_binding.input_processor import KeyPress @@ -111,10 +111,10 @@ # When stdin is a tty, use that handle, otherwise, create a handle from # CONIN$. if sys.stdin.isatty(): - self.handle = windll.kernel32.GetStdHandle(STD_INPUT_HANDLE) + self.handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) else: self._fdcon = os.open('CONIN$', os.O_RDWR | os.O_BINARY) - self.handle = msvcrt.get_osfhandle(self._fdcon) + self.handle = HANDLE(msvcrt.get_osfhandle(self._fdcon)) def close(self): " Close fdcon. " @@ -321,7 +321,7 @@ `raw_input` method of `.vt100_input`. """ def __init__(self, fileno=None): - self.handle = windll.kernel32.GetStdHandle(STD_INPUT_HANDLE) + self.handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) def __enter__(self): # Remember original mode. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/prompt_toolkit/terminal/win32_output.py new/prompt_toolkit-1.0.18/prompt_toolkit/terminal/win32_output.py --- old/prompt_toolkit-1.0.15/prompt_toolkit/terminal/win32_output.py 2017-07-26 17:11:12.000000000 +0200 +++ new/prompt_toolkit-1.0.18/prompt_toolkit/terminal/win32_output.py 2019-10-03 22:11:38.000000000 +0200 @@ -1,7 +1,7 @@ from __future__ import unicode_literals from ctypes import windll, byref, ArgumentError, c_char, c_long, c_ulong, c_uint, pointer -from ctypes.wintypes import DWORD +from ctypes.wintypes import DWORD, HANDLE from prompt_toolkit.renderer import Output from prompt_toolkit.styles import ANSI_COLOR_NAMES @@ -70,7 +70,7 @@ self._buffer = [] self.stdout = stdout - self.hconsole = windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE) + self.hconsole = HANDLE(windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE)) self._in_alternate_screen = False @@ -346,8 +346,8 @@ GENERIC_WRITE = 0x40000000 # Create a new console buffer and activate that one. - handle = self._winapi(windll.kernel32.CreateConsoleScreenBuffer, GENERIC_READ|GENERIC_WRITE, - DWORD(0), None, DWORD(1), None) + handle = HANDLE(self._winapi(windll.kernel32.CreateConsoleScreenBuffer, GENERIC_READ|GENERIC_WRITE, + DWORD(0), None, DWORD(1), None)) self._winapi(windll.kernel32.SetConsoleActiveScreenBuffer, handle) self.hconsole = handle @@ -358,7 +358,7 @@ Make stdout again the active buffer. """ if self._in_alternate_screen: - stdout = self._winapi(windll.kernel32.GetStdHandle, STD_OUTPUT_HANDLE) + stdout = HANDLE(self._winapi(windll.kernel32.GetStdHandle, STD_OUTPUT_HANDLE)) self._winapi(windll.kernel32.SetConsoleActiveScreenBuffer, stdout) self._winapi(windll.kernel32.CloseHandle, self.hconsole) self.hconsole = stdout @@ -366,7 +366,7 @@ def enable_mouse_support(self): ENABLE_MOUSE_INPUT = 0x10 - handle = windll.kernel32.GetStdHandle(STD_INPUT_HANDLE) + handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) original_mode = DWORD() self._winapi(windll.kernel32.GetConsoleMode, handle, pointer(original_mode)) @@ -374,7 +374,7 @@ def disable_mouse_support(self): ENABLE_MOUSE_INPUT = 0x10 - handle = windll.kernel32.GetStdHandle(STD_INPUT_HANDLE) + handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) original_mode = DWORD() self._winapi(windll.kernel32.GetConsoleMode, handle, pointer(original_mode)) @@ -396,7 +396,7 @@ to a bug in the Windows Console. Sending a repaint request solves it. """ # Get console handle - handle = windll.kernel32.GetConsoleWindow() + handle = HANDLE(windll.kernel32.GetConsoleWindow()) RDW_INVALIDATE = 0x0001 windll.user32.RedrawWindow(handle, None, None, c_uint(RDW_INVALIDATE)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prompt_toolkit-1.0.15/prompt_toolkit.egg-info/PKG-INFO new/prompt_toolkit-1.0.18/prompt_toolkit.egg-info/PKG-INFO --- old/prompt_toolkit-1.0.15/prompt_toolkit.egg-info/PKG-INFO 2017-07-27 12:08:26.000000000 +0200 +++ new/prompt_toolkit-1.0.18/prompt_toolkit.egg-info/PKG-INFO 2019-10-03 22:13:49.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: prompt-toolkit -Version: 1.0.15 +Version: 1.0.18 Summary: Library for building powerful interactive command lines in Python Home-page: https://github.com/jonathanslenders/python-prompt-toolkit Author: Jonathan Slenders