commit: 030fa3c044bb896abf87864720400688d3a24487
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 24 18:20:45 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 24 18:35:12 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=030fa3c0
dev-python/watchgod: Fix version number in metadata
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../watchgod/{watchgod-0.8.2.ebuild => watchgod-0.8.2-r1.ebuild} | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dev-python/watchgod/watchgod-0.8.2.ebuild
b/dev-python/watchgod/watchgod-0.8.2-r1.ebuild
similarity index 89%
rename from dev-python/watchgod/watchgod-0.8.2.ebuild
rename to dev-python/watchgod/watchgod-0.8.2-r1.ebuild
index c855cb747b3a..a19fe1d0b4f5 100644
--- a/dev-python/watchgod/watchgod-0.8.2.ebuild
+++ b/dev-python/watchgod/watchgod-0.8.2-r1.ebuild
@@ -39,10 +39,12 @@ BDEPEND="
distutils_enable_tests pytest
src_prepare() {
- # increase timeout
- sed -e '/sleep/s/0.01/1.0/' -i tests/test_watch.py || die
-
distutils-r1_src_prepare
+
+ # increase timeout
+ sed -i -e '/sleep/s/0.01/1.0/' tests/test_watch.py || die
+ # fix version number in metadata
+ sed -i -e "s:0\.0\.dev0:${PV}:" watchgod/version.py || die
}
python_test() {