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

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


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

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

    python-pyopenssl: Extend recipe to support Python 3
    
    - Add Python 3 recipe
    - Add native and nativesdk to BBCLASSEXTEND
    
    Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 ...{python-pyopenssl_16.0.0.bb => python-pyopenssl.inc} |  5 +++--
 .../recipes-devtools/python/python-pyopenssl_16.0.0.bb  | 17 +----------------
 .../recipes-devtools/python/python3-pyopenssl_16.0.0.bb |  2 ++
 3 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb b/meta-python/recipes-devtools/python/python-pyopenssl.inc
similarity index 86%
copy from meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb
copy to meta-python/recipes-devtools/python/python-pyopenssl.inc
index 8173858..88b4306 100644
--- a/meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb
+++ b/meta-python/recipes-devtools/python/python-pyopenssl.inc
@@ -2,16 +2,17 @@ SUMMARY = "Simple Python wrapper around the OpenSSL library"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-DEPENDS = "openssl python-cryptography"
+DEPENDS = "openssl ${PYTHON_PN}-cryptography"
 
 SRC_URI[md5sum] = "9587d813dcf656e9f2760e41a3682dc3"
 SRC_URI[sha256sum] = "363d10ee43d062285facf4e465f4f5163f9f702f9134f0a5896f134cbb92d17d"
 
 PYPI_PACKAGE = "pyOpenSSL"
-inherit pypi setuptools
 
 PACKAGES =+ "${PN}-tests"
 FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"
 
 RDEPENDS_${PN} = "python-threading python-six python-cryptography"
 RDEPENDS_${PN}-tests = "${PN}"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb b/meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb
index 8173858..d7177e2 100644
--- a/meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb
+++ b/meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb
@@ -1,17 +1,2 @@
-SUMMARY = "Simple Python wrapper around the OpenSSL library"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
-
-DEPENDS = "openssl python-cryptography"
-
-SRC_URI[md5sum] = "9587d813dcf656e9f2760e41a3682dc3"
-SRC_URI[sha256sum] = "363d10ee43d062285facf4e465f4f5163f9f702f9134f0a5896f134cbb92d17d"
-
-PYPI_PACKAGE = "pyOpenSSL"
 inherit pypi setuptools
-
-PACKAGES =+ "${PN}-tests"
-FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"
-
-RDEPENDS_${PN} = "python-threading python-six python-cryptography"
-RDEPENDS_${PN}-tests = "${PN}"
+require python-pyopenssl.inc
diff --git a/meta-python/recipes-devtools/python/python3-pyopenssl_16.0.0.bb b/meta-python/recipes-devtools/python/python3-pyopenssl_16.0.0.bb
new file mode 100644
index 0000000..0f0f83e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyopenssl_16.0.0.bb
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-pyopenssl.inc

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


More information about the Openembedded-commits mailing list