public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tom Gillespie <tgbugs@gmail.com>
To: gentoo-dev@lists.gentoo.org
Cc: "mgorny@gentoo.org" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH] pypi.eclass: _pypi_translate_version _pre to .dev
Date: Thu, 13 Jul 2023 00:56:13 -0700	[thread overview]
Message-ID: <CA+G3_POCU2DJUwtqgwNj4+FUTtB-XNmkFD65ryU0B+Z47ci4nw@mail.gmail.com> (raw)

[-- 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


                 reply	other threads:[~2023-07-13  7:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+G3_POCU2DJUwtqgwNj4+FUTtB-XNmkFD65ryU0B+Z47ci4nw@mail.gmail.com \
    --to=tgbugs@gmail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=mgorny@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox