14
0
forked from pool/python-urwid

Accepting request 579953 from home:alois:branches:devel:languages:python

- 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)

OBS-URL: https://build.opensuse.org/request/show/579953
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urwid?expand=0&rev=34
This commit is contained in:
Tomáš Chvátal
2018-02-26 08:30:23 +00:00
committed by Git OBS Bridge
parent 109f892076
commit 9d4306c998
5 changed files with 67 additions and 42 deletions

View File

@@ -1,34 +0,0 @@
From 4b0ed8b6030450e6d99909a7c683e9642e546387 Mon Sep 17 00:00:00 2001
From: Michael Hudson-Doyle <michael.hudson@canonical.com>
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

View File

@@ -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 Tue May 23 07:37:03 UTC 2017 - aloisio@gmx.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-urwid # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-urwid Name: python-urwid
Version: 1.3.1 Version: 2.0.1
Release: 0 Release: 0
Summary: A full-featured console (xterm et al.) user interface library Summary: A full-featured console (xterm et al.) user interface library
License: LGPL-2.1+ License: LGPL-2.1+
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://urwid.org Url: http://urwid.org
Source: https://files.pythonhosted.org/packages/source/u/urwid/urwid-%{version}.tar.gz 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 devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
@@ -51,7 +49,6 @@ useful for text console application developers including:
%prep %prep
%setup -q -n "urwid-%{version}" %setup -q -n "urwid-%{version}"
%patch0 -p1
# remove unwanted shebang # remove unwanted shebang
find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }' find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }'

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cfcec03e36de25a1073e2e35c2c7b0cc6969b85745715c3a025a31d9786896a1
size 588549

3
urwid-2.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:644d3e3900867161a2fc9287a9762753d66bd194754679adb26aede559bcccbc
size 604167