diff --git a/python-urwid-fix_py3_test.patch b/python-urwid-fix_py3_test.patch deleted file mode 100644 index 46a69d8..0000000 --- a/python-urwid-fix_py3_test.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 4b0ed8b6030450e6d99909a7c683e9642e546387 Mon Sep 17 00:00:00 2001 -From: Michael Hudson-Doyle -Date: Wed, 7 Jun 2017 13:52:17 -0700 -Subject: [PATCH] fix test_remove_watch_file flakiness - -pass a known-good file descriptor to watch_file rather than hard-coding 5 - -Fixes #164 ---- - urwid/tests/test_event_loops.py | 11 ++++++++--- - 1 file changed, 8 insertions(+), 3 deletions(-) - -diff --git a/urwid/tests/test_event_loops.py b/urwid/tests/test_event_loops.py -index c85bbed..b01212d 100644 ---- a/urwid/tests/test_event_loops.py -+++ b/urwid/tests/test_event_loops.py -@@ -30,9 +30,14 @@ def test_remove_alarm(self): - - def test_remove_watch_file(self): - evl = self.evl -- handle = evl.watch_file(5, lambda: None) -- self.assertTrue(evl.remove_watch_file(handle)) -- self.assertFalse(evl.remove_watch_file(handle)) -+ fd_r, fd_w = os.pipe() -+ try: -+ handle = evl.watch_file(fd_r, lambda: None) -+ self.assertTrue(evl.remove_watch_file(handle)) -+ self.assertFalse(evl.remove_watch_file(handle)) -+ finally: -+ os.close(fd_r) -+ os.close(fd_w) - - _expected_idle_handle = 1 - diff --git a/python-urwid.changes b/python-urwid.changes index 7fd068f..efd88aa 100644 --- a/python-urwid.changes +++ b/python-urwid.changes @@ -1,3 +1,65 @@ +------------------------------------------------------------------- +Sun Feb 25 16:52:59 UTC 2018 - aloisio@gmx.com + +- Update to version 2.0.1 + * #275: Late fix for proper exception reraising from within + main loop (by Andrew Dunai & Adam Sampson) + version 2.0.0 + * Full Python 2.x/3.x support (by Andrew Dunai) + * Proper handling & customization of OS signals by GLib event + loop (by Federico T) + * vterm: Fix handling of NUL characters (by aszlig) + * Add 256-color support for fbterm (by Benjamin Yates) + * Italics support (by Ian D. Scott) + * Store envron's TERM value as a Screen attribute (by Benjamin + Yates) + * Replaced hashbangs to use proper Python binary (by Douglas La + Rocca) + * Post-change signal for Edit, CheckBox and RadioButton widgets + (by Toshio Kuratomi) + * ListBox.body update (by Random User) + * SimpleListWalker is now default when setting ListBox.body (by + Random User) + * #246, #234: SelectEventLoop alarm improvements (by Dave Jones) + * #211: Title align & borderless sides for LineBox (by Toshio + Kuratomi) + * Support for 'home' and 'end' keys in ListBox (by Random User) + * Various code cleanups (by Jordan Speicher, Marin Atanasov + Nikolov) + * CI fixes (by Marlox, Ian Ward, Anatoly Techtonik, Tony + Cebzanov & Ondřej Súkup) + * Example fixes (by Kenneth Nielsen) + * Documentation fixes (by anatoly techtonik, Marcin Kurczewski, + mobyte0, Christian Geier & xndcn) + * Code cleanup & typo fixes (by Jakub Wilk & Boris Feld) + * Integration of tox for easier Python cross-version testing (by + Andrew Dunai) + * Test fixes (by Michael Hudson-Doyle, Mike Gilbert & Andrew + Dunai) + * Correct error messages in Decoration (by Marcin Kurczewski) + * #141: Fix for StandardTextLayout.calculate_text_segments + (by Grzegorz Aksamit) + * #221: Fix for raw display should release file descriptors (by + Alain Leufroy) + * #261: Fix issues with unicode characters in ProgressBar (by + Andrew Dunai) + * Fix for 'page up' and 'page down' in ListBox when having + focusable children (by Random User) + * Fixes for examples compatibility with Python 3 (by Lars + Kellogg-Stedman) + * Fix default screen size on raw display (by Andreas Klöckner) + * Fix underlining for padded text (by Random User) + * Fix for terminal widget crash with Python 3 (by Sjc1000) + * Fix for string formatting error (by Jakub Wilk) + * Fix for iterator in WidgetContainerListContentsMixin (by + Marlox) + * Fix for missing `modified` signal in SimpleFocusListWalker + (by Michael Hansen) + * Dropped Python 3.2 support + * Test coverage is now collected + +- Dropped python-urwid-fix_py3_test.patch (merged upstream) + ------------------------------------------------------------------- Tue May 23 07:37:03 UTC 2017 - aloisio@gmx.com diff --git a/python-urwid.spec b/python-urwid.spec index 10c9c35..669fc1b 100644 --- a/python-urwid.spec +++ b/python-urwid.spec @@ -1,7 +1,7 @@ # # spec file for package python-urwid # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,15 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-urwid -Version: 1.3.1 +Version: 2.0.1 Release: 0 Summary: A full-featured console (xterm et al.) user interface library License: LGPL-2.1+ Group: Development/Languages/Python Url: http://urwid.org Source: https://files.pythonhosted.org/packages/source/u/urwid/urwid-%{version}.tar.gz -# PATCH-FIX-UPSTREAM python-urwid-fix_py3_test.patch -- fixes py3 test, backported commit#4b0ed8b -Patch0: python-urwid-fix_py3_test.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -51,7 +49,6 @@ useful for text console application developers including: %prep %setup -q -n "urwid-%{version}" -%patch0 -p1 # remove unwanted shebang find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }' diff --git a/urwid-1.3.1.tar.gz b/urwid-1.3.1.tar.gz deleted file mode 100644 index d70af2b..0000000 --- a/urwid-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfcec03e36de25a1073e2e35c2c7b0cc6969b85745715c3a025a31d9786896a1 -size 588549 diff --git a/urwid-2.0.1.tar.gz b/urwid-2.0.1.tar.gz new file mode 100644 index 0000000..95e367f --- /dev/null +++ b/urwid-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:644d3e3900867161a2fc9287a9762753d66bd194754679adb26aede559bcccbc +size 604167