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

Antonio Rojas arojas at archlinux.org
Sat Nov 9 20:26:18 UTC 2019


    Date: Saturday, November 9, 2019 @ 20:26:17
  Author: arojas
Revision: 524889

Drop python2

Modified:
  python-pytest-isort/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++--------------------------
 1 file changed, 4 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-09 20:24:17 UTC (rev 524888)
+++ PKGBUILD	2019-11-09 20:26:17 UTC (rev 524889)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pytest-isort
-pkgname=('python-pytest-isort' 'python2-pytest-isort')
+pkgname=python-pytest-isort
 pkgver=0.3.1
 pkgrel=3
 pkgdesc='pytest plugin to perform isort checks (import ordering)'
@@ -8,20 +7,13 @@
 arch=('any')
 license=('BSD')
 url='https://github.com/moccu/pytest-isort'
-makedepends=('python-pytest-cache' 'python2-pytest-cache' 'python-isort' 'python2-isort')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/moccu/pytest-isort/archive/$pkgver.tar.gz")
+depends=('python-pytest-cache' 'python-isort')
+source=("$pkgnsme-$pkgver.tar.gz::https://github.com/moccu/pytest-isort/archive/$pkgver.tar.gz")
 sha512sums=('453dc5c1098f749220111bf9df39ac0624626799c3b642009204edab5c4f5e540e2790b50c4337a5d0d42555eee45424c3938c86564e3d1822de0ab64d1350c5')
 
-prepare() {
-  cp -a pytest-isort-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/pytest-isort-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pytest-isort-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -30,26 +22,12 @@
   cd "$srcdir"/pytest-isort-$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-isort-$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-isort() {
-  depends=('python-pytest-cache' 'python-isort')
-
+package() {
   cd pytest-isort-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
 }
 
-package_python2-pytest-isort() {
-  depends=('python2-pytest-cache' 'python2-isort')
-
-  cd pytest-isort-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list