summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-05 08:20:49 +0000
committerSam James <sam@gentoo.org>2023-03-05 08:21:37 +0000
commit38b731f8336d42eb1b5fae4eca45dffb11ba5a88 (patch)
treeb627ddc77a4ea111c17d3801de0ae1cfb19459ae /dev-python/argcomplete
parentdev-python/time-machine: Stabilize 2.9.0 ppc, #899148 (diff)
downloadgentoo-38b731f8336d42eb1b5fae4eca45dffb11ba5a88.tar.gz
gentoo-38b731f8336d42eb1b5fae4eca45dffb11ba5a88.tar.bz2
gentoo-38b731f8336d42eb1b5fae4eca45dffb11ba5a88.zip
dev-python/argcomplete: fix installation
Closes: https://bugs.gentoo.org/899628 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/argcomplete')
-rw-r--r--dev-python/argcomplete/argcomplete-2.0.5.ebuild4
-rw-r--r--dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch26
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/argcomplete/argcomplete-2.0.5.ebuild b/dev-python/argcomplete/argcomplete-2.0.5.ebuild
index 9d989d07a652..de9e9a20ddc8 100644
--- a/dev-python/argcomplete/argcomplete-2.0.5.ebuild
+++ b/dev-python/argcomplete/argcomplete-2.0.5.ebuild
@@ -30,6 +30,10 @@ BDEPEND="
)
"
+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
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
+