Hello community,

here is the log from the commit of package python-prompt_toolkit for 
openSUSE:Factory checked in at 2020-06-21 18:50:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-prompt_toolkit (Old)
 and      /work/SRC/openSUSE:Factory/.python-prompt_toolkit.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-prompt_toolkit"

Sun Jun 21 18:50:13 2020 rev:13 rq:813482 version:3.0.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-prompt_toolkit/python-prompt_toolkit.changes  
    2020-04-19 21:42:00.499182532 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-prompt_toolkit.new.3606/python-prompt_toolkit.changes
    2020-06-21 19:05:40.124863275 +0200
@@ -1,0 +2,6 @@
+Thu Jun 11 10:49:19 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Update to 3.0.5
+  * no notable changes
+
+-------------------------------------------------------------------

Old:
----
  prompt_toolkit-3.0.4.tar.gz

New:
----
  prompt_toolkit-3.0.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-prompt_toolkit.spec ++++++
--- /var/tmp/diff_new_pack.Ndb1OB/_old  2020-06-21 19:05:40.500864497 +0200
+++ /var/tmp/diff_new_pack.Ndb1OB/_new  2020-06-21 19:05:40.500864497 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-prompt_toolkit
-Version:        3.0.4
+Version:        3.0.5
 Release:        0
 Summary:        Library for building interactive command lines in Python
 License:        BSD-3-Clause

++++++ prompt_toolkit-3.0.4.tar.gz -> prompt_toolkit-3.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prompt_toolkit-3.0.4/CHANGELOG 
new/prompt_toolkit-3.0.5/CHANGELOG
--- old/prompt_toolkit-3.0.4/CHANGELOG  2020-03-06 07:54:16.000000000 +0100
+++ new/prompt_toolkit-3.0.5/CHANGELOG  2020-03-26 09:03:05.000000000 +0100
@@ -1,6 +1,12 @@
 CHANGELOG
 =========
 
+3.0.5: 2020-03-26
+-----------------
+
+Fixes:
+- Bugfix in mouse handling on Windows.
+
 3.0.4: 2020-03-06
 -----------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prompt_toolkit-3.0.4/PKG-INFO 
new/prompt_toolkit-3.0.5/PKG-INFO
--- old/prompt_toolkit-3.0.4/PKG-INFO   2020-03-06 08:01:01.103201600 +0100
+++ new/prompt_toolkit-3.0.5/PKG-INFO   2020-03-26 09:06:11.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: prompt_toolkit
-Version: 3.0.4
+Version: 3.0.5
 Summary: Library for building powerful interactive command lines in Python
 Home-page: https://github.com/prompt-toolkit/python-prompt-toolkit
 Author: Jonathan Slenders
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prompt_toolkit-3.0.4/docs/conf.py 
new/prompt_toolkit-3.0.5/docs/conf.py
--- old/prompt_toolkit-3.0.4/docs/conf.py       2020-03-06 07:54:16.000000000 
+0100
+++ new/prompt_toolkit-3.0.5/docs/conf.py       2020-03-26 09:03:38.000000000 
+0100
@@ -51,9 +51,9 @@
 # built documents.
 #
 # The short X.Y version.
-version = '3.0.4'
+version = '3.0.5'
 # The full version, including alpha/beta/rc tags.
-release = '3.0.4'
+release = '3.0.5'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prompt_toolkit-3.0.4/docs/index.rst 
new/prompt_toolkit-3.0.5/docs/index.rst
--- old/prompt_toolkit-3.0.4/docs/index.rst     2020-03-06 07:18:08.000000000 
+0100
+++ new/prompt_toolkit-3.0.5/docs/index.rst     2020-03-26 09:01:04.000000000 
+0100
@@ -36,7 +36,8 @@
 
 Works everywhere:
 
-- Pure Python. Runs on all Python versions from 2.6 up to 3.4.
+- Pure Python. Runs on all Python versions starting at Python 3.6.
+  (Python 2.6 - 3.x is supported in prompt_toolkit 2.0; not 3.0).
 - Runs on Linux, OS X, OpenBSD and Windows systems.
 - Lightweight, the only dependencies are Pygments, six and wcwidth.
 - No assumptions about I/O are made. Every prompt_toolkit application should
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/prompt_toolkit-3.0.4/docs/pages/advanced_topics/input_hooks.rst 
new/prompt_toolkit-3.0.5/docs/pages/advanced_topics/input_hooks.rst
--- old/prompt_toolkit-3.0.4/docs/pages/advanced_topics/input_hooks.rst 
2020-01-12 18:01:43.000000000 +0100
+++ new/prompt_toolkit-3.0.5/docs/pages/advanced_topics/input_hooks.rst 
2020-03-26 09:01:04.000000000 +0100
@@ -6,6 +6,36 @@
 
 Input hooks are a tool for inserting an external event loop into the
 prompt_toolkit event loop, so that the other loop can run as long as
-prompt_toolkit is idle. This is used in applications like `IPython
-<https://ipython.org/>`_, so that GUI toolkits can display their windows while
-we wait at the prompt for user input.
+prompt_toolkit (actually asyncio) is idle. This is used in applications like
+`IPython <https://ipython.org/>`_, so that GUI toolkits can display their
+windows while we wait at the prompt for user input.
+
+As a consequence, we will "trampoline" back and forth between two event loops.
+
+.. note::
+
+    This will use a :class:`~asyncio.SelectorEventLoop`, not the :class:
+    :class:`~asyncio.ProactorEventLoop` (on Windows) due to the way the
+    implementation works (contributions are welcome to make that work).
+
+
+.. code:: python
+
+    from prompt_toolkit.eventloop.inputhook import set_eventloop_with_inputhook
+
+    def inputhook(inputhook_context):
+        # At this point, we run the other loop. This loop is supposed to run
+        # until either `inputhook_context.fileno` becomes ready for reading or
+        # `inputhook_context.input_is_ready()` returns True.
+
+        # A good way is to register this file descriptor in this other event
+        # loop with a callback that stops this loop when this FD becomes ready.
+        # There is no need to actually read anything from the FD.
+
+        while True:
+            ...
+
+    set_eventloop_with_inputhook(inputhook)
+
+    # Any asyncio code at this point will now use this new loop, with input
+    # hook installed.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prompt_toolkit-3.0.4/prompt_toolkit/__init__.py 
new/prompt_toolkit-3.0.5/prompt_toolkit/__init__.py
--- old/prompt_toolkit-3.0.4/prompt_toolkit/__init__.py 2020-03-06 
07:54:16.000000000 +0100
+++ new/prompt_toolkit-3.0.5/prompt_toolkit/__init__.py 2020-03-26 
09:03:28.000000000 +0100
@@ -18,7 +18,7 @@
 from .shortcuts import PromptSession, print_formatted_text, prompt
 
 # Don't forget to update in `docs/conf.py`!
-__version__ = "3.0.4"
+__version__ = "3.0.5"
 
 # Version tuple.
 VERSION = tuple(__version__.split("."))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prompt_toolkit-3.0.4/prompt_toolkit/input/win32.py 
new/prompt_toolkit-3.0.5/prompt_toolkit/input/win32.py
--- old/prompt_toolkit-3.0.4/prompt_toolkit/input/win32.py      2020-03-06 
07:18:12.000000000 +0100
+++ new/prompt_toolkit-3.0.5/prompt_toolkit/input/win32.py      2020-03-26 
09:01:04.000000000 +0100
@@ -456,7 +456,7 @@
             # On a key press, generate both the mouse down and up event.
             for event_type in [MouseEventType.MOUSE_DOWN, 
MouseEventType.MOUSE_UP]:
                 data = ";".join(
-                    [str(event_type), str(ev.MousePosition.X), 
str(ev.MousePosition.Y)]
+                    [event_type.value, str(ev.MousePosition.X), 
str(ev.MousePosition.Y)]
                 )
                 result.append(KeyPress(Keys.WindowsMouseEvent, data))
 
Binary files old/prompt_toolkit-3.0.4/prompt_toolkit/styles/.base.py.swp and 
new/prompt_toolkit-3.0.5/prompt_toolkit/styles/.base.py.swp differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/prompt_toolkit-3.0.4/prompt_toolkit.egg-info/PKG-INFO 
new/prompt_toolkit-3.0.5/prompt_toolkit.egg-info/PKG-INFO
--- old/prompt_toolkit-3.0.4/prompt_toolkit.egg-info/PKG-INFO   2020-03-06 
08:01:00.000000000 +0100
+++ new/prompt_toolkit-3.0.5/prompt_toolkit.egg-info/PKG-INFO   2020-03-26 
09:06:10.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: prompt-toolkit
-Version: 3.0.4
+Version: 3.0.5
 Summary: Library for building powerful interactive command lines in Python
 Home-page: https://github.com/prompt-toolkit/python-prompt-toolkit
 Author: Jonathan Slenders
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/prompt_toolkit-3.0.4/prompt_toolkit.egg-info/SOURCES.txt 
new/prompt_toolkit-3.0.5/prompt_toolkit.egg-info/SOURCES.txt
--- old/prompt_toolkit-3.0.4/prompt_toolkit.egg-info/SOURCES.txt        
2020-03-06 08:01:00.000000000 +0100
+++ new/prompt_toolkit-3.0.5/prompt_toolkit.egg-info/SOURCES.txt        
2020-03-26 09:06:10.000000000 +0100
@@ -316,7 +316,6 @@
 prompt_toolkit/shortcuts/progress_bar/__init__.py
 prompt_toolkit/shortcuts/progress_bar/base.py
 prompt_toolkit/shortcuts/progress_bar/formatters.py
-prompt_toolkit/styles/.base.py.swp
 prompt_toolkit/styles/__init__.py
 prompt_toolkit/styles/base.py
 prompt_toolkit/styles/defaults.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prompt_toolkit-3.0.4/tests/test_completion.py 
new/prompt_toolkit-3.0.5/tests/test_completion.py
--- old/prompt_toolkit-3.0.4/tests/test_completion.py   2020-03-06 
07:18:08.000000000 +0100
+++ new/prompt_toolkit-3.0.5/tests/test_completion.py   2020-03-26 
09:01:04.000000000 +0100
@@ -4,8 +4,6 @@
 import tempfile
 from contextlib import contextmanager
 
-from six import text_type
-
 from prompt_toolkit.completion import (
     CompleteEvent,
     FuzzyWordCompleter,
@@ -82,7 +80,7 @@
 
     completer = PathCompleter()
     # force unicode
-    doc_text = text_type(test_dir)
+    doc_text = str(test_dir)
     doc = Document(doc_text, len(doc_text))
     event = CompleteEvent()
     completions = list(completer.get_completions(doc, event))


Reply via email to