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