* [gentoo-commits] repo/gentoo:master commit in: dev-python/pebble/files/, dev-python/pebble/
@ 2023-02-22 7:42 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-02-22 7:42 UTC (permalink / raw
To: gentoo-commits
commit: 5f619b95060bb30709f7eaf135223e12d3dae18d
Author: Matoro Mahri <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Feb 21 19:27:50 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 22 07:42:17 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f619b95
dev-python/pebble: increase attempts for broken test on slow CPU
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.
See: https://github.com/noxdafox/pebble/pull/112
Bug: https://bugs.gentoo.org/831219
Signed-off-by: Matoro Mahri <matoro <AT> users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/29709
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../pebble/files/pebble-5.0.3-backport-pr112.patch | 28 ++++++++++++++++++++++
dev-python/pebble/pebble-5.0.3.ebuild | 1 +
2 files changed, 29 insertions(+)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pebble/files/, dev-python/pebble/
@ 2023-12-09 14:00 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2023-12-09 14:00 UTC (permalink / raw
To: gentoo-commits
commit: 4f14dd7bd8f91dc038e76792892dc855b0ec9c5c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 9 13:58:32 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 9 13:58:32 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f14dd7b
dev-python/pebble: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pebble/Manifest | 1 -
.../pebble/files/pebble-5.0.3-backport-pr112.patch | 28 ----------------------
dev-python/pebble/pebble-5.0.3.ebuild | 25 -------------------
3 files changed, 54 deletions(-)
diff --git a/dev-python/pebble/Manifest b/dev-python/pebble/Manifest
index c9dcc1420717..f2b566eb59b8 100644
--- a/dev-python/pebble/Manifest
+++ b/dev-python/pebble/Manifest
@@ -1,3 +1,2 @@
-DIST Pebble-5.0.3.tar.gz 29076 BLAKE2B d140cc0abd08cb5d6031a3fb8ba6f573e273f865d23e8854e9e540e115b030cabd07d8517f94b542216294abd742960b3addda592f0e7d31662bd10b224c8d7b SHA512 324cba58905b0be76b2cd56e0ee5d3e51a36d46a7754fbccb1f9307af0747c2f02b81d137e2c4bce1c766706b70ce1a909c3b287676db147c202cab7445fc764
DIST Pebble-5.0.4.tar.gz 28976 BLAKE2B 4a07fae1b186f658aad565d97837c204ce4c19f2478f179d9967f4770666eb243c26de54345332331ad85a4c34c842307be219b543c7f99e9f04ce5185841a32 SHA512 fec2aa4fad28dddc5987d010d341dd747d1056a9e75b3a81f5c6d1f40d07d139357472f0649d9b15f1fe22c5e018f533d616227faac10c1e06469af988cf2c8c
DIST Pebble-5.0.5.tar.gz 30634 BLAKE2B 2ce70da8d2a5a8ed5368e54e63631167c09bf0f408d5e86c618fbe2237a01f0fed9e673c14fe7f8a63fb416d72bfad58c7eedd5292daf7753d067a7a219a3c22 SHA512 8d524e57e32f28fb4c59f09a7d1733d997298f526d6ba08477b060dd78c585b4f9da76b525a4052eefd1576dba464218d4b15ffe15f9e2cb1921423df3a33e1c
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
deleted file mode 100644
index be1afee1da64..000000000000
--- a/dev-python/pebble/files/pebble-5.0.3-backport-pr112.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-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
deleted file mode 100644
index 2c05dd4f34c3..000000000000
--- a/dev-python/pebble/pebble-5.0.3.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYPI_NO_NORMALIZE=1
-PYPI_PN=${PN^}
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Threading and multiprocessing eye-candy"
-HOMEPAGE="
- https://pebble.readthedocs.io/
- https://github.com/noxdafox/pebble/
- https://pypi.org/project/Pebble/
-"
-
-LICENSE="LGPL-3+"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-PATCHES=( "${FILESDIR}/pebble-5.0.3-backport-pr112.patch" )
-
-distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-09 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 7:42 [gentoo-commits] repo/gentoo:master commit in: dev-python/pebble/files/, dev-python/pebble/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2023-12-09 14:00 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox