1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_REQ_USE="sqlite"
6 PYTHON_COMPAT=( python2_7 python3_6 )
8 EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
10 [[ ${PV} == *9999 ]] && inherit git-r3
13 DESCRIPTION="BuildBot base web interface, use with buildbot-{console-view,waterfall-view}..."
14 HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot-www/"
16 MY_PV="${PV/_p/.post}"
18 [[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
23 if [[ ${PV} == *9999 ]]; then
30 RESTRICT="!test? ( test )"
35 >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
36 ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
37 ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}]
38 dev-python/mock[${PYTHON_USEDEP}]
41 S="${WORKDIR}/${MY_P}"
42 #[[ ${PV} == *9999 ]] && S=${S}/www/base
45 distutils_install_for_testing
47 esetup.py test || die "Tests failed under ${EPYTHON}"
50 python_install_all() {
51 distutils-r1_python_install_all