mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-python/urwid: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST urwid-2.1.2.tar.gz 634621 BLAKE2B ce274820c27708fd0b10f22359923316576b895f6888c9b174b42dedcd551353b6c3ba797c68d61a082ecf23b8f0108a58454bdb44806e33b74d9e6e5bd28537 SHA512 f102bdde5f5d39d4bce455020bbe4f18290589da0750a3b15b1e2bc8acf8a405f02295d7efa3009877801a36bfbfade92ec963086122e9b133db137d816a1ea5
|
||||
DIST urwid-2.2.3.tar.gz 677723 BLAKE2B 4aeae29e557e0ecbe902b56865feef3b2978263e657f2159194d8334852627ac6ccee82730d6a7e24b8914e5548ca88ac00eeddd7c2a34299d135843a99008fb SHA512 48588d0c819b229bdaaa70bec3a279c3bf232b8520d95e1f45a83bea927244634e91fd47cc161647c2d8155e523543549bc5ed2ccb5eac29843e12515e5dfd22
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
https://github.com/urwid/urwid/pull/517
|
||||
From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= <mail@dotlambda.de>
|
||||
Date: Fri, 20 Jan 2023 11:37:15 -0800
|
||||
Subject: [PATCH] make tests compatible with Python 3.11
|
||||
|
||||
--- a/urwid/tests/test_event_loops.py
|
||||
+++ b/urwid/tests/test_event_loops.py
|
||||
@@ -201,15 +201,14 @@ def test_error(self):
|
||||
evl.alarm(0.5, lambda: 1 / 0) # Simulate error in event loop
|
||||
self.assertRaises(ZeroDivisionError, evl.run)
|
||||
|
||||
- def test_coroutine_error(self):
|
||||
+ async def test_coroutine_error(self):
|
||||
evl = self.evl
|
||||
|
||||
- @asyncio.coroutine
|
||||
- def error_coro():
|
||||
+ async def error_coro():
|
||||
result = 1 / 0 # Simulate error in coroutine
|
||||
yield result
|
||||
|
||||
- asyncio.ensure_future(error_coro())
|
||||
+ asyncio.ensure_future(await error_coro())
|
||||
self.assertRaises(ZeroDivisionError, evl.run)
|
||||
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="ncurses"
|
||||
|
||||
inherit distutils-r1 optfeature pypi
|
||||
|
||||
DESCRIPTION="Curses-based user interface library for Python"
|
||||
HOMEPAGE="
|
||||
https://urwid.org/
|
||||
https://pypi.org/project/urwid/
|
||||
https://github.com/urwid/urwid/
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples"
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/urwid/urwid/pull/517
|
||||
"${FILESDIR}/${P}-fix-py3.11.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# optional tests broken by modern tornado versions
|
||||
sed -e 's:import tornado:&_broken:' \
|
||||
-i urwid/tests/test_event_loops.py || die
|
||||
|
||||
# Fix doc generation
|
||||
sed -e 's/!defindex/layout/' -i docs/tools/templates/indexcontent.html || die
|
||||
|
||||
# Fix for >=dev-python/trio-0.15
|
||||
sed -e 's/hazmat/lowlevel/' -i urwid/_async_kw_event_loop.py || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && dodoc -r examples
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Trio event loop" "dev-python/trio"
|
||||
}
|
||||
Reference in New Issue
Block a user