* [gentoo-dev] [PATCH] pypi.eclass: _pypi_translate_version _pre to .dev
@ 2023-07-13 7:56 Tom Gillespie
0 siblings, 0 replies; only message in thread
From: Tom Gillespie @ 2023-07-13 7:56 UTC (permalink / raw
To: gentoo-dev; +Cc: mgorny@gentoo.org
[-- Attachment #1: Type: text/plain, Size: 136 bytes --]
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
[-- Attachment #2: 0001-pypi.eclass-_pypi_translate_version-_pre-to-.dev.patch --]
[-- Type: text/x-patch, Size: 784 bytes --]
From 6910a990f221986d1b5c0cc3900bd2ba64b9a017 Mon Sep 17 00:00:00 2001
From: Tom Gillespie <tgbugs@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 <tgbugs@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-13 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13 7:56 [gentoo-dev] [PATCH] pypi.eclass: _pypi_translate_version _pre to .dev Tom Gillespie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox