1 |
commit: e4ec5a9407ba0bbc1172432a5e10e579e9e395b2 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Sat Oct 31 01:11:57 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 01:36:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ec5a94 |
7 |
|
8 |
dev-python/yappi-1.3.0: Version bump, add py39 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/yappi/Manifest | 1 + |
15 |
dev-python/yappi/files/yappi-1.3.0-tests.patch | 12 +++++++++ |
16 |
dev-python/yappi/yappi-1.3.0.ebuild | 35 ++++++++++++++++++++++++++ |
17 |
3 files changed, 48 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/yappi/Manifest b/dev-python/yappi/Manifest |
20 |
index 8a01e41fcc0..bd655310b9c 100644 |
21 |
--- a/dev-python/yappi/Manifest |
22 |
+++ b/dev-python/yappi/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST yappi-1.2.5.tar.gz 928100 BLAKE2B 1d303226821d53fb215ac29f8363d9f564f9f40096b5ba8f67475c4074012316f523afb6d770cff879038cd333ef7f050b29c015e2dd2e517859f66a0e1f36f3 SHA512 ec784e76b56e8bc0c3cfe07c90d0810fa90d5a7da62f36187e8a09a9d6e01f3c2d74320de3dd3f4bf1d4a9425fee319c7a575a9d35ad5412c1501c934f1ba353 |
25 |
+DIST yappi-1.3.0.tar.gz 928100 BLAKE2B 1d303226821d53fb215ac29f8363d9f564f9f40096b5ba8f67475c4074012316f523afb6d770cff879038cd333ef7f050b29c015e2dd2e517859f66a0e1f36f3 SHA512 ec784e76b56e8bc0c3cfe07c90d0810fa90d5a7da62f36187e8a09a9d6e01f3c2d74320de3dd3f4bf1d4a9425fee319c7a575a9d35ad5412c1501c934f1ba353 |
26 |
|
27 |
diff --git a/dev-python/yappi/files/yappi-1.3.0-tests.patch b/dev-python/yappi/files/yappi-1.3.0-tests.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..866db78fac1 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/yappi/files/yappi-1.3.0-tests.patch |
32 |
@@ -0,0 +1,12 @@ |
33 |
+diff -ur a/tests/test_functionality.py b/tests/test_functionality.py |
34 |
+--- a/tests/test_functionality.py 2020-04-27 12:57:09.000000000 -0700 |
35 |
++++ b/tests/test_functionality.py 2020-10-30 18:08:35.619553108 -0700 |
36 |
+@@ -338,7 +338,7 @@ |
37 |
+ fsa = utils.find_stat_by_name(stats, "a") |
38 |
+ self.assertEqual(fsa.module, os.path.basename(fsa.module)) |
39 |
+ |
40 |
+- @unittest.skipIf(os.name == "nt", "do not run on Windows") |
41 |
++ @unittest.skip("does not like ebuild environment") |
42 |
+ def test_run_as_script(self): |
43 |
+ import re |
44 |
+ p = subprocess.Popen( |
45 |
|
46 |
diff --git a/dev-python/yappi/yappi-1.3.0.ebuild b/dev-python/yappi/yappi-1.3.0.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..6b63a3df849 |
49 |
--- /dev/null |
50 |
+++ b/dev-python/yappi/yappi-1.3.0.ebuild |
51 |
@@ -0,0 +1,35 @@ |
52 |
+# Copyright 1999-2020 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+PYTHON_COMPAT=(python3_{7..9}) |
57 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
58 |
+inherit distutils-r1 |
59 |
+ |
60 |
+# no tags on github, no tests on pypi |
61 |
+COMMIT_HASH="b6c7d9f0bb40b511f61bb82cc395ad9140a4f4b0" |
62 |
+ |
63 |
+DESCRIPTION="Yet Another Python Profiler" |
64 |
+HOMEPAGE="https://pypi.org/project/yappi/ https://github.com/sumerc/yappi" |
65 |
+SRC_URI="https://github.com/sumerc/yappi/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" |
66 |
+S="${WORKDIR}/${PN}-${COMMIT_HASH}" |
67 |
+ |
68 |
+LICENSE="MIT" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
71 |
+ |
72 |
+#RDEPEND=" |
73 |
+# $(python_gen_cond_dep 'dev-python/contextvars[${PYTHON_USEDEP}]' 'python3_6') |
74 |
+#" |
75 |
+ |
76 |
+distutils_enable_tests unittest |
77 |
+ |
78 |
+PATCHES=( |
79 |
+ "${FILESDIR}/yappi-1.2.5-warnings.patch" |
80 |
+ "${FILESDIR}/yappi-1.3.0-tests.patch" |
81 |
+) |
82 |
+ |
83 |
+python_prepare_all() { |
84 |
+ cp tests/utils.py "${S}" || die |
85 |
+ distutils-r1_python_prepare_all |
86 |
+} |