1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 pypy3 )
10 DESCRIPTION="Virtual Python Environment builder"
12 https://virtualenv.pypa.io/en/stable/
13 https://pypi.org/project/virtualenv/
14 https://github.com/pypa/virtualenv/
16 SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
19 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
22 RESTRICT="!test? ( test )"
26 >=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}]
27 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
29 dev-python/mock[${PYTHON_USEDEP}]
30 dev-python/pytest[${PYTHON_USEDEP}]
33 DOCS=( docs/index.rst docs/changes.rst )
36 "${FILESDIR}"/${PN}-12.1.1-skip-broken-test.patch
39 python_compile_all() {
40 use doc && emake -C docs html
44 py.test -v -v || die "Tests fail with ${EPYTHON}"
47 python_install_all() {
48 use doc && local HTML_DOCS=( docs/_build/html/. )
49 distutils-r1_python_install_all