]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python-six: use pypi.bbclass
authorTim Orling <timothy.t.orling@linux.intel.com>
Sun, 19 Nov 2017 01:11:21 +0000 (17:11 -0800)
committerTim Orling <timothy.t.orling@linux.intel.com>
Tue, 12 Dec 2017 05:15:37 +0000 (21:15 -0800)
* Simplify python3-six by using pypi.bbclass
  - Use PYTHON_PN in .inc to avoid duplication in RDEPENDS

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

index f9e7d6429d017c181c928aad21412ec49d2391f2..c77498457d5727aa58d70f25795410ee7ca3a35e 100644 (file)
@@ -4,13 +4,11 @@ SECTION = "devel/python"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=35cec5bf04dd0820d0a18533ea7c774a"
 
-SRC_URI = "https://files.pythonhosted.org/packages/source/s/six/six-${PV}.tar.gz"
 SRC_URI[md5sum] = "d12789f9baf7e9fb2524c0c64f1773f8"
 SRC_URI[sha256sum] = "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
 
-UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/six/"
-UPSTREAM_CHECK_REGEX = "/six/(?P<pver>(\d+[\.\-_]*)+)"
+inherit pypi
 
-BBCLASSEXTEND = "native nativesdk"
+RDEPENDS_${PN} = "${PYTHON_PN}-io"
 
-S = "${WORKDIR}/six-${PV}"
+BBCLASSEXTEND = "native nativesdk"
index 38a47b77ddfff6e549e53b3aed0e0655d70cb479..8795313bec669def269274afaaaa205cf2d2307e 100644 (file)
@@ -1,4 +1,2 @@
 inherit setuptools3
 require python-six.inc
-
-RDEPENDS_${PN} += "python3-io"