[arch-commits] Commit in python-pytest-relaxed/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Aug 17 06:35:09 UTC 2018
Date: Friday, August 17, 2018 @ 06:35:08
Author: felixonmars
Revision: 372129
archrelease: copy trunk to community-any
Added:
python-pytest-relaxed/repos/community-any/PKGBUILD
(from rev 372128, python-pytest-relaxed/trunk/PKGBUILD)
Deleted:
python-pytest-relaxed/repos/community-any/PKGBUILD
----------+
PKGBUILD | 116 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 57 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-17 06:34:47 UTC (rev 372128)
+++ PKGBUILD 2018-08-17 06:35:08 UTC (rev 372129)
@@ -1,59 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-relaxed
-pkgname=('python-pytest-relaxed' 'python2-pytest-relaxed')
-pkgver=1.1.2
-_commit=9cd769ce3b2145b5d9adf3631f839982436bb24e
-pkgrel=2
-pkgdesc='Relaxed test discovery for pytest'
-arch=('any')
-license=('BSD')
-url='https://github.com/bitprophet/pytest-relaxed'
-makedepends=('python-pytest32' 'python2-pytest32' 'python-decorator' 'python2-decorator'
- 'python-six' 'python2-six')
-source=("$pkgbase-$_commit.tar.gz::https://github.com/bitprophet/pytest-relaxed/archive/$_commit.tar.gz")
-sha512sums=('7f3dbd729a19862cd813a411a142bbb1d612749336353a94c77f3f74a45b8df3e6a3bf7fe1bc59e63673c0b254409b0d970b6e3045a87591a816a1b17e48ffe2')
-
-prepare() {
- mv pytest-relaxed-{$_commit,$pkgver}
- cp -a pytest-relaxed-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/pytest-relaxed-$pkgver
- python setup.py build
-
- cd "$srcdir"/pytest-relaxed-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- # Hack entry points by installing it
-
- cd "$srcdir"/pytest-relaxed-$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-relaxed-$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-relaxed() {
- depends=('python-pytest32' 'python-decorator' 'python-six')
-
- cd pytest-relaxed-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pytest-relaxed() {
- depends=('python2-pytest32' 'python2-decorator' 'python2-six')
-
- cd pytest-relaxed-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-pytest-relaxed/repos/community-any/PKGBUILD (from rev 372128, python-pytest-relaxed/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-08-17 06:35:08 UTC (rev 372129)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-relaxed
+pkgname=('python-pytest-relaxed' 'python2-pytest-relaxed')
+pkgver=1.1.4
+pkgrel=1
+pkgdesc='Relaxed test discovery for pytest'
+arch=('any')
+license=('BSD')
+url='https://github.com/bitprophet/pytest-relaxed'
+makedepends=('python-pytest32' 'python2-pytest32' 'python-decorator' 'python2-decorator'
+ 'python-six' 'python2-six')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/bitprophet/pytest-relaxed/archive/$pkgver.tar.gz")
+sha512sums=('02b8ab59803d510b7e5b771b7ff4b090dc5846b5889e47190c1811b271d0ff8db90fb704d0c1bc7e5ac87be8e815f211baaef44cb9a8170b473a9580b34ecc97')
+
+prepare() {
+ cp -a pytest-relaxed-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pytest-relaxed-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pytest-relaxed-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/pytest-relaxed-$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-relaxed-$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-relaxed() {
+ depends=('python-pytest32' 'python-decorator' 'python-six')
+
+ cd pytest-relaxed-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pytest-relaxed() {
+ depends=('python2-pytest32' 'python2-decorator' 'python2-six')
+
+ cd pytest-relaxed-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list