Hi,
   I am sending this patch to pypi.eclass to this list per mgorny's
request. Best!
Tom

https://github.com/gentoo/gentoo/pull/31861
From 6910a990f221986d1b5c0cc3900bd2ba64b9a017 Mon Sep 17 00:00:00 2001
From: Tom Gillespie <tgb...@gmail.com>
Date: Wed, 12 Jul 2023 18:55:39 -0700
Subject: [PATCH] pypi.eclass: _pypi_translate_version _pre to .dev

Implement automatic translation _pre to .dev for pypi SRC_URIs.

Signed-off-by: Tom Gillespie <tgb...@gmail.com>
---
 eclass/pypi.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass
index 594216a7fd96..b80ff9c95d36 100644
--- a/eclass/pypi.eclass
+++ b/eclass/pypi.eclass
@@ -105,6 +105,7 @@ _pypi_translate_version() {
 	local version=${1}
 	version=${version/_alpha/a}
 	version=${version/_beta/b}
+	version=${version/_pre/.dev}
 	version=${version/_rc/rc}
 	_PYPI_TRANSLATED_VERSION=${version/_p/.post}
 }
-- 
2.41.0

Reply via email to