[arch-commits] Commit in python-pytest-isort/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 06:13:53 UTC 2019
Date: Monday, November 4, 2019 @ 06:13:52
Author: felixonmars
Revision: 523334
archrelease: copy trunk to community-staging-any
Added:
python-pytest-isort/repos/community-staging-any/PKGBUILD
(from rev 523333, python-pytest-isort/trunk/PKGBUILD)
Deleted:
python-pytest-isort/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 110 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-04 06:13:36 UTC (rev 523333)
+++ PKGBUILD 2019-11-04 06:13:52 UTC (rev 523334)
@@ -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=2
-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 523333, python-pytest-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-04 06:13:52 UTC (rev 523334)
@@ -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.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:
More information about the arch-commits
mailing list