[arch-commits] Commit in python-plop/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Aug 15 05:24:21 UTC 2019


    Date: Thursday, August 15, 2019 @ 05:24:21
  Author: felixonmars
Revision: 499411

archrelease: copy trunk to community-testing-any

Added:
  python-plop/repos/community-testing-any/
  python-plop/repos/community-testing-any/PKGBUILD
    (from rev 499410, python-plop/trunk/PKGBUILD)
  python-plop/repos/community-testing-any/disable-flaky-threaded-test.patch
    (from rev 499410, 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-testing-any/PKGBUILD (from rev 499410, python-plop/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-08-15 05:24:21 UTC (rev 499411)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-plop
+pkgver=0.4.0
+pkgrel=1
+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-testing-any/disable-flaky-threaded-test.patch (from rev 499410, python-plop/trunk/disable-flaky-threaded-test.patch)
===================================================================
--- community-testing-any/disable-flaky-threaded-test.patch	                        (rev 0)
+++ community-testing-any/disable-flaky-threaded-test.patch	2019-08-15 05:24:21 UTC (rev 499411)
@@ -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