summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTom Gillespie <tgbugs@gmail.com>2023-07-12 18:55:39 -0700
committerMichał Górny <mgorny@gentoo.org>2023-07-17 11:44:20 +0200
commitbb60cc3fc8505ce5323ebbe6825faf68c6af4f33 (patch)
treeaf783f46d1b15765117fa281be85f90d57665df8 /eclass
parentdistutils-r1.eclass: Disable LTO when using cargo.eclass (diff)
downloadgentoo-bb60cc3fc8505ce5323ebbe6825faf68c6af4f33.tar.gz
gentoo-bb60cc3fc8505ce5323ebbe6825faf68c6af4f33.tar.bz2
gentoo-bb60cc3fc8505ce5323ebbe6825faf68c6af4f33.zip
pypi.eclass: _pypi_translate_version _pre to .dev
Implement automatic translation _pre to .dev for pypi SRC_URIs. Signed-off-by: Tom Gillespie <tgbugs@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31861 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/pypi.eclass1
1 files changed, 1 insertions, 0 deletions
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}
}