Skip to contentSkip to conversation

pypi.bbclass: update HOMEPAGE to point to actual pypi page

PATCH In review Robert P. J. Day 1 participant 2 messages Jun 15, 2020 – Jun 16, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pypi.bbclass: update HOMEPAGE to point to actual pypi page

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

---

meta/classes/pypi.bbclass +2 -2
index 87b4c85fc0..73aca77ef6 100644
@@ -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

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 15 lines · Robert P. J. Day

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

---

meta/classes/pypi.bbclass +0 -0
index 87b4c85fc0..73aca77ef6 100644
@@ -17,10 +17,10 @@ def pypi_src_uri(d):
 
 PYPI_SRC_URI ?= "${@pypi_src_uri(d)}"

meta/classes/pypi.bbclass def pypi_src_uri(d): · line 26

Quoted 10 lines
meta/classes/pypi.bbclass +2 -2
 
-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