1 |
commit: 637ee110c29b9f85588542586bc921dd1ef6f36d |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Wed Apr 29 01:13:48 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 29 01:13:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=637ee110 |
7 |
|
8 |
dev-python/yappi-1.2.5: Version bump |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/yappi/Manifest | 1 + |
15 |
dev-python/yappi/files/yappi-1.2.5-warnings.patch | 13 ++++++++ |
16 |
dev-python/yappi/metadata.xml | 2 +- |
17 |
dev-python/yappi/yappi-1.2.5.ebuild | 38 +++++++++++++++++++++++ |
18 |
4 files changed, 53 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/dev-python/yappi/Manifest b/dev-python/yappi/Manifest |
21 |
index 0454a3f54a2..907cc6b2d7c 100644 |
22 |
--- a/dev-python/yappi/Manifest |
23 |
+++ b/dev-python/yappi/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST yappi-1.0.tar.gz 38939 BLAKE2B b07b38bc07ffb6ba7aea3728ba6977680ca7f2dcc499778110aa31e733c512e5704cd580d01faf3344849df6772f110472a01328447228e9c45180beefc36f3e SHA512 d743c471ee3797b9f3b24c831fcb4ddf2cec7c13c56e567c0618eeada9a534ca0b114929da623a2c67142c61f3c38b024b25ba5e32883113148f4377f7574905 |
26 |
+DIST yappi-1.2.5.tar.gz 928100 BLAKE2B 1d303226821d53fb215ac29f8363d9f564f9f40096b5ba8f67475c4074012316f523afb6d770cff879038cd333ef7f050b29c015e2dd2e517859f66a0e1f36f3 SHA512 ec784e76b56e8bc0c3cfe07c90d0810fa90d5a7da62f36187e8a09a9d6e01f3c2d74320de3dd3f4bf1d4a9425fee319c7a575a9d35ad5412c1501c934f1ba353 |
27 |
|
28 |
diff --git a/dev-python/yappi/files/yappi-1.2.5-warnings.patch b/dev-python/yappi/files/yappi-1.2.5-warnings.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..1594c33ee3d |
31 |
--- /dev/null |
32 |
+++ b/dev-python/yappi/files/yappi-1.2.5-warnings.patch |
33 |
@@ -0,0 +1,13 @@ |
34 |
+diff --git a/setup.py b/setup.py |
35 |
+index cd9a549..440043c 100644 |
36 |
+--- a/setup.py |
37 |
++++ b/setup.py |
38 |
+@@ -23,7 +23,7 @@ link_args = [] |
39 |
+ |
40 |
+ if os.name == 'posix' and sys.platform != 'darwin': |
41 |
+ compiler = new_compiler() |
42 |
+- if compiler.has_function('timer_create', libraries=('rt', )): |
43 |
++ if compiler.has_function('timer_create', libraries=('rt', ), includes=["signal.h", "time.h"]): |
44 |
+ user_macros.append(('LIB_RT_AVAILABLE', '1')) |
45 |
+ user_libraries.append('rt') |
46 |
+ if _DEBUG: |
47 |
|
48 |
diff --git a/dev-python/yappi/metadata.xml b/dev-python/yappi/metadata.xml |
49 |
index fc71beddc90..5f26dbbd302 100644 |
50 |
--- a/dev-python/yappi/metadata.xml |
51 |
+++ b/dev-python/yappi/metadata.xml |
52 |
@@ -11,6 +11,6 @@ |
53 |
</maintainer> |
54 |
<upstream> |
55 |
<remote-id type="pypi">yappi</remote-id> |
56 |
- <remote-id type="bitbucket">sumerc/yappi</remote-id> |
57 |
+ <remote-id type="github">sumerc/yappi</remote-id> |
58 |
</upstream> |
59 |
</pkgmetadata> |
60 |
|
61 |
diff --git a/dev-python/yappi/yappi-1.2.5.ebuild b/dev-python/yappi/yappi-1.2.5.ebuild |
62 |
new file mode 100644 |
63 |
index 00000000000..1fc7ac75df3 |
64 |
--- /dev/null |
65 |
+++ b/dev-python/yappi/yappi-1.2.5.ebuild |
66 |
@@ -0,0 +1,38 @@ |
67 |
+# Copyright 1999-2020 Gentoo Authors |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+ |
70 |
+EAPI=7 |
71 |
+PYTHON_COMPAT=(python3_{6,7,8}) |
72 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
73 |
+inherit distutils-r1 |
74 |
+ |
75 |
+# no tags on github, no tests on pypi |
76 |
+COMMIT_HASH="b6c7d9f0bb40b511f61bb82cc395ad9140a4f4b0" |
77 |
+ |
78 |
+DESCRIPTION="Yet Another Python Profiler" |
79 |
+HOMEPAGE="https://pypi.org/project/yappi/ https://github.com/sumerc/yappi" |
80 |
+SRC_URI="https://github.com/sumerc/yappi/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" |
81 |
+S="${WORKDIR}/${PN}-${COMMIT_HASH}" |
82 |
+ |
83 |
+LICENSE="MIT" |
84 |
+SLOT="0" |
85 |
+KEYWORDS="~amd64 ~x86" |
86 |
+ |
87 |
+RDEPEND=" |
88 |
+ dev-python/contextvars[${PYTHON_USEDEP}] |
89 |
+" |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}/yappi-1.2.5-warnings.patch" |
93 |
+) |
94 |
+ |
95 |
+python_prepare_all() { |
96 |
+ cp tests/utils.py "${S}" || die |
97 |
+ distutils-r1_python_prepare_all |
98 |
+} |
99 |
+ |
100 |
+python_test() { |
101 |
+ distutils_install_for_testing |
102 |
+ PATH="${TEST_DIR}/scripts:${PATH}" \ |
103 |
+ "${EPYTHON}" run_tests.py || die "tests fail with ${EPYTHON}" |
104 |
+} |