All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pypi.bbclass: update HOMEPAGE to point to actual pypi page
@ 2020-06-15 22:14 Robert P. J. Day
  2020-06-16 12:03 ` Robert P. J. Day
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2020-06-15 22:14 UTC (permalink / raw)
  To: OE Core mailing list


The current setting for the HOMEPAGE is a redirection, so might as
well update it.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

diff --git a/meta/classes/pypi.bbclass b/meta/classes/pypi.bbclass
index 87b4c85fc0..73aca77ef6 100644
--- a/meta/classes/pypi.bbclass
+++ b/meta/classes/pypi.bbclass
@@ -17,10 +17,10 @@ def pypi_src_uri(d):

 PYPI_SRC_URI ?= "${@pypi_src_uri(d)}"

-HOMEPAGE ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/"
+HOMEPAGE ?= "https://pypi.org/project/${PYPI_PACKAGE}/"
 SECTION = "devel/python"
 SRC_URI += "${PYPI_SRC_URI}"
 S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"

-UPSTREAM_CHECK_URI ?= "https://pypi.org/project/${PYPI_PACKAGE}/"
+UPSTREAM_CHECK_URI ?= "${HOMEPAGE}"
 UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/"

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pypi.bbclass: update HOMEPAGE to point to actual pypi page
  2020-06-15 22:14 [PATCH] pypi.bbclass: update HOMEPAGE to point to actual pypi page Robert P. J. Day
@ 2020-06-16 12:03 ` Robert P. J. Day
  0 siblings, 0 replies; 2+ messages in thread
From: Robert P. J. Day @ 2020-06-16 12:03 UTC (permalink / raw)
  To: OE Core mailing list

On Mon, 15 Jun 2020, Robert P. J. Day wrote:

>
> The current setting for the HOMEPAGE is a redirection, so might as
> well update it.
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>
> ---
>
> diff --git a/meta/classes/pypi.bbclass b/meta/classes/pypi.bbclass
> index 87b4c85fc0..73aca77ef6 100644
> --- a/meta/classes/pypi.bbclass
> +++ b/meta/classes/pypi.bbclass
> @@ -17,10 +17,10 @@ def pypi_src_uri(d):
>
>  PYPI_SRC_URI ?= "${@pypi_src_uri(d)}"
>
> -HOMEPAGE ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/"
> +HOMEPAGE ?= "https://pypi.org/project/${PYPI_PACKAGE}/"
>  SECTION = "devel/python"
>  SRC_URI += "${PYPI_SRC_URI}"
>  S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
>
> -UPSTREAM_CHECK_URI ?= "https://pypi.org/project/${PYPI_PACKAGE}/"
> +UPSTREAM_CHECK_URI ?= "${HOMEPAGE}"
>  UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/"

  ignore this patch, it's a stupid idea given that, as i now see, the
HOMEPAGE for a python recipe will typically *not* match the pypi.org
project page. will ponder further on the best way to standardize this.

rday

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-16 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 22:14 [PATCH] pypi.bbclass: update HOMEPAGE to point to actual pypi page Robert P. J. Day
2020-06-16 12:03 ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.