From 3d512115129e2cea97067d23cb72fea62b70dd39 Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Mon, 13 Nov 2017 16:48:05 -0500 Subject: python-*: switch remaining pypi recipes to use the pypi class Cleanup the various python-* recipes which download from pypi. The biggest change is to "inherit pypi" which should result in us always using current pypi best practices. This will for example ensure we are using https and not http which is apparently going to be disabled soon. In most cases we are able to drop SRC_URI, however, for some recipes using archived versions of packages we must set PYPI_SRC_URI to overwrite what the pypi class would derive. For example when the archive is a zip and not a tar.gz. In all cases we can drop the defining of 'S' and 'PR' as the pypi class and the PR server will set these correctly. In most cases we can drop SRCNAME. Where needed we instead set PYPI_PACKAGE to overwrite the derived name that the pypi class would otherwise calculate. Signed-off-by: Mark Asselstine Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-pathlib_1.0.1.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'meta-openstack/recipes-devtools/python/python-pathlib_1.0.1.bb') diff --git a/meta-openstack/recipes-devtools/python/python-pathlib_1.0.1.bb b/meta-openstack/recipes-devtools/python/python-pathlib_1.0.1.bb index ae26da1..21c02a2 100644 --- a/meta-openstack/recipes-devtools/python/python-pathlib_1.0.1.bb +++ b/meta-openstack/recipes-devtools/python/python-pathlib_1.0.1.bb @@ -10,16 +10,10 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b6557c860f0fc867aeab30afd649753" - -SRCNAME = "pathlib" -SRC_URI = "http://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" - SRC_URI[md5sum] = "5099ed48be9b1ee29b31c82819240537" SRC_URI[sha256sum] = "6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f" -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools +inherit setuptools pypi DEPENDS += " \ python-pip \ -- cgit v1.2.3-54-g00ecf