1 |
commit: 7b4d8767a9e1190ac84c8a44c018d0c8ea7772ac |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 17 18:54:40 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 17 18:54:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b4d8767 |
7 |
|
8 |
dev-python/cached-property: Add python 3.9 |
9 |
|
10 |
* Mask problematic 'test_threads_ttl_expiry' test fails |
11 |
with high core count: |
12 |
https://github.com/pydanny/cached-property/issues/24 |
13 |
|
14 |
Bug: https://bugs.gentoo.org/638250 |
15 |
Package-Manager: Portage-3.0.3, Repoman-3.0.0 |
16 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
17 |
|
18 |
.../cached-property/cached-property-1.5.1.ebuild | 22 +++++++++++++--------- |
19 |
.../files/cached-property-1.5.1-test-failure.patch | 10 ++++++++++ |
20 |
2 files changed, 23 insertions(+), 9 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/cached-property/cached-property-1.5.1.ebuild b/dev-python/cached-property/cached-property-1.5.1.ebuild |
23 |
index 01da4c80d70..04b4c981768 100644 |
24 |
--- a/dev-python/cached-property/cached-property-1.5.1.ebuild |
25 |
+++ b/dev-python/cached-property/cached-property-1.5.1.ebuild |
26 |
@@ -1,8 +1,9 @@ |
27 |
# Copyright 1999-2020 Gentoo Authors |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
|
30 |
-EAPI=6 |
31 |
-PYTHON_COMPAT=( python{3_6,3_7,3_8} ) |
32 |
+EAPI=7 |
33 |
+ |
34 |
+PYTHON_COMPAT=( python3_{6..9} ) |
35 |
|
36 |
inherit distutils-r1 |
37 |
|
38 |
@@ -14,15 +15,18 @@ LICENSE="BSD" |
39 |
SLOT="0" |
40 |
KEYWORDS="amd64 ppc64 x86" |
41 |
|
42 |
-DEPEND=" |
43 |
- test? ( |
44 |
- dev-python/freezegun[${PYTHON_USEDEP}] |
45 |
- )" |
46 |
-RDEPEND="" |
47 |
+DEPEND="test? ( dev-python/freezegun[${PYTHON_USEDEP}] )" |
48 |
|
49 |
distutils_enable_tests pytest |
50 |
|
51 |
-src_install() { |
52 |
- distutils-r1_src_install |
53 |
+python_prepare_all() { |
54 |
+ # bug 638250 |
55 |
+ eapply "${FILESDIR}"/${PN}-1.5.1-test-failure.patch |
56 |
+ |
57 |
+ distutils-r1_python_prepare_all |
58 |
+} |
59 |
+ |
60 |
+python_install_all() { |
61 |
dodoc README.rst HISTORY.rst CONTRIBUTING.rst AUTHORS.rst |
62 |
+ distutils-r1_python_install_all |
63 |
} |
64 |
|
65 |
diff --git a/dev-python/cached-property/files/cached-property-1.5.1-test-failure.patch b/dev-python/cached-property/files/cached-property-1.5.1-test-failure.patch |
66 |
new file mode 100644 |
67 |
index 00000000000..03fabd2900c |
68 |
--- /dev/null |
69 |
+++ b/dev-python/cached-property/files/cached-property-1.5.1-test-failure.patch |
70 |
@@ -0,0 +1,10 @@ |
71 |
+--- a/tests/test_cached_property.py |
72 |
++++ b/tests/test_cached_property.py |
73 |
+@@ -191,6 +191,7 @@ |
74 |
+ self.assert_cached(check, 2) |
75 |
+ self.assert_cached(check, 2) |
76 |
+ |
77 |
++ @unittest.skip("Gentoo Bug #638250") |
78 |
+ def test_threads_ttl_expiry(self): |
79 |
+ Check = CheckFactory(self.cached_property_factory(ttl=100000), threadsafe=True) |
80 |
+ check = Check() |