[oe-commits] [meta-openembedded] 28/80: python-urllib3: Extend recipe to support Python 3

git at git.openembedded.org git at git.openembedded.org
Wed Aug 31 17:08:47 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 20c2f749e3a9248800ba3c157f8e0df45cc73bb3
Author: Fabio Berton <fabio.berton at ossystems.com.br>
AuthorDate: Mon Aug 22 16:01:21 2016 -0300

    python-urllib3: Extend recipe to support Python 3
    
    - Add Python 3 recipe
      - Add native and nativesdk to BBCLASSEXTEND
      - Add python-certifi, python-cryptography, python-idna and
        python-pyopenssl to RDEPENDS
    
    Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../{python-urllib3_1.16.bb => python-urllib3.inc}       | 11 +++++++----
 .../recipes-devtools/python/python-urllib3_1.16.bb       | 16 +---------------
 .../recipes-devtools/python/python3-urllib3_1.16.bb      |  2 ++
 3 files changed, 10 insertions(+), 19 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-urllib3_1.16.bb b/meta-python/recipes-devtools/python/python-urllib3.inc
similarity index 77%
copy from meta-python/recipes-devtools/python/python-urllib3_1.16.bb
copy to meta-python/recipes-devtools/python/python-urllib3.inc
index 87a2852..7b62be5 100644
--- a/meta-python/recipes-devtools/python/python-urllib3_1.16.bb
+++ b/meta-python/recipes-devtools/python/python-urllib3.inc
@@ -6,11 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ea114851ad9a8c311aac8728a681a067"
 SRC_URI[md5sum] = "fcaab1c5385c57deeb7053d3d7d81d59"
 SRC_URI[sha256sum] = "63d479478ddfc83bbc11577dc16d47835c5179ac13e550118ca143b62c4bf9ab"
 
-inherit pypi setuptools
-
 RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-certifi \
+    ${PYTHON_PN}-cryptography \
     ${PYTHON_PN}-email \
+    ${PYTHON_PN}-idna \
     ${PYTHON_PN}-netclient \
+    ${PYTHON_PN}-pyopenssl \
     ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-zlib \
-    "
+"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python-urllib3_1.16.bb b/meta-python/recipes-devtools/python/python-urllib3_1.16.bb
index 87a2852..6c81f1d 100644
--- a/meta-python/recipes-devtools/python/python-urllib3_1.16.bb
+++ b/meta-python/recipes-devtools/python/python-urllib3_1.16.bb
@@ -1,16 +1,2 @@
-SUMMARY = "Python HTTP library with thread-safe connection pooling, file post support, sanity friendly, and more"
-HOMEPAGE = "https://github.com/shazow/urllib3"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ea114851ad9a8c311aac8728a681a067"
-
-SRC_URI[md5sum] = "fcaab1c5385c57deeb7053d3d7d81d59"
-SRC_URI[sha256sum] = "63d479478ddfc83bbc11577dc16d47835c5179ac13e550118ca143b62c4bf9ab"
-
 inherit pypi setuptools
-
-RDEPENDS_${PN} += "\
-    ${PYTHON_PN}-email \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-zlib \
-    "
+require python-urllib3.inc
diff --git a/meta-python/recipes-devtools/python/python3-urllib3_1.16.bb b/meta-python/recipes-devtools/python/python3-urllib3_1.16.bb
new file mode 100644
index 0000000..19eb702
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-urllib3_1.16.bb
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-urllib3.inc

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


More information about the Openembedded-commits mailing list