diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-09 00:08:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-09 00:08:14 +0100 |
commit | 4fe228ee9aa3b9b825d54ace549a5517e153e8bd (patch) | |
tree | 90a261e3ea59b80722d70d3c42f3e40d16c9f8dd /dev-util/rbtools | |
parent | adc09cc4e6ebf7931735c02c0c272b4b885c2b30 (diff) |
gentoo auto-resync : 09:06:2024 - 00:08:13
Diffstat (limited to 'dev-util/rbtools')
-rw-r--r-- | dev-util/rbtools/Manifest | 3 | ||||
-rw-r--r-- | dev-util/rbtools/files/rbtools-5.0-importlib-resources.patch | 14 | ||||
-rw-r--r-- | dev-util/rbtools/rbtools-5.0.ebuild | 57 |
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-util/rbtools/Manifest b/dev-util/rbtools/Manifest index 7e5b8fd32448..79c616128c78 100644 --- a/dev-util/rbtools/Manifest +++ b/dev-util/rbtools/Manifest @@ -1,3 +1,6 @@ +AUX rbtools-5.0-importlib-resources.patch 425 BLAKE2B 6ea4e39cd033b468f8e3ecdef564e161299f539580890a5ba4930e5ceee7a339ecaf4c77f88d0b700019cfd1319369061262bef7301d2e84201d4af26e12a77c SHA512 44ebe3eced9f5fbee2ecfe891959d37e83699dd74677a4aef614de39ffc2aab69dbb79f0cf0df1921fd73cd70e61c89b9b1f326dbef72bb5f93aab71f118262d DIST rbtools-4.1.tar.gz 619541 BLAKE2B 9b1aeca4f139a0189affb873363dba8f6d13eb954d4872939c543f6d91c00b09b2452cc379d4d99450c05d3d44a1996e910ff512ba9849292a7b705ce01be654 SHA512 58aa58ce6c55d4d3be9f221c493c8a3c15537776ff4e28be1ea44c0441f1dd9877ac9145066fdceb90d392c75cf29ec80e7efd154b0a2f1893422b65a0189ea0 +DIST rbtools-5.0.tar.gz 649338 BLAKE2B c6a08004e7c8ba17936865e53b78e086ec74e8f5fee7ecc124750f3bf24b9b52ab8a26d1caa7010cdd2822463fcb27b8e5c5f757068924e22d3e59268166f7bf SHA512 7fbc5198fc89ee911a3cc487ead094d46213cfc4f85ab01cf22bd2a628559acdaaed138b430b08aa94ea25dec1179bf7c28349ac8226d632a6112ec83e2b57b7 EBUILD rbtools-4.1.ebuild 1421 BLAKE2B e3ad76841f38a456551bf7180645059c2dbd54be236eac0b4407b29936724d74e1bdac8197ab812e731eb5c09c49e92b0c7f83b5b96ed696f605fb4d1eb54a0c SHA512 c21b192ef90417f5e5726ae2158de614079a16a10275fd589b738788ed5f005cd0eeb33801435ada41b4932373ca04e10d62dfb8aa318ced52f39290c697c94a +EBUILD rbtools-5.0.ebuild 1537 BLAKE2B 594e197b4fc87c616d6f045d5d3028e65336f2bcb3105f6bd7c3bbade13d75e126ee685a512125dd6a412f337a1a29b917047e13193b343280940ecebafb3e0e SHA512 3cb89e3fbb36f4a63b0873d3ad5bdf02b19cf06853dc412c330dc0f8ce82061021b4ce67b97d6aa1665eafc87976cc3e11508a162e036e1693850c701afe64a5 MISC metadata.xml 310 BLAKE2B d4825072b11fd2f9cad88fd9f3e0670d42f997f2f49034539ea9cab13751e08d7f4153fc7534d4931baa55cab6a4bb1ae65f1790fce12d784dfab1eb747a344b SHA512 4b2b81003437f8f97af748509521ce7f946df9e0fcc4ffbabf4de5289b046eeee25d0e1acaf3604fa09995965728b7e4cd10233074ddc4e9bed54a68f26e6613 diff --git a/dev-util/rbtools/files/rbtools-5.0-importlib-resources.patch b/dev-util/rbtools/files/rbtools-5.0-importlib-resources.patch new file mode 100644 index 000000000000..fa23c587a77a --- /dev/null +++ b/dev-util/rbtools/files/rbtools-5.0-importlib-resources.patch @@ -0,0 +1,14 @@ +--- a/rbtools/commands/setup_completion.py 2024-06-06 10:51:45.000000000 +0200 ++++ b/rbtools/commands/setup_completion.py 2024-06-08 11:12:34.788309950 +0200 +@@ -6,7 +6,10 @@ + import sys + from typing import Optional + +-import importlib_resources ++try: ++ import importlib.resources as importlib_resources ++except ImportError: ++ import importlib_resources + + from rbtools.commands.base import BaseCommand, CommandError + diff --git a/dev-util/rbtools/rbtools-5.0.ebuild b/dev-util/rbtools/rbtools-5.0.ebuild new file mode 100644 index 000000000000..6a99f1af7e31 --- /dev/null +++ b/dev-util/rbtools/rbtools-5.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Command line tools for use with Review Board" +HOMEPAGE="https://www.reviewboard.org/" +SRC_URI="https://github.com/reviewboard/rbtools/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/rbtools-release-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + >=dev-python/certifi-2023.5.7[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + >=dev-python/housekeeping-1.1[${PYTHON_USEDEP}] + =dev-python/housekeeping-1*[${PYTHON_USEDEP}] + >=dev-python/packaging-21.3[${PYTHON_USEDEP}] + =dev-python/pydiffx-1.1*[${PYTHON_USEDEP}] + dev-python/texttable[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.3.0[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] + >=dev-python/importlib-metadata-5.0[${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 + ) +" + +PATCHES=( "${FILESDIR}/${P}-importlib-resources.patch" ) + +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 +} |