1 |
commit: 7d6bc830779bbf82937b0f57cf36974bf84c2088 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Oct 7 10:38:44 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 7 10:38:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d6bc830 |
7 |
|
8 |
dev-python/thriftrw: no examples |
9 |
|
10 |
Closes: https://bugs.gentoo.org/816624 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
13 |
|
14 |
.../thriftrw/files/thriftrw-1.8.1-no-install-examples.patch | 11 +++++++++++ |
15 |
dev-python/thriftrw/thriftrw-1.8.1.ebuild | 4 +++- |
16 |
2 files changed, 14 insertions(+), 1 deletion(-) |
17 |
|
18 |
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 |
19 |
new file mode 100644 |
20 |
index 000000000..0cc864107 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch |
23 |
@@ -0,0 +1,11 @@ |
24 |
+--- a/setup.py |
25 |
++++ b/setup.py |
26 |
+@@ -148,7 +148,7 @@ |
27 |
+ author='Abhinav Gupta', |
28 |
+ author_email='abg@××××.com', |
29 |
+ url='https://github.com/thriftrw/thriftrw-python', |
30 |
+- packages=find_packages(exclude=('tests', 'tests.*')), |
31 |
++ packages=find_packages(exclude=('tests', 'tests.*', 'examples', 'examples*')), |
32 |
+ license='MIT', |
33 |
+ install_requires=['six', 'ply'], |
34 |
+ tests_require=['pytest', 'mock'], |
35 |
|
36 |
diff --git a/dev-python/thriftrw/thriftrw-1.8.1.ebuild b/dev-python/thriftrw/thriftrw-1.8.1.ebuild |
37 |
index 230a5c200..7ae0e668c 100644 |
38 |
--- a/dev-python/thriftrw/thriftrw-1.8.1.ebuild |
39 |
+++ b/dev-python/thriftrw/thriftrw-1.8.1.ebuild |
40 |
@@ -1,7 +1,7 @@ |
41 |
# Copyright 1999-2021 Gentoo Authors |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
-EAPI="8" |
45 |
+EAPI=8 |
46 |
|
47 |
PYTHON_COMPAT=( python3_{8..10} ) |
48 |
|
49 |
@@ -26,4 +26,6 @@ DEPEND=" |
50 |
) |
51 |
" |
52 |
|
53 |
+PATCHES=( "${FILESDIR}/${P}-no-install-examples.patch" ) |
54 |
+ |
55 |
distutils_enable_tests pytest |