[arch-commits] Commit in python-pytest-timeout/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Jan 12 14:49:10 UTC 2020


    Date: Sunday, January 12, 2020 @ 14:49:10
  Author: felixonmars
Revision: 552235

archrelease: copy trunk to community-any

Added:
  python-pytest-timeout/repos/community-any/PKGBUILD
    (from rev 552234, python-pytest-timeout/trunk/PKGBUILD)
Deleted:
  python-pytest-timeout/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  115 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 56 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-12 14:48:55 UTC (rev 552234)
+++ PKGBUILD	2020-01-12 14:49:10 UTC (rev 552235)
@@ -1,59 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-timeout
-pkgname=('python-pytest-timeout' 'python2-pytest-timeout')
-pkgver=1.3.3
-pkgrel=3
-pkgdesc='py.test plugin to abort hanging tests'
-arch=('any')
-license=('MIT')
-url='https://bitbucket.org/pytest-dev/pytest-timeout'
-makedepends=('python-pytest' 'python2-pytest' 'mercurial')
-checkdepends=('python-pexpect' 'python2-pexpect')
-source=("hg+https://bitbucket.org/pytest-dev/pytest-timeout#tag=$pkgver")
-sha512sums=('SKIP')
-
-prepare() {
-  # Workaround for https://bitbucket.org/pytest-dev/pytest-timeout/issues/40/test-failures-with-pytest-522
-  sed -i "s/have_sigalrm('signal')/'signal'/" pytest-timeout/test_pytest_timeout.py
-
-  cp -a pytest-timeout{,-py2}
-}
-
-build() {
-  cd "$srcdir"/pytest-timeout
-  python setup.py build
-
-  cd "$srcdir"/pytest-timeout-py2
-  python2 setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd "$srcdir"/pytest-timeout
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
-
-  cd "$srcdir"/pytest-timeout-py2
-  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
-}
-
-package_python-pytest-timeout() {
-  depends=('python-pytest')
-
-  cd pytest-timeout
-  python setup.py install --root="$pkgdir"/ --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pytest-timeout() {
-  depends=('python2-pytest')
-
-  cd pytest-timeout-py2
-  python2 setup.py install --root="$pkgdir"/ --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-timeout/repos/community-any/PKGBUILD (from rev 552234, python-pytest-timeout/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-01-12 14:49:10 UTC (rev 552235)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-timeout
+pkgname=('python-pytest-timeout' 'python2-pytest-timeout')
+pkgver=1.3.4
+pkgrel=1
+pkgdesc='py.test plugin to abort hanging tests'
+arch=('any')
+license=('MIT')
+url='https://bitbucket.org/pytest-dev/pytest-timeout'
+makedepends=('python-pytest' 'python2-pytest')
+checkdepends=('python-pexpect' 'python2-pexpect')
+source=("https://github.com/pytest-dev/pytest-timeout/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('5a05d34f76429291a3a9eae49c7e8e919a00a80c453de51b3a11d52c45822d3c1d5b3064366aa2a453cab9f7747e9ae8cc6f64cf569df72724a149e8dc584ccd')
+
+prepare() {
+  cp -a pytest-timeout-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pytest-timeout-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/pytest-timeout-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/pytest-timeout-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
+
+  cd "$srcdir"/pytest-timeout-$pkgver-py2
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_python-pytest-timeout() {
+  depends=('python-pytest')
+
+  cd pytest-timeout-$pkgver
+  python setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pytest-timeout() {
+  depends=('python2-pytest')
+
+  cd pytest-timeout-$pkgver-py2
+  python2 setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list