pypi.bbclass: update HOMEPAGE to point to actual pypi page
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.
Signed-off-by Robert P. J. Day <[email protected]>
---
meta/classes/pypi.bbclass +2 -2
@@ -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
========================================================================Quoted 15 lines · Robert P. J. Day
The current setting for the HOMEPAGE is a redirection, so might as well update it.
Signed-off-by Robert P. J. Day <[email protected]>---
meta/classes/pypi.bbclass +0
-0@@ -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