Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/autobahn/
Date: Fri, 03 Jun 2022 11:37:08
Message-Id: 1654256221.116b0a59726fdc7f9f7469c4d18735a929ecb89d.mgorny@gentoo
1 commit: 116b0a59726fdc7f9f7469c4d18735a929ecb89d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 11:34:37 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 11:37:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116b0a59
7
8 dev-python/autobahn: Fix wrongly installing _trial_temp
9
10 Run tests from ${S} rather than the installed sitedir, so that
11 _trial_temp ends up there rather than installed.
12
13 Closes: https://bugs.gentoo.org/849470
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 .../autobahn/{autobahn-22.3.2.ebuild => autobahn-22.3.2-r1.ebuild} | 5 +++--
17 dev-python/autobahn/autobahn-22.4.2.ebuild | 5 +++--
18 .../autobahn/{autobahn-22.5.1.ebuild => autobahn-22.5.1-r1.ebuild} | 5 +++--
19 3 files changed, 9 insertions(+), 6 deletions(-)
20
21 diff --git a/dev-python/autobahn/autobahn-22.3.2.ebuild b/dev-python/autobahn/autobahn-22.3.2-r1.ebuild
22 similarity index 96%
23 rename from dev-python/autobahn/autobahn-22.3.2.ebuild
24 rename to dev-python/autobahn/autobahn-22.3.2-r1.ebuild
25 index 6280c160e0bd..a372e795e614 100644
26 --- a/dev-python/autobahn/autobahn-22.3.2.ebuild
27 +++ b/dev-python/autobahn/autobahn-22.3.2-r1.ebuild
28 @@ -82,15 +82,16 @@ python_prepare_all() {
29 }
30
31 python_test() {
32 + rm -rf autobahn || die
33 +
34 einfo "Testing all, cryptosign using twisted"
35 local -x USE_TWISTED=true
36 - cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
37 "${EPYTHON}" -m twisted.trial autobahn || die "Tests failed with ${EPYTHON}"
38 unset USE_TWISTED
39
40 einfo "RE-testing cryptosign and component_aio using asyncio"
41 local -x USE_ASYNCIO=true
42 - epytest autobahn/wamp/test/test_wamp_{cryptosign,component_aio}.py
43 + epytest --pyargs autobahn.wamp.test.test_wamp_{cryptosign,component_aio}
44 unset USE_ASYNCIO
45
46 rm -f twisted/plugins/dropin.cache || die
47
48 diff --git a/dev-python/autobahn/autobahn-22.4.2.ebuild b/dev-python/autobahn/autobahn-22.4.2.ebuild
49 index 7bb27671fd5c..b7c800f34a87 100644
50 --- a/dev-python/autobahn/autobahn-22.4.2.ebuild
51 +++ b/dev-python/autobahn/autobahn-22.4.2.ebuild
52 @@ -83,15 +83,16 @@ python_prepare_all() {
53 }
54
55 python_test() {
56 + rm -rf autobahn || die
57 +
58 einfo "Testing all, cryptosign using twisted"
59 local -x USE_TWISTED=true
60 - cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
61 "${EPYTHON}" -m twisted.trial autobahn || die "Tests failed with ${EPYTHON}"
62 unset USE_TWISTED
63
64 einfo "RE-testing cryptosign and component_aio using asyncio"
65 local -x USE_ASYNCIO=true
66 - epytest autobahn/wamp/test/test_wamp_{cryptosign,component_aio}.py
67 + epytest --pyargs autobahn.wamp.test.test_wamp_{cryptosign,component_aio}
68 unset USE_ASYNCIO
69
70 rm -f twisted/plugins/dropin.cache || die
71
72 diff --git a/dev-python/autobahn/autobahn-22.5.1.ebuild b/dev-python/autobahn/autobahn-22.5.1-r1.ebuild
73 similarity index 96%
74 rename from dev-python/autobahn/autobahn-22.5.1.ebuild
75 rename to dev-python/autobahn/autobahn-22.5.1-r1.ebuild
76 index f53a820194fa..b0aa9b524e50 100644
77 --- a/dev-python/autobahn/autobahn-22.5.1.ebuild
78 +++ b/dev-python/autobahn/autobahn-22.5.1-r1.ebuild
79 @@ -83,15 +83,16 @@ python_prepare_all() {
80 }
81
82 python_test() {
83 + rm -rf autobahn || die
84 +
85 einfo "Testing all, cryptosign using twisted"
86 local -x USE_TWISTED=true
87 - cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
88 "${EPYTHON}" -m twisted.trial autobahn || die "Tests failed with ${EPYTHON}"
89 unset USE_TWISTED
90
91 einfo "RE-testing cryptosign and component_aio using asyncio"
92 local -x USE_ASYNCIO=true
93 - epytest autobahn/wamp/test/test_wamp_{cryptosign,component_aio}.py
94 + epytest --pyargs autobahn.wamp.test.test_wamp_{cryptosign,component_aio}
95 unset USE_ASYNCIO
96
97 rm -f twisted/plugins/dropin.cache || die