[arch-commits] Commit in python-pytest-relaxed/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:26:59 UTC 2019
Date: Saturday, October 26, 2019 @ 20:26:57
Author: felixonmars
Revision: 520532
archrelease: copy trunk to community-staging-any
Added:
python-pytest-relaxed/repos/community-staging-any/
python-pytest-relaxed/repos/community-staging-any/PKGBUILD
(from rev 520531, python-pytest-relaxed/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-pytest-relaxed/repos/community-staging-any/PKGBUILD (from rev 520531, python-pytest-relaxed/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:26:57 UTC (rev 520532)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-relaxed
+pkgname=('python-pytest-relaxed' 'python2-pytest-relaxed')
+pkgver=1.1.5
+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-$pkgver.tar.gz::https://github.com/bitprophet/pytest-relaxed/archive/$pkgver.tar.gz")
+sha512sums=('a5484bc92be29e5228afb7d9911c1d3a7d6e493bec44af541780de24b91dfa8e8c9e1245acd8ae8670805294eb52b20f7c4abefad1afb8373109249a2df1cdaa')
+
+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.8/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