mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
49 lines
991 B
Bash
49 lines
991 B
Bash
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgbase=python-genty
|
|
pkgname=('python3-genty' 'python2-genty')
|
|
pkgver=1.3.2
|
|
pkgrel=2
|
|
pkgdesc="Allows you to run a test with multiple data sets"
|
|
arch=('any')
|
|
license=('Apache')
|
|
url="https://github.com/box/genty"
|
|
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-six' 'python2-six' 'git')
|
|
checkdepends=('python3-mock' 'python2-mock')
|
|
source=("git+https://github.com/box/genty.git#tag=v$pkgver")
|
|
sha512sums=('SKIP')
|
|
|
|
prepare() {
|
|
cp -a genty{,-py2}
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/genty"
|
|
python3 setup.py build
|
|
|
|
cd "$srcdir/genty-py2"
|
|
python2 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/genty"
|
|
python3 setup.py test
|
|
|
|
cd "$srcdir/genty-py2"
|
|
python2 setup.py test
|
|
}
|
|
|
|
package_python3-genty() {
|
|
depends=('python3-six')
|
|
|
|
cd genty
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1
|
|
}
|
|
|
|
package_python2-genty() {
|
|
depends=('python2-six')
|
|
|
|
cd genty-py2
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
}
|