From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3CC39158020 for ; Mon, 5 Dec 2022 18:24:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41B0BE0837; Mon, 5 Dec 2022 18:24:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2430DE0837 for ; Mon, 5 Dec 2022 18:24:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1601E3410E8 for ; Mon, 5 Dec 2022 18:24:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CEDB6F2 for ; Mon, 5 Dec 2022 18:24:53 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1670264688.3355dcdb426547d40c8633b9f1a17b74e9ea7def.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rbtools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rbtools/rbtools-4.0-r1.ebuild X-VCS-Directories: dev-util/rbtools/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 3355dcdb426547d40c8633b9f1a17b74e9ea7def X-VCS-Branch: master Date: Mon, 5 Dec 2022 18:24:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4eac20d6-f819-42a8-8998-a0685f749781 X-Archives-Hash: 031b4f972c90cbe671041b593344afa1 commit: 3355dcdb426547d40c8633b9f1a17b74e9ea7def Author: Hans de Graaff gentoo org> AuthorDate: Mon Dec 5 18:15:13 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Dec 5 18:24:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3355dcdb dev-util/rbtools: loosen importlib_metadata dependency Closes: https://bugs.gentoo.org/883027 Signed-off-by: Hans de Graaff gentoo.org> dev-util/rbtools/rbtools-4.0-r1.ebuild | 66 ++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) 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 +}