blob: 169db2a88d90bb6c84d4952a5b7fdb23f53636c2 (
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
63
64
65
|
# Maintainer: dncrash <dncrash at gmail dot com>
pkgname="molecule"
pkgver=3.0.2
pkgrel=1
pkgdesc='aids in the development and testing of Ansible roles.'
url='https://github.com/ansible/molecule'
arch=('any')
license=('MIT')
makedepends=('python' 'python-setuptools' 'python-cerberus' 'python-testinfra')
depends=('ansible'
'ansible-lint'
'python-cerberus'
'python-click'
'python-click-completion'
'python-colorama'
'python-cookiecutter'
'flake8'
'python-gilt'
'python-jinja'
'python-paramiko'
'python-pathlib2'
'python-pexpect'
'python-pluggy'
'python-pre-commit'
'python-pyaml'
'python-sh'
'python-six'
'python-subprocess2'
'python-tabulate'
'python-testinfra>=3.0.6'
'python-testinfra<4.0.0'
'python-tree-format-git'
'yamllint')
checkdepends=('python' 'python-tox')
optdepends=('python-docker: docker driver'
'python-boto: EC2 driver'
'python-vagrant: vagrant driver'
'python-shade: openstack driver')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ansible/molecule/archive/${pkgver}.tar.gz")
sha256sums=('a78050a00f51d806215e5cc5420dcb5c1403340fd25155b42f3b26d7cd10d97d')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export PBR_VERSION="${pkgver}"
python setup.py build
}
check() {
# cd "${srcdir}/${pkgname}-${pkgver}"
# tox -e py3
true
# requires tox-tags which isn't in the official packages or in AUR
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
export PBR_VERSION="${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cp -R molecule/cookiecutter "${pkgdir}/usr/lib/python3.8/site-packages/${pkgname}"
}
# vim:set ft=sh ts=2 sw=2 et:
|