Skip to contentSkip to conversation

python-pyopenssl: Extend recipe to support Python 3

PATCH In review Fabio Berton 1 participant 2 messages Aug 31, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python-pyopenssl: Extend recipe to support Python 3

- Add Python 3 recipe
- Add native and nativesdk to BBCLASSEXTEND

---
 .../recipes-devtools/python/python-pyopenssl.inc   | 23 ++++++++++++++++++++++
 .../python/python-pyopenssl_16.0.0.bb              | 17 +---------------
 .../python/python3-pyopenssl_16.0.0.bb             |  2 ++
 3 files changed, 26 insertions(+), 16 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-pyopenssl.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-pyopenssl_16.0.0.bb
meta-python/recipes-devtools/python/python-pyopenssl.inc new file +23 -0
new file mode 100644
index 0000000..ce948e1
@@ -0,0 +1,23 @@
+SUMMARY = "Simple Python wrapper around the OpenSSL library"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+DEPENDS = "openssl ${PYTHON_PN}-cryptography"
+
+SRC_URI[md5sum] = "9587d813dcf656e9f2760e41a3682dc3"
+SRC_URI[sha256sum] = "363d10ee43d062285facf4e465f4f5163f9f702f9134f0a5896f134cbb92d17d"
+
+PYPI_PACKAGE = "pyOpenSSL"
+
+PACKAGES =+ "${PN}-tests"
+FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"
+
+RDEPENDS_${PN} = " \
+    ${PYTHON_PN}-cryptography \
+    ${PYTHON_PN}-six \
+    ${PYTHON_PN}-threading \
+"
+
+RDEPENDS_${PN}-tests = "${PN}"
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb +1 -16
index 8173858..d7177e2 100644
@@ -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
meta-python/recipes-devtools/python/python3-pyopenssl_16.0.0.bb new file +2 -0
new file mode 100644
index 0000000..0f0f83e
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-pyopenssl.inc
Signature · 1 line
2.1.4
#1 lore raw

Hi Martin,

I forgot to set PYTHON_PN in RDEPENDS, please apply this v2 to master-next.

Fabio

On Wed, Aug 31, 2016 at 4:36 PM, Fabio Berton <[email protected]

Quoted 89 lines

wrote:

- Add Python 3 recipe
- Add native and nativesdk to BBCLASSEXTEND

---
 .../recipes-devtools/python/python-pyopenssl.inc   | 23
++++++++++++++++++++++
 .../python/python-pyopenssl_16.0.0.bb              | 17 +---------------
 .../python/python3-pyopenssl_16.0.0.bb             |  2 ++
 3 files changed, 26 insertions(+), 16 deletions(-)
 create mode 100644 meta-python/recipes-devtools/
python/python-pyopenssl.inc
 create mode 100644 meta-python/recipes-devtools/python/

python3-pyopenssl_16.0.0.bb

meta-python/recipes-devtools/python/python-pyopenssl.inc new file +8 -0
new file mode 100644
index 0000000..ce948e1
@@ -0,0 +1,23 @@
+SUMMARY = "Simple Python wrapper around the OpenSSL library"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+DEPENDS = "openssl ${PYTHON_PN}-cryptography"
+
+SRC_URI[md5sum] = "9587d813dcf656e9f2760e41a3682dc3"
+SRC_URI[sha256sum] = "363d10ee43d062285facf4e465f4f5

163f9f702f9134f0a5896f134cbb92d17d"

meta-python/recipes-devtools/python/python-pyopenssl.inc new file +15 -0
+
+PYPI_PACKAGE = "pyOpenSSL"
+
+PACKAGES =+ "${PN}-tests"
+FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"
+
+RDEPENDS_${PN} = " \
+    ${PYTHON_PN}-cryptography \
+    ${PYTHON_PN}-six \
+    ${PYTHON_PN}-threading \
+"
+
+RDEPENDS_${PN}-tests = "${PN}"
+
+BBCLASSEXTEND = "native nativesdk"
(quoted diff) +0 -0

pyopenssl_16.0.0.bb b/meta-python/recipes-devtools/python/python- pyopenssl_16.0.0.bb
index 8173858..d7177e2 100644

meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb +0 -8
@@ -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] = "363d10ee43d062285facf4e465f4f5

163f9f702f9134f0a5896f134cbb92d17d"

meta-python/recipes-devtools/python/python-pyopenssl_16.0.0.bb +1 -8
-
-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
(quoted diff) +0 -0

pyopenssl_16.0.0.bb b/meta-python/recipes-devtools/python/python3- pyopenssl_16.0.0.bb
new file mode 100644
index 0000000..0f0f83e

meta-python/recipes-devtools/python/python3-pyopenssl_16.0.0.bb new file +2 -1
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-pyopenssl.inc
--

2.1.4