Hello community, here is the log from the commit of package python-wurlitzer for openSUSE:Factory checked in at 2020-07-24 09:55:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-wurlitzer (Old) and /work/SRC/openSUSE:Factory/.python-wurlitzer.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-wurlitzer" Fri Jul 24 09:55:24 2020 rev:5 rq:822104 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-wurlitzer/python-wurlitzer.changes 2020-04-21 13:06:59.416372270 +0200 +++ /work/SRC/openSUSE:Factory/.python-wurlitzer.new.3592/python-wurlitzer.changes 2020-07-24 09:57:40.773510058 +0200 @@ -1,0 +2,6 @@ +Tue Jul 21 12:41:04 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- Update to 2.0.1 + * small bug- and test fixes + +------------------------------------------------------------------- Old: ---- wurlitzer-2.0.0.tar.gz New: ---- wurlitzer-2.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-wurlitzer.spec ++++++ --- /var/tmp/diff_new_pack.HLAjNy/_old 2020-07-24 09:57:44.505513908 +0200 +++ /var/tmp/diff_new_pack.HLAjNy/_new 2020-07-24 09:57:44.509513913 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-wurlitzer -Version: 2.0.0 +Version: 2.0.1 Release: 0 Summary: Python package to capture C-level output in context managers License: MIT ++++++ wurlitzer-2.0.0.tar.gz -> wurlitzer-2.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wurlitzer-2.0.0/.bumpversion.cfg new/wurlitzer-2.0.1/.bumpversion.cfg --- old/wurlitzer-2.0.0/.bumpversion.cfg 2019-10-17 15:57:18.000000000 +0200 +++ new/wurlitzer-2.0.1/.bumpversion.cfg 2020-07-06 10:45:30.000000000 +0200 @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.0.4.dev +current_version = 2.0.1 parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z0-9]+))? tag_name = {new_version} allow_dirty = True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wurlitzer-2.0.0/CHANGELOG.md new/wurlitzer-2.0.1/CHANGELOG.md --- old/wurlitzer-2.0.0/CHANGELOG.md 2019-10-25 13:57:31.000000000 +0200 +++ new/wurlitzer-2.0.1/CHANGELOG.md 2020-07-06 10:45:14.000000000 +0200 @@ -4,22 +4,34 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [Unreleased](https://github.com/minrk/wurlitzer/compare/2.0.1...HEAD) + +#### [2.0.1](https://github.com/minrk/wurlitzer/compare/2.0.0...2.0.1) + +> 6 July 2020 + +- Merge pull request #38 from minrk/flush-on-exit [`d24f50c`](https://github.com/minrk/wurlitzer/commit/d24f50c611164a3468622ca2ed80efc3abec8641) +- flush sys streams on enter/exit [`6d9b49d`](https://github.com/minrk/wurlitzer/commit/6d9b49dac73e59d5d10a6588ae02ed585779d042) +- flush sys streams in flush thread as well [`2682eb4`](https://github.com/minrk/wurlitzer/commit/2682eb4ef34c4268d21ebf75a5f146770a676cbc) + ### [2.0.0](https://github.com/minrk/wurlitzer/compare/1.0.3...2.0.0) > 25 October 2019 -- use selectors instead of select.poll [`#34`](https://github.com/minrk/wurlitzer/pull/34). Requires `selectors2` package on Python < 3.4. +- use selectors instead of select.poll [`#34`](https://github.com/minrk/wurlitzer/pull/34) #### [1.0.3](https://github.com/minrk/wurlitzer/compare/1.0.2...1.0.3) > 13 June 2019 -- Add thread lock [`#30`](https://github.com/minrk/wurlitzer/pull/30) +- PR: Add thread lock [`#30`](https://github.com/minrk/wurlitzer/pull/30) +- update packages on travis [`#31`](https://github.com/minrk/wurlitzer/pull/31) +- test on mac [`#25`](https://github.com/minrk/wurlitzer/pull/25) +- select.poll timeout is in milliseconds [`#26`](https://github.com/minrk/wurlitzer/pull/26) - using poll instead of select in forwarder [`#24`](https://github.com/minrk/wurlitzer/pull/24) - setup.py improvements [`#19`](https://github.com/minrk/wurlitzer/pull/19) - Link blogpost about redirecting stdout/stderr [`#18`](https://github.com/minrk/wurlitzer/pull/18) -- Prevent wurlitzer from entering multiple times [`#27`](https://github.com/minrk/wurlitzer/pull/28) -- fix threading issues [`1c59bb4`](https://github.com/minrk/wurlitzer/commit/1c59bb435da05fe2e48915aa5c9f485575a7ad1b) +- fixes #27? [`#27`](https://github.com/minrk/wurlitzer/issues/27) #### [1.0.2](https://github.com/minrk/wurlitzer/compare/1.0.1...1.0.2) @@ -31,6 +43,7 @@ > 22 January 2018 +- Test more Pythons [`#13`](https://github.com/minrk/wurlitzer/pull/13) - avoid unnecessary close of original FDs [`#11`](https://github.com/minrk/wurlitzer/pull/11) ### [1.0.0](https://github.com/minrk/wurlitzer/compare/0.2.0...1.0.0) @@ -38,9 +51,8 @@ > 22 June 2017 - use control pipe to signal closure [`#8`](https://github.com/minrk/wurlitzer/pull/8) - +- import warnings [`#3`](https://github.com/minrk/wurlitzer/pull/3) - Do nothing if loaded in terminal IPython [`#2`](https://github.com/minrk/wurlitzer/pull/2) -- retry dup2 on EBUSY [`6e2e906`](https://github.com/minrk/wurlitzer/commit/6e2e906a8f2ffbd5b27d92a147cd59b0d5008041) #### [0.2.0](https://github.com/minrk/wurlitzer/compare/0.1.2...0.2.0) @@ -52,7 +64,9 @@ > 13 March 2016 +- readme more [`e905543`](https://github.com/minrk/wurlitzer/commit/e9055432933b29a70246299f2534e44af01c7edb) - flush before entering wurlitzer [`a8b3a85`](https://github.com/minrk/wurlitzer/commit/a8b3a856a576fe50e8771fddad7fcf3b21ae3285) +- bump patch on release [`841cf92`](https://github.com/minrk/wurlitzer/commit/841cf922a77fd1a954ff968530d096ecfc1879aa) #### [0.1.1](https://github.com/minrk/wurlitzer/compare/0.1.0...0.1.1) @@ -64,4 +78,6 @@ > 9 March 2016 -Initial release +- init package [`88e28b7`](https://github.com/minrk/wurlitzer/commit/88e28b7685806006fdd3c9a2021705be1b9fbbed) +- Add demo notebook [`ea70e0e`](https://github.com/minrk/wurlitzer/commit/ea70e0e1f82ccb2e3283b6baf2c1d91c0b05ac8a) +- Initial commit [`9646cf2`](https://github.com/minrk/wurlitzer/commit/9646cf2417cc46c61d1f6437f8f76efa56ccf2d8) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wurlitzer-2.0.0/PKG-INFO new/wurlitzer-2.0.1/PKG-INFO --- old/wurlitzer-2.0.0/PKG-INFO 2019-10-25 13:58:18.000000000 +0200 +++ new/wurlitzer-2.0.1/PKG-INFO 2020-07-06 10:45:51.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: wurlitzer -Version: 2.0.0 +Version: 2.0.1 Summary: Capture C-level output in context managers Home-page: https://github.com/minrk/wurlitzer Author: Min RK diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wurlitzer-2.0.0/wurlitzer.egg-info/PKG-INFO new/wurlitzer-2.0.1/wurlitzer.egg-info/PKG-INFO --- old/wurlitzer-2.0.0/wurlitzer.egg-info/PKG-INFO 2019-10-25 13:58:17.000000000 +0200 +++ new/wurlitzer-2.0.1/wurlitzer.egg-info/PKG-INFO 2020-07-06 10:45:51.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: wurlitzer -Version: 2.0.0 +Version: 2.0.1 Summary: Capture C-level output in context managers Home-page: https://github.com/minrk/wurlitzer Author: Min RK diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wurlitzer-2.0.0/wurlitzer.py new/wurlitzer-2.0.1/wurlitzer.py --- old/wurlitzer-2.0.0/wurlitzer.py 2019-10-25 13:50:51.000000000 +0200 +++ new/wurlitzer-2.0.1/wurlitzer.py 2020-07-06 10:45:30.000000000 +0200 @@ -4,7 +4,7 @@ """ from __future__ import print_function -__version__ = '2.0.0' +__version__ = '2.0.1' __all__ = [ 'pipes', @@ -143,10 +143,19 @@ """Finish handle, if anything should be done when it's all wrapped up.""" pass - def __enter__(self): - # flush anything out before starting + def _flush(self): + """flush sys.stdout/err and low-level FDs""" + if self._stdout and sys.stdout: + sys.stdout.flush() + if self._stderr and sys.stderr: + sys.stderr.flush() + libc.fflush(c_stdout_p) libc.fflush(c_stderr_p) + + def __enter__(self): + # flush anything out before starting + self._flush() # setup handle self._setup_handle() self._control_r, self._control_w = os.pipe() @@ -172,8 +181,7 @@ msg = flush_queue.get() if msg == 'stop': return - libc.fflush(c_stdout_p) - libc.fflush(c_stderr_p) + self._flush() flush_thread = threading.Thread(target=flush_main) flush_thread.daemon = True @@ -241,9 +249,9 @@ return self.handle def __exit__(self, exc_type, exc_value, traceback): - # flush the underlying C buffers - libc.fflush(c_stdout_p) - libc.fflush(c_stderr_p) + # flush before exiting + self._flush() + # signal output is complete on control pipe os.write(self._control_w, b'\1') self.thread.join()