Date: Tuesday, July 3, 2018 @ 10:56:37
  Author: felixonmars
Revision: 350809

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-isort/repos/community-staging-any/PKGBUILD (from rev 
350808, python-pytest-isort/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2018-07-03 10:56:37 UTC (rev 350809)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-pytest-isort
+pkgname=('python-pytest-isort' 'python2-pytest-isort')
+pkgver=0.2.0
+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' 'git')
+source=("git+https://github.com/moccu/pytest-isort#tag=$pkgver";)
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a pytest-isort{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pytest-isort
+  python setup.py build
+
+  cd "$srcdir"/pytest-isort-py2
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/pytest-isort
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" 
py.test
+
+  cd "$srcdir"/pytest-isort-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
+  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-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:

Reply via email to