From 6525fbca288d5d06be696447ad7f457af01f080d Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Thu, 16 Nov 2017 14:20:42 -0500 Subject: python-*: switch remaining (https) pypi recipes to use the pypi class The original commit to switch pypi recipes to use the pypi.bbclass only addressed the urgent need to get the recipes using "http" converted. This change is the same but converts the remaining pypi recipes which were already uing "https". 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 which use 'zip' or 'bz2' extensions we need to set PYPI_PACKAGE_EXT. 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-ecdsa_0.13.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb') diff --git a/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb b/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb index bb11fb1..8fe492c 100644 --- a/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb +++ b/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb @@ -4,16 +4,10 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" -SRCNAME = "ecdsa" - -SRC_URI = "https://pypi.python.org/packages/source/e/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" - SRC_URI[md5sum] = "1f60eda9cb5c46722856db41a3ae6670" SRC_URI[sha256sum] = "64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa" -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools +inherit setuptools pypi DEPENDS += " \ python-pip \ -- cgit v1.2.3-54-g00ecf