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

Felix Yan felixonmars at archlinux.org
Tue Sep 11 17:37:28 UTC 2018


    Date: Tuesday, September 11, 2018 @ 17:37:27
  Author: felixonmars
Revision: 379760

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-11 17:37:16 UTC (rev 379759)
+++ PKGBUILD	2018-09-11 17:37:27 UTC (rev 379760)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at 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:

Copied: python-pytest-isort/repos/community-any/PKGBUILD (from rev 379758, python-pytest-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-11 17:37:27 UTC (rev 379760)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-isort
+pkgname=('python-pytest-isort' 'python2-pytest-isort')
+pkgver=0.2.1
+pkgrel=1
+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=('49eacc3913d75ce8ee61fbd84e2b3e8b792a7895b32d8a4a7df766079d8598410654bf548c221c3262034f792b22508151316dfbe76dcc296d4b79dd281843c7')
+
+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.7/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:



More information about the arch-commits mailing list