commit: bb60cc3fc8505ce5323ebbe6825faf68c6af4f33 Author: Tom Gillespie <tgbugs <AT> gmail <DOT> com> AuthorDate: Thu Jul 13 01:55:39 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Jul 17 09:44:20 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb60cc3f
pypi.eclass: _pypi_translate_version _pre to .dev Implement automatic translation _pre to .dev for pypi SRC_URIs. Signed-off-by: Tom Gillespie <tgbugs <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31861 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> 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} }