mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 17:43:12 +08:00
Add some more python tests deps, but not build them yet [skip ci]
This commit is contained in:
parent
46638746e3
commit
75851a0fe6
54
python-aspectlib/PKGBUILD
Normal file
54
python-aspectlib/PKGBUILD
Normal file
@ -0,0 +1,54 @@
|
||||
# $Id$
|
||||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
|
||||
pkgbase=python-aspectlib
|
||||
pkgname=('python-aspectlib' 'python2-aspectlib')
|
||||
pkgver=1.4.2
|
||||
pkgrel=2
|
||||
pkgdesc="Development library for quickly writing configurable applications and daemons"
|
||||
arch=('any')
|
||||
license=('BSD')
|
||||
url="https://github.com/ionelmc/python-aspectlib"
|
||||
makedepends=('python-setuptools' 'python2-setuptools' 'git')
|
||||
checkdepends=('python-mock'
|
||||
'python2-mock' 'python-tornado' 'python2-tornado' 'python-process-tests'
|
||||
'python2-process-tests' 'python2-trollius' 'python-profilestats'
|
||||
'python2-profilestats') # 'mysql-python')
|
||||
source=("git+https://github.com/ionelmc/python-aspectlib.git#tag=v$pkgver")
|
||||
sha512sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cp -a python-aspectlib{,-py2}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/python-aspectlib
|
||||
python setup.py build
|
||||
|
||||
cd "$srcdir"/python-aspectlib-py2
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"/python-aspectlib
|
||||
LC_CTYPE=en_US.UTF-8 py.test
|
||||
|
||||
cd "$srcdir"/python-aspectlib-py2
|
||||
py.test2
|
||||
}
|
||||
|
||||
package_python-aspectlib() {
|
||||
depends=('python')
|
||||
|
||||
cd python-aspectlib
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_python2-aspectlib() {
|
||||
depends=('python2')
|
||||
|
||||
cd python-aspectlib-py2
|
||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
||||
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
52
python-elasticsearch/PKGBUILD
Normal file
52
python-elasticsearch/PKGBUILD
Normal file
@ -0,0 +1,52 @@
|
||||
# $Id$
|
||||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
|
||||
pkgbase=python-elasticsearch
|
||||
pkgname=('python-elasticsearch' 'python2-elasticsearch')
|
||||
pkgver=6.1.1
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc='Python client for Elasticsearch'
|
||||
url='https://github.com/elastic/elasticsearch-py'
|
||||
license=('Apache')
|
||||
makedepends=('python-setuptools' 'python2-setuptools' 'python-urllib3' 'python2-urllib3')
|
||||
checkdepends=('python-nose' 'python2-nose' 'python-requests' 'python2-requests' 'python-coverage'
|
||||
'python2-coverage' 'python-mock' 'python2-mock' 'python-pyaml' 'python2-pyaml'
|
||||
'python-nosexcover' 'python2-nosexcover')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/elastic/elasticsearch-py/archive/$pkgver.tar.gz")
|
||||
sha512sums=('f593865de8879ac42cbbd35dd6bcc1da9513124556dcd3f1d8240e9d2818682136bfac09387c50797f4daada33699a7f5c1591172a7d89c3bd865595a5706c18')
|
||||
|
||||
prepare() {
|
||||
sed -i 's/urllib3<.*,>/urllib3>/' elasticsearch-py-$pkgver/setup.py
|
||||
cp -a elasticsearch-py-$pkgver{,-py2}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/elasticsearch-py-$pkgver
|
||||
python setup.py build
|
||||
|
||||
cd "$srcdir"/elasticsearch-py-$pkgver-py2
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"/elasticsearch-py-$pkgver
|
||||
python setup.py nosetests
|
||||
|
||||
cd "$srcdir"/elasticsearch-py-$pkgver-py2
|
||||
python2 setup.py nosetests
|
||||
}
|
||||
|
||||
package_python-elasticsearch() {
|
||||
depends=('python-urllib3')
|
||||
|
||||
cd elasticsearch-py-$pkgver
|
||||
python setup.py install --root "$pkgdir" --optimize=1
|
||||
}
|
||||
|
||||
package_python2-elasticsearch() {
|
||||
depends=('python2-urllib3')
|
||||
|
||||
cd elasticsearch-py-$pkgver-py2
|
||||
python2 setup.py install --root "$pkgdir" --optimize=1
|
||||
}
|
50
python-freezegun/PKGBUILD
Normal file
50
python-freezegun/PKGBUILD
Normal file
@ -0,0 +1,50 @@
|
||||
# $Id$
|
||||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
|
||||
pkgbase=python-freezegun
|
||||
pkgname=('python-freezegun' 'python2-freezegun')
|
||||
pkgver=0.3.10
|
||||
pkgrel=1
|
||||
pkgdesc="Let your Python tests travel through time"
|
||||
arch=('any')
|
||||
license=('Apache')
|
||||
url="https://github.com/spulec/freezegun"
|
||||
makedepends=('python-setuptools' 'python2-setuptools' 'python-dateutil' 'python2-dateutil')
|
||||
checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock'
|
||||
'python-coverage' 'python2-coverage' 'python-dateutil' 'python2-dateutil')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/spulec/freezegun/archive/$pkgver.tar.gz")
|
||||
sha512sums=('5914a219000898d1840e8bd014f4a9dd23da4ae0b6b2761102ffb25a88a0031fec05d3f75684a4e17249f4b5138f9b69ff3f950bb840ea5f2aad97341be396de')
|
||||
|
||||
prepare() {
|
||||
cp -a freezegun-$pkgver{,-py2}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/freezegun-$pkgver
|
||||
python setup.py build
|
||||
|
||||
cd "$srcdir"/freezegun-$pkgver-py2
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"/freezegun-$pkgver
|
||||
nosetests3
|
||||
|
||||
cd "$srcdir"/freezegun-$pkgver-py2
|
||||
nosetests2
|
||||
}
|
||||
|
||||
package_python-freezegun() {
|
||||
depends=('python-dateutil')
|
||||
|
||||
cd freezegun-$pkgver
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
}
|
||||
|
||||
package_python2-freezegun() {
|
||||
depends=('python2-dateutil')
|
||||
|
||||
cd freezegun-$pkgver-py2
|
||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
||||
}
|
59
python-pygal/PKGBUILD
Normal file
59
python-pygal/PKGBUILD
Normal file
@ -0,0 +1,59 @@
|
||||
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
||||
# Contributor: Chris Warrick <aur@chriswarrick.com>
|
||||
|
||||
pkgbase=python-pygal
|
||||
pkgname=('python3-pygal' 'python2-pygal')
|
||||
epoch=1
|
||||
pkgver=2.4.0
|
||||
pkgrel=1
|
||||
pkgdesc='A Python SVG graph plotting library'
|
||||
arch=('any')
|
||||
url='http://pygal.org/'
|
||||
license=('LGPL3')
|
||||
makedepends=('python3-setuptools' 'python2-setuptools')
|
||||
checkdepends=('python3-pytest' 'python2-pytest' 'python3-lxml' 'python2-lxml'
|
||||
'python3-pyquery' 'python2-pyquery' 'python3-flask' # 'python3-cairosvg'
|
||||
'python2-flask' 'python3-pytest-runner' 'python2-pytest-runner')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/Kozea/pygal/archive/$pkgver.tar.gz")
|
||||
md5sums=('5c688d30f8e75dced194bfa612f45589')
|
||||
|
||||
prepare() {
|
||||
cp -a pygal-$pkgver{,-py2}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/pygal-$pkgver
|
||||
python3 setup.py build
|
||||
|
||||
cd "$srcdir"/pygal-$pkgver-py2
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"/pygal-$pkgver
|
||||
LC_CTYPE=en_US.UTF-8 py.test pygal/
|
||||
|
||||
cd "$srcdir"/pygal-$pkgver-py2
|
||||
py.test2 pygal/
|
||||
}
|
||||
|
||||
package_python3-pygal() {
|
||||
depends=('python3-setuptools')
|
||||
optdepends=('python3-lxml: for XML output through lxml instead of xml.etree'
|
||||
'python3-cairosvg: for PNG output')
|
||||
|
||||
cd pygal-$pkgver
|
||||
python3 setup.py install --root="$pkgdir" --optimize=1
|
||||
}
|
||||
|
||||
package_python2-pygal() {
|
||||
depends=('python2-setuptools')
|
||||
optdepends=('python2-lxml: for XML output through lxml instead of xml.etree')
|
||||
|
||||
cd pygal-$pkgver-py2
|
||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
||||
|
||||
mv "$pkgdir"/usr/bin/pygal_gen{,2}.py
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
Loading…
Reference in New Issue
Block a user