diff options
Diffstat (limited to 'dev-python/urwid')
-rw-r--r-- | dev-python/urwid/Manifest | 3 | ||||
-rw-r--r-- | dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch | 26 | ||||
-rw-r--r-- | dev-python/urwid/urwid-2.1.2-r1.ebuild | 7 |
3 files changed, 34 insertions, 2 deletions
diff --git a/dev-python/urwid/Manifest b/dev-python/urwid/Manifest index dad6d7262bc8..5e1cce569931 100644 --- a/dev-python/urwid/Manifest +++ b/dev-python/urwid/Manifest @@ -1,3 +1,4 @@ +AUX urwid-2.1.2-fix-py3.11.patch 924 BLAKE2B a0c8452f4a025a9ed4f94b746f4c487c7c9e6b84a20a552ba56d13d03493abcaa1179c209214a003e62549cbf6b7d3b42e2cffcc055e5823acefcca8cc3de9bb SHA512 36671f9582f322f0419554eebdeff020ab48431f61e8a335b4d54b3798dda439acd78356269369c8b255f22be560e5c214c819cbe0256f7b7a632c625c0c054e DIST urwid-2.1.2.tar.gz 634621 BLAKE2B ce274820c27708fd0b10f22359923316576b895f6888c9b174b42dedcd551353b6c3ba797c68d61a082ecf23b8f0108a58454bdb44806e33b74d9e6e5bd28537 SHA512 f102bdde5f5d39d4bce455020bbe4f18290589da0750a3b15b1e2bc8acf8a405f02295d7efa3009877801a36bfbfade92ec963086122e9b133db137d816a1ea5 -EBUILD urwid-2.1.2-r1.ebuild 1209 BLAKE2B 1eabe744107680030561b18e1de0fbff5ad6f107887bd1bec79b731063d5ee05b9078c4418c6b22133311582e2209b5060751321cb82b23efb5c719397acabc8 SHA512 236a13394cbf752492a09ddfeb385509a734f3457e44340772426492e02cb0bcd60f75ddfc2406cd99043db7483cf36beff18a7c8a3f012dce95539c2d387457 +EBUILD urwid-2.1.2-r1.ebuild 1302 BLAKE2B f0e67ee9d3b8e6b6af363da76c81cf93148fd2bb747c85e4ea51f5f64127627749dc7636fc211fee981b7c07d646d709b86ba47180dfd26f1da60c1863bde753 SHA512 527668cbdad34eb19c0ced281667820ac340b119b60c43a73a26541baa8f7a1906ae11a74b622997b214f63b59604bec1a0ec9b4376a2c6789b91318bdbfaff8 MISC metadata.xml 1194 BLAKE2B 387c1e6ca71806f706b054e11755e885c7bbe11e6be1b639a6160e0b2c51df91feef025f6166a973a38e8ad16fe7627ba6f2b5e293c007da8a1e32e46db1541d SHA512 ee6bb39746fdfe3ebcc83304cb9d7c7cce16f4caca284bd82907fd13672bdcf982f1fbfba22b0877da8de9f6cdadc4045916eff678095320745eab954960ab6f diff --git a/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch b/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch new file mode 100644 index 000000000000..dd60b8a220b9 --- /dev/null +++ b/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch @@ -0,0 +1,26 @@ +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) + + diff --git a/dev-python/urwid/urwid-2.1.2-r1.ebuild b/dev-python/urwid/urwid-2.1.2-r1.ebuild index 9914a472ab5f..b0934f8622e6 100644 --- a/dev-python/urwid/urwid-2.1.2-r1.ebuild +++ b/dev-python/urwid/urwid-2.1.2-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) PYTHON_REQ_USE="ncurses" inherit distutils-r1 optfeature @@ -24,6 +24,11 @@ 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:' \ |