summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-12-05 19:15:13 +0100
committerHans de Graaff <graaff@gentoo.org>2022-12-05 19:24:48 +0100
commit3355dcdb426547d40c8633b9f1a17b74e9ea7def (patch)
tree9718de81596c851d4cfb22ece70c6a19135b4059 /dev-util/rbtools/rbtools-4.0-r1.ebuild
parentdev-ml/menhir: BetterCompressionUri (diff)
downloadgentoo-3355dcdb426547d40c8633b9f1a17b74e9ea7def.tar.gz
gentoo-3355dcdb426547d40c8633b9f1a17b74e9ea7def.tar.bz2
gentoo-3355dcdb426547d40c8633b9f1a17b74e9ea7def.zip
dev-util/rbtools: loosen importlib_metadata dependency
Closes: https://bugs.gentoo.org/883027 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-util/rbtools/rbtools-4.0-r1.ebuild')
-rw-r--r--dev-util/rbtools/rbtools-4.0-r1.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-util/rbtools/rbtools-4.0-r1.ebuild b/dev-util/rbtools/rbtools-4.0-r1.ebuild
new file mode 100644
index 000000000000..ca0cc849f0c3
--- /dev/null
+++ b/dev-util/rbtools/rbtools-4.0-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{8,9,10,11} )
+
+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/importlib_metadata-4.12[${PYTHON_USEDEP}]
+ dev-python/colorama[${PYTHON_USEDEP}]
+ >=dev-python/pydiffx-1.1[${PYTHON_USEDEP}]
+ =dev-python/pydiffx-1.1*[${PYTHON_USEDEP}]
+ >=dev-python/six-1.8.0[${PYTHON_USEDEP}]
+ dev-python/texttable[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.3.0[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/kgb-6.1[${PYTHON_USEDEP}]
+ dev-python/pytest-env[${PYTHON_USEDEP}]
+ dev-vcs/git
+ dev-vcs/mercurial
+ )
+"
+
+DOCS=( AUTHORS NEWS README.md )
+
+S=${WORKDIR}/${MY_P}
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ default
+
+ # Avoid tests requiring unpackaged test data
+ rm -f rbtools/clients/tests/test_scanning.py || die
+
+ # Avoid repository specific tests to avoid dependencies on them
+ rm -f rbtools/clients/tests/test_{cvs,git,mercurial,svn}.py || die
+
+ # Fix test that appears to expect case-insentive comparison
+ sed -i -e 's/TEST CONTENT/Test content/' rbtools/utils/tests/test_console.py || die
+
+ # Loosen importlib_metadata dependency
+ sed -i -e '/importlib_metadata/ s/~=/>=/' RBTools.egg-info/requires.txt setup.py || die
+}
+
+python_test() {
+ distutils_install_for_testing
+ distutils-r1_python_test
+}