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

Felix Yan felixonmars at archlinux.org
Fri May 31 09:04:35 UTC 2019


    Date: Friday, May 31, 2019 @ 09:04:34
  Author: felixonmars
Revision: 475890

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-31 09:04:20 UTC (rev 475889)
+++ PKGBUILD	2019-05-31 09:04:34 UTC (rev 475890)
@@ -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.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:

Copied: python-pytest-isort/repos/community-any/PKGBUILD (from rev 475889, python-pytest-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-31 09:04:34 UTC (rev 475890)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-isort
+pkgname=('python-pytest-isort' 'python2-pytest-isort')
+pkgver=0.3.0
+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=('cdcd4f76c2891ce3b7a460c9c9340e0e7ea5f84036e46830194d4c6a7fb8d8936901fa4baee4e7173d49e059b51a72f9f28a74e9e1e296ca0bcf37d703d77cc3')
+
+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