[arch-commits] Commit in python-pytest-timeout/trunk (PKGBUILD)

Jelle van der Waa jelle at gemini.archlinux.org
Wed Oct 27 20:17:36 UTC 2021


    Date: Wednesday, October 27, 2021 @ 20:17:36
  Author: jelle
Revision: 1034784

Drop python2 module

Modified:
  python-pytest-timeout/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++---------------------------
 1 file changed, 6 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-27 20:12:29 UTC (rev 1034783)
+++ PKGBUILD	2021-10-27 20:17:36 UTC (rev 1034784)
@@ -1,28 +1,21 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pytest-timeout
-pkgname=('python-pytest-timeout' 'python2-pytest-timeout')
+pkgname=python-pytest-timeout
 pkgver=1.4.2
-pkgrel=4
+pkgrel=5
 pkgdesc='py.test plugin to abort hanging tests'
 arch=('any')
 license=('MIT')
 url='https://bitbucket.org/pytest-dev/pytest-timeout'
-makedepends=('python-setuptools' 'python-pytest' 'python2-setuptools' 'python2-pytest')
-checkdepends=('python-pexpect' 'python2-pexpect' 'python-pytest-cov')
+depends=('python-pytest')
+makedepends=('python-setuptools' 'python-pytest')
+checkdepends=('python-pexpect' 'python-pytest-cov')
 source=("https://github.com/pytest-dev/pytest-timeout/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha512sums=('062ce6c832a7139874ad8f165818c2a7d9cef4a2fe2c53a6c37d4f0a060cf920204f1d2d255e4d31953c0da268e708c1d305f362cd6d0ea103bc101ffb51b098')
 
-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() {
@@ -31,26 +24,12 @@
   cd "$srcdir"/pytest-timeout-$pkgver
   python setup.py install --root="$PWD/tmp_install" --optimize=1
   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/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 -k 'not cov'
 }
 
-package_python-pytest-timeout() {
-  depends=('python-pytest')
-
+package() {
   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