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 2AAFA15810F for ; Tue, 6 Jun 2023 17:53:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BAF24E087F; Tue, 6 Jun 2023 17:52:59 +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 8BFA7E084E for ; Tue, 6 Jun 2023 17:52:59 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F10B340D3A for ; Tue, 6 Jun 2023 17:52:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25F69A89 for ; Tue, 6 Jun 2023 17:52:57 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1686073967.43ba8a1c47971e902548968359cc6856b6213f69.arthurzam@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-r2.ebuild X-VCS-Directories: dev-util/rbtools/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 43ba8a1c47971e902548968359cc6856b6213f69 X-VCS-Branch: master Date: Tue, 6 Jun 2023 17:52:57 +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: 0ed1f234-cfc5-4544-b3a4-1b1d9d59444b X-Archives-Hash: c73ea266f20ab84a0c67d29c14df50ca commit: 43ba8a1c47971e902548968359cc6856b6213f69 Author: Arthur Zamarin gentoo org> AuthorDate: Tue Jun 6 17:49:51 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Tue Jun 6 17:52:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43ba8a1c dev-util/rbtools: PEP517 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/rbtools/rbtools-4.0-r2.ebuild | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/dev-util/rbtools/rbtools-4.0-r2.ebuild b/dev-util/rbtools/rbtools-4.0-r2.ebuild new file mode 100644 index 000000000000..47594aae9c17 --- /dev/null +++ b/dev-util/rbtools/rbtools-4.0-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{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" +S=${WORKDIR}/${MY_P} + +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}] +" +BDEPEND=" + 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 ) + +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 +}