[oe-commits] [openembedded-core] 18/21: python-gitdb: use pypi.bbclass

git at git.openembedded.org git at git.openembedded.org
Sun Dec 10 22:52:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 75ce4dad9a604a8b2a69095ee35200c353a7428b
Author: Tim Orling <timothy.t.orling at linux.intel.com>
AuthorDate: Tue Nov 28 06:19:26 2017 -0800

    python-gitdb: use pypi.bbclass
    
    * Simplify python3-gitdb recipe using pypi.bblass
    * Avoid duplication by using PYTHON_PN in .inc
    * Sort RDEPENDS alphabetically
    
    Signed-off-by: Tim Orling <timothy.t.orling at linux.intel.com>
---
 meta/recipes-devtools/python/python-gitdb.inc       | 16 ++++++++++++----
 meta/recipes-devtools/python/python3-gitdb_0.6.4.bb |  4 ----
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-devtools/python/python-gitdb.inc b/meta/recipes-devtools/python/python-gitdb.inc
index 08193fb..45c75ef 100644
--- a/meta/recipes-devtools/python/python-gitdb.inc
+++ b/meta/recipes-devtools/python/python-gitdb.inc
@@ -4,13 +4,21 @@ SECTION = "devel/python"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=59e5ecb13339a936eedf83282eaf4528"
 
-SRC_URI = "https://files.pythonhosted.org/packages/source/g/gitdb/gitdb-${PV}.tar.gz"
-
 SRC_URI[md5sum] = "44e4366b8bdfd306b075c3a52c96ae1a"
 SRC_URI[sha256sum] = "a3ebbc27be035a2e874ed904df516e35f4a29a778a764385de09de9e0f139658"
 
-UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/gitdb/"
+inherit pypi
+
+DEPENDS = "${PYTHON_PN}-async ${PYTHON_PN}-smmap"
 
-S = "${WORKDIR}/gitdb-${PV}"
+RDEPENDS_${PN} += " \
+  ${PYTHON_PN}-async \
+  ${PYTHON_PN}-compression \
+  ${PYTHON_PN}-crypt \
+  ${PYTHON_PN}-io \
+  ${PYTHON_PN}-mmap \
+  ${PYTHON_PN}-shell \
+  ${PYTHON_PN}-smmap \
+  "
 
 BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-devtools/python/python3-gitdb_0.6.4.bb b/meta/recipes-devtools/python/python3-gitdb_0.6.4.bb
index a209c52..412cf8c 100644
--- a/meta/recipes-devtools/python/python3-gitdb_0.6.4.bb
+++ b/meta/recipes-devtools/python/python3-gitdb_0.6.4.bb
@@ -1,7 +1,3 @@
 require python-gitdb.inc
 
-DEPENDS = "python3-async python3-smmap"
-
 inherit distutils3
-
-RDEPENDS_${PN} += "python3-smmap python3-async python3-mmap python3-io python3-shell python3-crypt python3-compression"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list