From 7d6bc830779bbf82937b0f57cf36974bf84c2088 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 7 Oct 2021 12:38:44 +0200 Subject: [PATCH] dev-python/thriftrw: no examples Closes: https://bugs.gentoo.org/816624 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri --- .../files/thriftrw-1.8.1-no-install-examples.patch | 11 +++++++++++ dev-python/thriftrw/thriftrw-1.8.1.ebuild | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch diff --git a/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch b/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch new file mode 100644 index 0000000000..0cc8641076 --- /dev/null +++ b/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -148,7 +148,7 @@ + author='Abhinav Gupta', + author_email='abg@uber.com', + url='https://github.com/thriftrw/thriftrw-python', +- packages=find_packages(exclude=('tests', 'tests.*')), ++ packages=find_packages(exclude=('tests', 'tests.*', 'examples', 'examples*')), + license='MIT', + install_requires=['six', 'ply'], + tests_require=['pytest', 'mock'], diff --git a/dev-python/thriftrw/thriftrw-1.8.1.ebuild b/dev-python/thriftrw/thriftrw-1.8.1.ebuild index 230a5c2003..7ae0e668c9 100644 --- a/dev-python/thriftrw/thriftrw-1.8.1.ebuild +++ b/dev-python/thriftrw/thriftrw-1.8.1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="8" +EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) @@ -26,4 +26,6 @@ DEPEND=" ) " +PATCHES=( "${FILESDIR}/${P}-no-install-examples.patch" ) + distutils_enable_tests pytest