From db5b72828bf65e44acd53887740ca229b285eb2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 24 Jun 2022 20:24:33 +0200 Subject: [PATCH] dev-python/watchfiles: Fix version number in metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- ...atchfiles-0.15.0.ebuild => watchfiles-0.15.0-r1.ebuild} | 7 +++++++ 1 file changed, 7 insertions(+) rename dev-python/watchfiles/{watchfiles-0.15.0.ebuild => watchfiles-0.15.0-r1.ebuild} (94%) 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 016dfca13ef48..aeab77a1d524c 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