blob: 0ecace3b57c2ed4f88ae22bc6fb7a1014c1b5208 (
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
|
# Maintainer: Andy Botting <andy@andybotting.com>
_module='futurist'
pkgname=('python-futurist' 'python2-futurist')
pkgver='1.7.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=("git+https://git.openstack.org/openstack/${_module}#tag=${pkgver}")
sha512sums=('SKIP')
prepare() {
cp -a "${srcdir}/${_module}"{,-py2}
}
build() {
cd "${srcdir}/${_module}"
python setup.py build
cd "${srcdir}/${_module}-py2"
python2 setup.py build
}
check() {
cd "${srcdir}/${_module}"
python setup.py test
cd "${srcdir}/${_module}-py2"
PYTHON=python2 python2 setup.py test
}
package_python-futurist() {
depends=('python-pbr' 'python-six' 'python-monotonic'
'python-prettytable')
cd "${srcdir}/${_module}"
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}-py2"
python2 setup.py install --root="${pkgdir}/" --optimize=1
}
# vim:set ts=2 sw=2 et:
|