blob: a7646ee4fa03a655b810338d85a0927ae25e5437 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/tox/tox-1.4.2.ebuild,v 1.3 2012/10/31 08:56:59 mgorny Exp $
EAPI=4
PYTHON_DEPEND="*"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils
DESCRIPTION="virtualenv-based automation of test activities"
HOMEPAGE="http://tox.testrun.org http://pypi.python.org/pypi/tox"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="dev-python/setuptools
>=dev-python/virtualenv-1.7
dev-python/pip
dev-python/pytest
>=dev-python/py-1.4.9
virtual/python-argparse
doc? ( dev-python/sphinx )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-rm_version_test.patch
}
src_compile() {
distutils_src_compile
use doc && emake -C doc html
}
src_test() {
testing() {
PYTHONPATH=. py.test -x
}
python_execute_function testing
}
src_install() {
distutils_src_install
use doc && dohtml -r doc/_build/html/
}
|