You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
PYTHON_COMPAT=( python3_{8,9,10} )
|
|
|
|
inherit distutils-r1
|
|
|
|
MY_PN="RBTools"
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
DESCRIPTION="Command line tools for use with Review Board"
|
|
HOMEPAGE="https://www.reviewboard.org/"
|
|
SRC_URI="https://downloads.reviewboard.org/releases/${MY_PN}/$(ver_cut 1-2)/${MY_P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="
|
|
>=dev-python/six-1.8.0[${PYTHON_USEDEP}]
|
|
dev-python/tqdm[${PYTHON_USEDEP}]
|
|
dev-python/texttable[${PYTHON_USEDEP}]
|
|
dev-python/colorama[${PYTHON_USEDEP}]
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
"
|
|
|
|
DOCS=( AUTHORS NEWS README.md )
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
distutils_enable_tests nose
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Avoid tests with unpackaged kgb for now
|
|
rm -f rbtools/clients/tests/test_svn.py rbtools/clients/tests/test_git.py \
|
|
rbtools/clients/tests/test_mercurial.py rbtools/utils/tests.py \
|
|
rbtools/commands/tests/test_setup_repo.py rbtools/api/tests/test_http_request.py || die
|
|
|
|
# Avoid tests requiring unpackaged test data
|
|
rm -f rbtools/clients/tests/test_scanning.py || die
|
|
}
|
|
|
|
python_test() {
|
|
distutils_install_for_testing
|
|
distutils-r1_python_test
|
|
}
|