commit: 38b731f8336d42eb1b5fae4eca45dffb11ba5a88 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Mar 5 08:20:49 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Mar 5 08:21:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38b731f8
dev-python/argcomplete: fix installation Closes: https://bugs.gentoo.org/899628 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/argcomplete/argcomplete-2.0.5.ebuild | 4 ++++ .../files/argcomplete-2.0.5-test-install.patch | 26 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) 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 <s...@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 <s...@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 +