[arch-commits] Commit in python-pytest-isort/repos/community-staging-any (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Nov 10 10:33:20 UTC 2019


    Date: Sunday, November 10, 2019 @ 10:33:20
  Author: foutrelis
Revision: 525004

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-isort/repos/community-staging-any/PKGBUILD
    (from rev 525003, python-pytest-isort/trunk/PKGBUILD)
Deleted:
  python-pytest-isort/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   88 ++++++++++++++++++++++---------------------------------------
 1 file changed, 33 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-10 10:33:15 UTC (rev 525003)
+++ PKGBUILD	2019-11-10 10:33:20 UTC (rev 525004)
@@ -1,55 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-isort
-pkgname=('python-pytest-isort' 'python2-pytest-isort')
-pkgver=0.3.1
-pkgrel=3
-pkgdesc='pytest plugin to perform isort checks (import ordering)'
-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")
-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() {
-  # Hack entry points by installing it
-
-  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')
-
-  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:

Copied: python-pytest-isort/repos/community-staging-any/PKGBUILD (from rev 525003, python-pytest-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-10 10:33:20 UTC (rev 525004)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-isort
+pkgver=0.3.1
+pkgrel=3
+pkgdesc='pytest plugin to perform isort checks (import ordering)'
+arch=('any')
+license=('BSD')
+url='https://github.com/moccu/pytest-isort'
+depends=('python-pytest-cache' 'python-isort')
+source=("$pkgnsme-$pkgver.tar.gz::https://github.com/moccu/pytest-isort/archive/$pkgver.tar.gz")
+sha512sums=('453dc5c1098f749220111bf9df39ac0624626799c3b642009204edab5c4f5e540e2790b50c4337a5d0d42555eee45424c3938c86564e3d1822de0ab64d1350c5')
+
+build() {
+  cd "$srcdir"/pytest-isort-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  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
+}
+
+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
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list