]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python-async: use pypi.bbclass
authorTim Orling <timothy.t.orling@linux.intel.com>
Mon, 27 Nov 2017 14:44:40 +0000 (06:44 -0800)
committerTim Orling <timothy.t.orling@linux.intel.com>
Mon, 27 Nov 2017 14:44:40 +0000 (06:44 -0800)
* Simplify by using pypi.bbclass
* Use PYTHON_PN for RDEPENDS in .inc to avoid duplication

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
meta/recipes-devtools/python/python-async.inc
meta/recipes-devtools/python/python3-async_0.6.2.bb

index 2c5cb4d1916c04b2a6a901a6a906236e619b589f..56e9592ac02a902fdc0b3b9f887bcc702a1836f7 100644 (file)
@@ -4,12 +4,11 @@ SECTION = "devel/python"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=88df8e78b9edfd744953862179f2d14e"
 
-SRC_URI = "https://files.pythonhosted.org/packages/source/a/async/async-${PV}.tar.gz"
 SRC_URI[md5sum] = "9b06b5997de2154f3bc0273f80bcef6b"
 SRC_URI[sha256sum] = "ac6894d876e45878faae493b0cf61d0e28ec417334448ac0a6ea2229d8343051"
 
-UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/async/"
+inherit pypi
 
-S = "${WORKDIR}/async-${PV}"
+RDEPENDS_${PN} += "${PYTHON_PN}-threading"
 
 BBCLASSEXTEND = "nativesdk"
index f45781c44f838e8eda85ae772dfcae7530a9d8ac..e62b21fcaef593e163857a5665388ce4a60ad01d 100644 (file)
@@ -1,6 +1,3 @@
 require python-async.inc
 
 inherit setuptools3
-
-RDEPENDS_${PN} += "python3-threading"
-