diff options
Diffstat (limited to 'dev-python/pebble')
-rw-r--r-- | dev-python/pebble/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pebble/files/pebble-5.0.3-backport-pr112.patch | 28 | ||||
-rw-r--r-- | dev-python/pebble/pebble-5.0.3.ebuild | 1 |
3 files changed, 31 insertions, 1 deletions
diff --git a/dev-python/pebble/Manifest b/dev-python/pebble/Manifest index a0055697bbec..0987ee19c626 100644 --- a/dev-python/pebble/Manifest +++ b/dev-python/pebble/Manifest @@ -1,3 +1,4 @@ +AUX pebble-5.0.3-backport-pr112.patch 1192 BLAKE2B 1630a12af47942ebba938b9e0e7fa50d1a3363d2eaa25f98f3adcb5c17823cf2ed0bd1d385c8fab8c776521f270954ba5f1211d04ba4200401de096f96896bb8 SHA512 47c24197b6cfbc6b6474c2f2bf6389d227d618e4610e07e91afed6a29db551ff26e6de89b368ce6486ac3023d702e11abc56d78aabfbf208e4374a2775b7aebe DIST Pebble-5.0.3.tar.gz 29076 BLAKE2B d140cc0abd08cb5d6031a3fb8ba6f573e273f865d23e8854e9e540e115b030cabd07d8517f94b542216294abd742960b3addda592f0e7d31662bd10b224c8d7b SHA512 324cba58905b0be76b2cd56e0ee5d3e51a36d46a7754fbccb1f9307af0747c2f02b81d137e2c4bce1c766706b70ce1a909c3b287676db147c202cab7445fc764 -EBUILD pebble-5.0.3.ebuild 602 BLAKE2B 669b34bc1898746c7e281941e6fbabeba5271b896825687a8faa92de62b4b01f05f95f6df697cd82e052746c5c378049675ee0a366980a422398ece859cfbe6d SHA512 d1f1c65dbb95a4cf2d9d85dd3a08c8e21c0b39a12d91e0a9fc0cd388d4cee3c5b5ff6712f9f41eb38b3fceb7885c3a07c09e3d9665e1880b732ece68d2cb80fd +EBUILD pebble-5.0.3.ebuild 662 BLAKE2B bfc1375705ac4e1bcd5acb9e19bdf10d13c5de250dbd509667c55dc7a783c971a4d14ff435e77923e3a2e140b79f8169448ee7ad93bfd7e79495deb37ffb0fd4 SHA512 bf9e1ede88cef82049820bf6bc8ccff90ac6cab558b7055a28d363ae636520b01aa140a24a81048a0698a76ac5cb7651e7b8f51b39e982fc97424ea1069efb8a MISC metadata.xml 367 BLAKE2B 587e93606cf39400151b413a1d1ee5446e6c6dfbde19bf2b9cd8e9a7226c1d4df53c8849625fba7c61a84ebc8939803cda5c1250c3068cb8cd61ef9db901ab6f SHA512 8f50888f29afc88c791f54078d4120eb26a0217ad76fd72f311bea4bfb769cd37adcf657bff4949fc9360b701b44d0736cd294101ce9838db538b6a34e103dd3 diff --git a/dev-python/pebble/files/pebble-5.0.3-backport-pr112.patch b/dev-python/pebble/files/pebble-5.0.3-backport-pr112.patch new file mode 100644 index 000000000000..be1afee1da64 --- /dev/null +++ b/dev-python/pebble/files/pebble-5.0.3-backport-pr112.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/831219 +https://github.com/noxdafox/pebble/pull/112 + +From cd78923ac2a3de7e2ce248734f10170bf516f5b4 Mon Sep 17 00:00:00 2001 +From: matoro <matoro@users.noreply.github.com> +Date: Sun, 19 Feb 2023 13:36:34 -0500 +Subject: [PATCH] increase attempts for test_process_pool_stop_stopped_callback + +On very slow machines, test_process_pool_stop_stopped_callback fails due +to not raising a RuntimeError. Increasing the number of long_function +instances added to the pool causes it to perform as expected. +--- + test/test_process_pool_spawn.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test_process_pool_spawn.py b/test/test_process_pool_spawn.py +index f839b0a..d734bdf 100644 +--- a/test/test_process_pool_spawn.py ++++ b/test/test_process_pool_spawn.py +@@ -315,7 +315,7 @@ def stop_pool_callback(_): + future = pool.schedule(function, args=[1]) + future.add_done_callback(stop_pool_callback) + with self.assertRaises(RuntimeError): +- for index in range(10): ++ for index in range(30): + time.sleep(0.1) + pool.schedule(long_function, args=[index]) + diff --git a/dev-python/pebble/pebble-5.0.3.ebuild b/dev-python/pebble/pebble-5.0.3.ebuild index 7cdc644aab09..6289e3e819d8 100644 --- a/dev-python/pebble/pebble-5.0.3.ebuild +++ b/dev-python/pebble/pebble-5.0.3.ebuild @@ -21,5 +21,6 @@ S=${WORKDIR}/${P^} LICENSE="LGPL-3+" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86" +PATCHES=( "${FILESDIR}/pebble-5.0.3-backport-pr112.patch" ) distutils_enable_tests pytest |