1 |
commit: 3a38f7e70ab026cfb713ca9e0036976601f46760 |
2 |
Author: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 22:10:32 2023 +0000 |
4 |
Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 22:12:44 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a38f7e7 |
7 |
|
8 |
net-wireless/urh: 2.9.3->2.9.4 |
9 |
|
10 |
ebuild cleanup and test enable |
11 |
|
12 |
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org> |
13 |
|
14 |
net-wireless/urh/Manifest | 2 +- |
15 |
.../urh/{urh-2.9.3.ebuild => urh-2.9.4.ebuild} | 27 ++++++++++++++++++++-- |
16 |
net-wireless/urh/urh-9999.ebuild | 27 ++++++++++++++++++++-- |
17 |
3 files changed, 51 insertions(+), 5 deletions(-) |
18 |
|
19 |
diff --git a/net-wireless/urh/Manifest b/net-wireless/urh/Manifest |
20 |
index 57bdf551ab05..089ec683f148 100644 |
21 |
--- a/net-wireless/urh/Manifest |
22 |
+++ b/net-wireless/urh/Manifest |
23 |
@@ -1 +1 @@ |
24 |
-DIST urh-2.9.3.tar.gz 13408355 BLAKE2B d856f482a2228fcc3e2aa421a3f7bd601fd10848c65abe2dafde921c12aa5b4fb540dee68a76adb79f0cd83b60bd9a19cba4101afbe8a0cf75b445a01d811e6a SHA512 5d166d6895271a6f2c5cc09f80fef2b7780f4ceec030fdfe229abafa76d77718bc5ca6d0b462c3745e71a28f2172534e756a795c3ec95f4f0f23efab8bd69e82 |
25 |
+DIST urh-2.9.4.tar.gz 13415656 BLAKE2B 504cb073540f614eea070a7aaa83ac62f81c6a115a01f935cfc39baec37bc1deb5b56035100700825f41b21ec0937d6014f0d0b73debcbf9ca951e238805d64b SHA512 a888c20a4d2f349960e41defdb5cce6590d4523f8a1a655e21e4caaf7dd98a6f51936fa5a038787cb5935bc42e8863d2940059130dc9982caeea4b80e431aeeb |
26 |
|
27 |
diff --git a/net-wireless/urh/urh-2.9.3.ebuild b/net-wireless/urh/urh-2.9.4.ebuild |
28 |
similarity index 58% |
29 |
rename from net-wireless/urh/urh-2.9.3.ebuild |
30 |
rename to net-wireless/urh/urh-2.9.4.ebuild |
31 |
index 83c8cfc93afb..2a91a1e6cf95 100644 |
32 |
--- a/net-wireless/urh/urh-2.9.3.ebuild |
33 |
+++ b/net-wireless/urh/urh-2.9.4.ebuild |
34 |
@@ -1,10 +1,10 @@ |
35 |
# Copyright 1999-2023 Gentoo Authors |
36 |
# Distributed under the terms of the GNU General Public License v2 |
37 |
|
38 |
-EAPI=7 |
39 |
+EAPI=8 |
40 |
|
41 |
PYTHON_COMPAT=( python3_{9..10} ) |
42 |
-inherit distutils-r1 |
43 |
+inherit distutils-r1 virtualx |
44 |
|
45 |
DESCRIPTION="Universal Radio Hacker: investigate wireless protocols like a boss" |
46 |
HOMEPAGE="https://github.com/jopohl/urh" |
47 |
@@ -40,6 +40,8 @@ RDEPEND="${DEPEND} |
48 |
dev-python/PyQt5[${PYTHON_USEDEP},testlib] |
49 |
net-wireless/gr-osmosdr" |
50 |
|
51 |
+distutils_enable_tests pytest |
52 |
+ |
53 |
python_configure_all() { |
54 |
DISTUTILS_ARGS=( |
55 |
$(use_with airspy) |
56 |
@@ -52,3 +54,24 @@ python_configure_all() { |
57 |
$(use_with uhd usrp) |
58 |
) |
59 |
} |
60 |
+ |
61 |
+src_test() { |
62 |
+ virtx distutils-r1_src_test |
63 |
+} |
64 |
+ |
65 |
+python_test() { |
66 |
+ # Why are these disabled? |
67 |
+ # import errors AND hangs forever after 'tests/test_spectrogram.py::TestSpectrogram::test_cancel_filtering' |
68 |
+ # import errors 'tests/test_continuous_modulator.py::TestContinuousModulator::test_modulate_continuously' |
69 |
+ # import errors 'tests/test_send_recv_dialog_gui.py::TestSendRecvDialog::test_continuous_send_dialog' |
70 |
+ # import errors 'tests/test_spectrogram.py::TestSpectrogram::test_channel_separation_with_negative_frequency' |
71 |
+ local EPYTEST_DESELECT=( |
72 |
+ 'tests/test_spectrogram.py::TestSpectrogram::test_cancel_filtering' |
73 |
+ 'tests/test_continuous_modulator.py::TestContinuousModulator::test_modulate_continuously' |
74 |
+ 'tests/test_send_recv_dialog_gui.py::TestSendRecvDialog::test_continuous_send_dialog' |
75 |
+ 'tests/test_spectrogram.py::TestSpectrogram::test_channel_separation_with_negative_frequency' |
76 |
+ |
77 |
+ ) |
78 |
+ cd "${T}" || die |
79 |
+ epytest -s --pyargs urh.cythonext "${S}/tests" || die |
80 |
+} |
81 |
|
82 |
diff --git a/net-wireless/urh/urh-9999.ebuild b/net-wireless/urh/urh-9999.ebuild |
83 |
index 83c8cfc93afb..2a91a1e6cf95 100644 |
84 |
--- a/net-wireless/urh/urh-9999.ebuild |
85 |
+++ b/net-wireless/urh/urh-9999.ebuild |
86 |
@@ -1,10 +1,10 @@ |
87 |
# Copyright 1999-2023 Gentoo Authors |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
|
90 |
-EAPI=7 |
91 |
+EAPI=8 |
92 |
|
93 |
PYTHON_COMPAT=( python3_{9..10} ) |
94 |
-inherit distutils-r1 |
95 |
+inherit distutils-r1 virtualx |
96 |
|
97 |
DESCRIPTION="Universal Radio Hacker: investigate wireless protocols like a boss" |
98 |
HOMEPAGE="https://github.com/jopohl/urh" |
99 |
@@ -40,6 +40,8 @@ RDEPEND="${DEPEND} |
100 |
dev-python/PyQt5[${PYTHON_USEDEP},testlib] |
101 |
net-wireless/gr-osmosdr" |
102 |
|
103 |
+distutils_enable_tests pytest |
104 |
+ |
105 |
python_configure_all() { |
106 |
DISTUTILS_ARGS=( |
107 |
$(use_with airspy) |
108 |
@@ -52,3 +54,24 @@ python_configure_all() { |
109 |
$(use_with uhd usrp) |
110 |
) |
111 |
} |
112 |
+ |
113 |
+src_test() { |
114 |
+ virtx distutils-r1_src_test |
115 |
+} |
116 |
+ |
117 |
+python_test() { |
118 |
+ # Why are these disabled? |
119 |
+ # import errors AND hangs forever after 'tests/test_spectrogram.py::TestSpectrogram::test_cancel_filtering' |
120 |
+ # import errors 'tests/test_continuous_modulator.py::TestContinuousModulator::test_modulate_continuously' |
121 |
+ # import errors 'tests/test_send_recv_dialog_gui.py::TestSendRecvDialog::test_continuous_send_dialog' |
122 |
+ # import errors 'tests/test_spectrogram.py::TestSpectrogram::test_channel_separation_with_negative_frequency' |
123 |
+ local EPYTEST_DESELECT=( |
124 |
+ 'tests/test_spectrogram.py::TestSpectrogram::test_cancel_filtering' |
125 |
+ 'tests/test_continuous_modulator.py::TestContinuousModulator::test_modulate_continuously' |
126 |
+ 'tests/test_send_recv_dialog_gui.py::TestSendRecvDialog::test_continuous_send_dialog' |
127 |
+ 'tests/test_spectrogram.py::TestSpectrogram::test_channel_separation_with_negative_frequency' |
128 |
+ |
129 |
+ ) |
130 |
+ cd "${T}" || die |
131 |
+ epytest -s --pyargs urh.cythonext "${S}/tests" || die |
132 |
+} |