summaryrefslogtreecommitdiff
path: root/dev-python/argcomplete
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/argcomplete')
-rw-r--r--dev-python/argcomplete/Manifest3
-rw-r--r--dev-python/argcomplete/argcomplete-2.0.5.ebuild44
-rw-r--r--dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch26
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest
index da8cc380cd8d..79cd5efc66a6 100644
--- a/dev-python/argcomplete/Manifest
+++ b/dev-python/argcomplete/Manifest
@@ -1,3 +1,6 @@
+AUX argcomplete-2.0.5-test-install.patch 868 BLAKE2B 877ea4cb5f2793e0c641e306630dd6fe95cc68a71796a696078a78e5cb25940286f5788955cc6e0d2fdb7286757fc1b8d4198e6e31db9e2f5978690645f4768b SHA512 76e2527ba3afe0d66591ad0db24bde92481399fab697373d1cca0bb2e5a953078de5ec5fbba0eff592557fb90da4a3c3848204bc06b8609010df1ae7d1ed715c
DIST argcomplete-2.0.0.tar.gz 54164 BLAKE2B 77da149b07d4019f8d6f3dda8fd9bbe9953c25b8461ab0746e1c2eb4d1bb51a9007c1f046ad9dc41dc5f8f248fbdf18ad7d921cf644fbc7580661084fd1427a1 SHA512 ef2a551e1372ecf3739006fe2c020e9f7ec53c5809680dcd3d9d552290565d8d09ba22bcc989f40644120a129b101f8e2e8ed34723e947a7d8d7884e9b502c31
+DIST argcomplete-2.0.5.tar.gz 54665 BLAKE2B 33b3c1d6ba4b6fe6ac959db050d4944411a3ef6e737b9ae16f70d1e2cdd6cea0c2534ac4f4edce63df3606a18b9d8e16831a14db655cdd9cb4c2ad3afed60c72 SHA512 6354f2f67a5d0ff35539c2c4fa5ab5b78d3e57648ee2436da7b3916044d568d8558316a3e2b34581c97540c4a9f2191869fb215f0020ce09416d7b31377252e5
EBUILD argcomplete-2.0.0-r1.ebuild 1089 BLAKE2B e66557e03dbc1a25ad16ea823cc43d35137ea0211519c7784bee1e4967c16c0c7afb16a09ac2e81b4ac4bfc2e5a7a7712aaf7ca6a8f524d8a63fb84e9d78ec57 SHA512 f631d7973f388954b0425ba824ba493d81c730a621b919a21ca89791b239d5ba6f2fde39cb3eb3f3584a0923b06260484e0a9b2b4ff54eb91a3e720222a5dff2
+EBUILD argcomplete-2.0.5.ebuild 944 BLAKE2B 735d5fe1ea7774901b13e38113c6485c0975296a3cbad400fc7091c24f6829174ac9f883955f4e75174723571c10d88427382130e755641fbe7e82f4f74f9ce6 SHA512 465b258daefedb95ad216dd5caae4ed37b788167b78db313ed147e397f85af5956a304f9bb0d46b1563b9b391185f12c70a21c2b1a42c6733a5578e1fa245cc7
MISC metadata.xml 411 BLAKE2B 963cfdba9183fde9e97c534345164d26be569d841dcc6fd274601b18d5de2ae97fa837b0acfdc59616c5d19cc54ea368547ffd901f90239cdfb5ba08e8721607 SHA512 22db237979be34053ad7201f599d576a7756b71e6b75c40c2808d47f276cce6d3594ae46dcaec5aa5adab9e9e24e11d47bb9044a8b1a146163d66687965cf5b7
diff --git a/dev-python/argcomplete/argcomplete-2.0.5.ebuild b/dev-python/argcomplete/argcomplete-2.0.5.ebuild
new file mode 100644
index 000000000000..62fa0769c218
--- /dev/null
+++ b/dev-python/argcomplete/argcomplete-2.0.5.ebuild
@@ -0,0 +1,44 @@
+# 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_{9..11} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Bash tab completion for argparse"
+HOMEPAGE="
+ https://github.com/kislyuk/argcomplete/
+ https://pypi.org/project/argcomplete/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# pip is called as an external tool
+BDEPEND="
+ test? (
+ app-shells/fish
+ app-shells/tcsh
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ >=dev-python/pip-19
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/argcomplete-2.0.5-test-install.patch
+)
+
+src_prepare() {
+ sed -i -e 's:timeout=5:timeout=30:' test/test.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ "${EPYTHON}" test/test.py -v || die
+}
diff --git a/dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch b/dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch
new file mode 100644
index 000000000000..a710498d5223
--- /dev/null
+++ b/dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch
@@ -0,0 +1,26 @@
+https://github.com/kislyuk/argcomplete/pull/406
+
+From e6682b3e3e0c7882a3b93df2f0e466ef001d37e4 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 5 Mar 2023 08:14:10 +0000
+Subject: [PATCH] setup.py: exclude test.* subpackages from find_packages too
+
+Otherwise, test.test_package will be picked up when installing via
+PEP517.
+
+Bug: https://bugs.gentoo.org/899628
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/setup.py
++++ b/setup.py
+@@ -33,7 +33,7 @@ setup(
+ ':python_version == "3.6"': importlib_backport_requires,
+ ':python_version == "3.7"': importlib_backport_requires,
+ },
+- packages=find_packages(exclude=["test"]),
++ packages=find_packages(exclude=["test", "test.*"]),
+ scripts=glob.glob("scripts/*"),
+ package_data={"argcomplete": ["bash_completion.d/python-argcomplete"]},
+ zip_safe=False,
+--
+2.39.2
+