[arch-commits] Commit in python-plop/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 13 06:55:22 UTC 2020
Date: Friday, November 13, 2020 @ 06:55:21
Author: foutrelis
Revision: 753828
archrelease: copy trunk to community-staging-any
Added:
python-plop/repos/community-staging-any/
python-plop/repos/community-staging-any/PKGBUILD
(from rev 753827, python-plop/trunk/PKGBUILD)
python-plop/repos/community-staging-any/disable-flaky-threaded-test.patch
(from rev 753827, python-plop/trunk/disable-flaky-threaded-test.patch)
-----------------------------------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
disable-flaky-threaded-test.patch | 23 +++++++++++++++++++++++
2 files changed, 52 insertions(+)
Copied: python-plop/repos/community-staging-any/PKGBUILD (from rev 753827, python-plop/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-13 06:55:21 UTC (rev 753828)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-plop
+pkgver=0.4.0
+pkgrel=3
+pkgdesc="Python Low-Overhead Profiler"
+arch=('any')
+license=('MIT')
+url="https://github.com/bdarnell/plop"
+depends=('python-six' 'python-tornado')
+makedepends=('python-setuptools')
+source=("https://pypi.python.org/packages/source/p/plop/plop-${pkgver}.tar.gz")
+md5sums=('0f22aab8cbcb718ed0b00ebc15545274')
+
+build() {
+ cd plop-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd plop-$pkgver
+ python -m plop.test.runtests
+}
+
+package() {
+ cd plop-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}
Copied: python-plop/repos/community-staging-any/disable-flaky-threaded-test.patch (from rev 753827, python-plop/trunk/disable-flaky-threaded-test.patch)
===================================================================
--- community-staging-any/disable-flaky-threaded-test.patch (rev 0)
+++ community-staging-any/disable-flaky-threaded-test.patch 2020-11-13 06:55:21 UTC (rev 753828)
@@ -0,0 +1,23 @@
+From 99602f63ecabc3533439b7c8af5b09d7f793c4fb Mon Sep 17 00:00:00 2001
+From: Ben Darnell <ben at bendarnell.com>
+Date: Sat, 13 Feb 2016 19:06:05 -0500
+Subject: [PATCH] Disable flaky threaded test
+
+---
+ plop/test/collector_test.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/plop/test/collector_test.py b/plop/test/collector_test.py
+index d5e22c7..12270cb 100644
+--- a/plop/test/collector_test.py
++++ b/plop/test/collector_test.py
+@@ -76,7 +76,8 @@ def c(end):
+ time_per_sample = float(collector.sample_time) / collector.samples_taken
+ self.assertTrue(time_per_sample < 0.000100, time_per_sample)
+
+- def test_collect_threads(self):
++ # TODO: any way to make this test not flaky?
++ def disabled_test_collect_threads(self):
+ start = time.time()
+ def a(end):
+ while time.time() < end: pass
More information about the arch-commits
mailing list