1 |
commit: db5b72828bf65e44acd53887740ca229b285eb2d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 24 18:24:33 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 24 18:35:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db5b7282 |
7 |
|
8 |
dev-python/watchfiles: Fix version number in metadata |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../{watchfiles-0.15.0.ebuild => watchfiles-0.15.0-r1.ebuild} | 7 +++++++ |
13 |
1 file changed, 7 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/watchfiles/watchfiles-0.15.0.ebuild b/dev-python/watchfiles/watchfiles-0.15.0-r1.ebuild |
16 |
similarity index 94% |
17 |
rename from dev-python/watchfiles/watchfiles-0.15.0.ebuild |
18 |
rename to dev-python/watchfiles/watchfiles-0.15.0-r1.ebuild |
19 |
index 016dfca13ef4..aeab77a1d524 100644 |
20 |
--- a/dev-python/watchfiles/watchfiles-0.15.0.ebuild |
21 |
+++ b/dev-python/watchfiles/watchfiles-0.15.0-r1.ebuild |
22 |
@@ -96,6 +96,13 @@ QA_FLAGS_IGNORED=".*/_rust_notify.*" |
23 |
|
24 |
distutils_enable_tests pytest |
25 |
|
26 |
+src_prepare() { |
27 |
+ distutils-r1_src_prepare |
28 |
+ |
29 |
+ # fix version number |
30 |
+ sed -i -e "/^version/s:0\.0\.0:${PV}:" Cargo.toml || die |
31 |
+} |
32 |
+ |
33 |
python_test() { |
34 |
rm -rf watchfiles || die |
35 |
epytest |