[arch-commits] Commit in python-plop/repos/community-any (4 files)

Felix Yan felixonmars at archlinux.org
Tue May 7 19:40:13 UTC 2019


    Date: Tuesday, May 7, 2019 @ 19:40:13
  Author: felixonmars
Revision: 462455

archrelease: copy trunk to community-any

Added:
  python-plop/repos/community-any/PKGBUILD
    (from rev 462454, python-plop/trunk/PKGBUILD)
  python-plop/repos/community-any/disable-flaky-threaded-test.patch
    (from rev 462454, python-plop/trunk/disable-flaky-threaded-test.patch)
Deleted:
  python-plop/repos/community-any/PKGBUILD
  python-plop/repos/community-any/disable-flaky-threaded-test.patch

-----------------------------------+
 PKGBUILD                          |   93 ++++++++++++++----------------------
 disable-flaky-threaded-test.patch |   46 ++++++++---------
 2 files changed, 60 insertions(+), 79 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-07 19:39:59 UTC (rev 462454)
+++ PKGBUILD	2019-05-07 19:40:13 UTC (rev 462455)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-plop
-pkgname=(python-plop python2-plop)
-pkgver=0.3.0
-pkgrel=3
-pkgdesc="Python Low-Overhead Profiler"
-arch=('any')
-license=('MIT')
-url="https://github.com/bdarnell/plop"
-makedepends=('python-tornado' 'python2-tornado' 'python-six' 'python2-six'
-             'python-setuptools' 'python2-setuptools')
-source=("https://pypi.python.org/packages/source/p/plop/plop-${pkgver}.tar.gz"
-        disable-flaky-threaded-test.patch)
-md5sums=('4a313d6a8dd59ac48cfa3af426d197fc'
-         '1d9dc194b65a08f877506b5c5098c251')
-
-prepare() {
-  patch -d plop-$pkgver -Np1 < disable-flaky-threaded-test.patch
-  # tornado.testing.LogTrapTestCase was removed in Tornado 5.0
-  sed -i 's/LogTrapTestCase/ExpectLog/' plop-$pkgver/plop/test/callgraph_test.py
-  cp -a plop-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir/plop-${pkgver}"
-  python setup.py build
-
-  cd "$srcdir/plop-${pkgver}-py2"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/plop-${pkgver}"
-  python -m plop.test.runtests
-
-  cd "$srcdir/plop-${pkgver}-py2"
-  python2 -m plop.test.runtests
-}
-
-package_python-plop() {
-  depends=('python-six' 'python-tornado')
-
-  cd "${srcdir}/plop-${pkgver}"
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
-}
-
-package_python2-plop() {
-  depends=('python2-six' 'python2-tornado')
-
-  cd "${srcdir}/plop-${pkgver}-py2"
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
-}

Copied: python-plop/repos/community-any/PKGBUILD (from rev 462454, python-plop/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-07 19:40:13 UTC (rev 462455)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-plop
+pkgver=0.3.0
+pkgrel=4
+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"
+        disable-flaky-threaded-test.patch)
+md5sums=('4a313d6a8dd59ac48cfa3af426d197fc'
+         '1d9dc194b65a08f877506b5c5098c251')
+
+prepare() {
+  patch -d plop-$pkgver -Np1 < disable-flaky-threaded-test.patch
+  # tornado.testing.LogTrapTestCase was removed in Tornado 5.0
+  sed -i 's/LogTrapTestCase/ExpectLog/' plop-$pkgver/plop/test/callgraph_test.py
+}
+
+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
+}

Deleted: disable-flaky-threaded-test.patch
===================================================================
--- disable-flaky-threaded-test.patch	2019-05-07 19:39:59 UTC (rev 462454)
+++ disable-flaky-threaded-test.patch	2019-05-07 19:40:13 UTC (rev 462455)
@@ -1,23 +0,0 @@
-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

Copied: python-plop/repos/community-any/disable-flaky-threaded-test.patch (from rev 462454, python-plop/trunk/disable-flaky-threaded-test.patch)
===================================================================
--- disable-flaky-threaded-test.patch	                        (rev 0)
+++ disable-flaky-threaded-test.patch	2019-05-07 19:40:13 UTC (rev 462455)
@@ -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