1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit distutils-r1 eutils git-r3
10 DESCRIPTION="Model-driven deployment, config management, and command execution framework"
11 HOMEPAGE="http://ansible.com/"
12 # the version here is special because upstream did a 2.0.0 release on accident one time...
13 EGIT_REPO_URI="git://github.com/ansible/ansible.git"
22 keyczar? ( dev-python/keyczar[${PYTHON_USEDEP}] )
23 dev-python/paramiko[${PYTHON_USEDEP}]
24 dev-python/jinja[${PYTHON_USEDEP}]
25 dev-python/pyyaml[${PYTHON_USEDEP}]
26 dev-python/setuptools[${PYTHON_USEDEP}]
27 >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
28 dev-python/httplib2[${PYTHON_USEDEP}]
29 dev-python/six[${PYTHON_USEDEP}]
35 dev-python/setuptools[${PYTHON_USEDEP}]
36 >=dev-python/packaging-16.6[${PYTHON_USEDEP}]
39 dev-python/nose[${PYTHON_USEDEP}]
40 >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
41 <dev-python/mock-1.1[${PYTHON_USEDEP}]
42 dev-python/passlib[${PYTHON_USEDEP}]
43 dev-python/coverage[${PYTHON_USEDEP}]
44 dev-python/unittest2[${PYTHON_USEDEP}]
49 nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
52 python_compile_all() {
54 for _man in ansible{,-{galaxy,playbook,pull,vault}}; do
55 a2x -f manpage docs/man/man1/${_man}.1.asciidoc.in || die "Failed generating man page (${_man})"
59 python_install_all() {
61 distutils-r1_python_install_all
63 doman docs/man/man1/*.1