mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/python-pytest-plugins to 1.7.0-3
This commit is contained in:
parent
fdfc174c1a
commit
ce78f57869
1 changed files with 5 additions and 45 deletions
|
@ -4,18 +4,14 @@
|
|||
# - drop makedepend on pypandoc
|
||||
|
||||
pkgbase=python-pytest-plugins
|
||||
pkgname=('python-pytest-fixture-config' 'python2-pytest-fixture-config'
|
||||
'python-pytest-shutil' 'python2-pytest-shutil'
|
||||
'python-pytest-virtualenv' 'python2-pytest-virtualenv')
|
||||
pkgname=('python-pytest-fixture-config' 'python-pytest-shutil' 'python-pytest-virtualenv')
|
||||
pkgver=1.7.0
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
arch=('any')
|
||||
license=('BSD')
|
||||
url='https://github.com/manahl/pytest-plugins'
|
||||
makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-git' 'python2-setuptools-git'
|
||||
'python-execnet' 'python2-execnet'
|
||||
'python-path.py' 'python2-path.py' 'python-mock' 'python2-mock' 'python2-contextlib2'
|
||||
'python-virtualenv' 'python2-virtualenv' 'python-termcolor' 'python2-termcolor')
|
||||
makedepends=('python-pytest' 'python-setuptools-git' 'python-execnet' 'python-path.py'
|
||||
'python-mock' 'python-virtualenv' 'python-termcolor')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/manahl/pytest-plugins/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('6ce64f554359ae8b4e8b1cdab9908226501bad1d6bcdec9d7968133bbf0b3530842883cf3ea7ef14e09372fd1454d685d4b1bf4e8d95498b69a8b0f20177e2be')
|
||||
|
||||
|
@ -31,7 +27,6 @@ prepare() {
|
|||
|
||||
(cd pytest-plugins-$pkgver; make copyfiles)
|
||||
|
||||
cp -a pytest-plugins-$pkgver{,-py2}
|
||||
sed -i '/contextlib2/d' pytest-plugins-$pkgver/pytest-shutil/setup.py
|
||||
}
|
||||
|
||||
|
@ -39,9 +34,6 @@ build() {
|
|||
for _pkg in pytest-fixture-config pytest-shutil pytest-virtualenv; do
|
||||
cd "$srcdir"/pytest-plugins-$pkgver/$_pkg
|
||||
python setup.py build
|
||||
|
||||
cd "$srcdir"/pytest-plugins-$pkgver-py2/$_pkg
|
||||
python2 setup.py build
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -51,11 +43,7 @@ check() {
|
|||
for _pkg in pytest-fixture-config pytest-shutil pytest-virtualenv; do
|
||||
cd "$srcdir"/pytest-plugins-$pkgver/$_pkg
|
||||
python setup.py install --root="$srcdir"/tmp_install --optimize=1
|
||||
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python3.7/site-packages py.test
|
||||
|
||||
cd "$srcdir"/pytest-plugins-$pkgver-py2/$_pkg
|
||||
python2 setup.py install --root="$srcdir"/tmp_install --optimize=1
|
||||
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python2.7/site-packages py.test2
|
||||
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python3.8/site-packages py.test
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -68,15 +56,6 @@ package_python-pytest-fixture-config() {
|
|||
install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_python2-pytest-fixture-config() {
|
||||
pkgdesc='Fixture configuration utils for py.test'
|
||||
depends=('python2-pytest')
|
||||
|
||||
cd pytest-plugins-$pkgver-py2/pytest-fixture-config
|
||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
||||
install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_python-pytest-shutil() {
|
||||
pkgdesc='A goodie-bag of unix shell and environment tools for py.test'
|
||||
depends=('python-pytest' 'python-execnet' 'python-path.py' 'python-mock' 'python-termcolor')
|
||||
|
@ -86,16 +65,6 @@ package_python-pytest-shutil() {
|
|||
install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_python2-pytest-shutil() {
|
||||
pkgdesc='A goodie-bag of unix shell and environment tools for py.test'
|
||||
depends=('python2-pytest' 'python2-execnet' 'python2-path.py' 'python2-mock' 'python2-termcolor'
|
||||
'python2-contextlib2')
|
||||
|
||||
cd pytest-plugins-$pkgver-py2/pytest-shutil
|
||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
||||
install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_python-pytest-virtualenv() {
|
||||
pkgdesc='Virtualenv fixture for py.test'
|
||||
depends=('python-pytest-fixture-config' 'python-pytest-shutil' 'python-virtualenv')
|
||||
|
@ -105,13 +74,4 @@ package_python-pytest-virtualenv() {
|
|||
install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_python2-pytest-virtualenv() {
|
||||
pkgdesc='Virtualenv fixture for py.test'
|
||||
depends=('python2-pytest-fixture-config' 'python2-pytest-shutil' 'python2-virtualenv')
|
||||
|
||||
cd pytest-plugins-$pkgver-py2/pytest-virtualenv
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue