blob: b49ca5b0853ef3883b7d47dd660f70be19ab4c8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Andy Botting <andy@andybotting.com>
_module='futurist'
pkgname=('python-futurist' 'python2-futurist')
pkgver='1.8.0'
pkgrel='1'
pkgdesc='Oslo Log library'
arch=('any')
url="https://docs.openstack.org/developer/${_module}/"
license=('Apache')
makedepends=('git' 'python-setuptools' 'python2-setuptools'
'python-pbr' 'python2-pbr'
'python-six' 'python2-six'
'python-monotonic' 'python2-monotonic'
'python2-futures'
'python2-contextlib2'
'python-prettytable' 'python2-prettytable')
checkdepends=('python-eventlet' 'python2-eventlet'
'python-oslotest' 'python2-oslotest'
'python-testrepository' 'python2-testrepository'
'python-testscenarios' 'python2-testscenarios'
'python-testtools' 'python2-testtools')
source=("https://github.com/openstack/${_module}/archive/${pkgver}.tar.gz")
sha512sums=('ab438d8ddaee50eb67674195def2d2d2e3646ad073ee21d867870b0f239f750eced8a51bc05dce9aa834ca483835f5aaeff52d148d11389c7d4bcbb13c3b8c1a')
prepare() {
cp -a "${srcdir}/${_module}-${pkgver}"{,-py2}
export PBR_VERSION=$pkgver
}
build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
cd "${srcdir}/${_module}-${pkgver}-py2"
python2 setup.py build
}
# Tests disabled due to eventlet issues
check() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py test
cd "${srcdir}/${_module}-${pkgver}-py2"
PYTHON=python2 python2 setup.py test
}
package_python-futurist() {
depends=('python-pbr' 'python-six' 'python-monotonic'
'python-prettytable')
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
}
package_python2-futurist() {
depends=('python2-pbr' 'python2-six' 'python2-monotonic' 'python2-futures'
'python2-contextlib2' 'python2-prettytable')
cd "${srcdir}/${_module}-${pkgver}-py2"
python2 setup.py install --root="${pkgdir}/" --optimize=1
}
# vim:set ts=2 sw=2 et:
|