initial transfer

master
artoo 4 years ago
parent 1c559af1f0
commit 6efaf014fb

@ -0,0 +1,56 @@
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-pytest-runner
pkgname=('python-pytest-runner' 'python2-pytest-runner')
pkgver=4.2
pkgrel=2
pkgdesc="Invoke py.test as distutils command with dependency resolution"
arch=('any')
license=('MIT')
url="https://github.com/pytest-dev/pytest-runner"
makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm')
checkdepends=('python-pytest-virtualenv' 'python2-pytest-virtualenv' 'python-pytest-flake8'
'python2-pytest-flake8')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz")
sha512sums=('25086a38823eeb5cac5407d5639480890415b2a3bf7fb71f289575e2a0de049c6a7657ce857c2b954718c980d8b0ccac524996e7b54f01e054cf559fb404fa75')
prepare() {
cp -a pytest-runner-$pkgver{,-py2}
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
}
build() {
cd "$srcdir"/pytest-runner-$pkgver
python setup.py build
cd "$srcdir"/pytest-runner-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/pytest-runner-$pkgver
python setup.py egg_info
PYTHONPATH="$PWD" pytest || :
cd "$srcdir"/pytest-runner-$pkgver-py2
python2 setup.py egg_info
PYTHONPATH="$PWD" pytest2 || :
}
package_python-pytest-runner() {
depends=('python-pytest')
cd pytest-runner-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-pytest-runner() {
depends=('python2-pytest')
cd pytest-runner-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

@ -0,0 +1,56 @@
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-pytest-runner
pkgname=('python-pytest-runner' 'python2-pytest-runner')
pkgver=4.2
pkgrel=2
pkgdesc="Invoke py.test as distutils command with dependency resolution"
arch=('any')
license=('MIT')
url="https://github.com/pytest-dev/pytest-runner"
makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm')
checkdepends=('python-pytest-virtualenv' 'python2-pytest-virtualenv' 'python-pytest-flake8'
'python2-pytest-flake8')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz")
sha512sums=('25086a38823eeb5cac5407d5639480890415b2a3bf7fb71f289575e2a0de049c6a7657ce857c2b954718c980d8b0ccac524996e7b54f01e054cf559fb404fa75')
prepare() {
cp -a pytest-runner-$pkgver{,-py2}
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
}
build() {
cd "$srcdir"/pytest-runner-$pkgver
python setup.py build
cd "$srcdir"/pytest-runner-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/pytest-runner-$pkgver
python setup.py egg_info
PYTHONPATH="$PWD" pytest || :
cd "$srcdir"/pytest-runner-$pkgver-py2
python2 setup.py egg_info
PYTHONPATH="$PWD" pytest2 || :
}
package_python-pytest-runner() {
depends=('python-pytest')
cd pytest-runner-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-pytest-runner() {
depends=('python2-pytest')
cd pytest-runner-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
Loading…
Cancel
Save