[oe-commits] [meta-openembedded] 29/80: python-cryptography-vectors: Extend recipe to support Python 3

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


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

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

    python-cryptography-vectors: Extend recipe to support Python 3
    
    - Add Python 3 recipe
      - Add native and nativesdk to BBCLASSEXTEND
      - Use pyppi class
    
    Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 ...hy-vectors_1.4.bb => python-cryptography-vectors.inc} | 11 ++++++-----
 .../python/python-cryptography-vectors_1.4.bb            | 16 ++--------------
 .../python/python3-cryptography-vectors_1.4.bb           |  2 ++
 3 files changed, 10 insertions(+), 19 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-cryptography-vectors_1.4.bb b/meta-python/recipes-devtools/python/python-cryptography-vectors.inc
similarity index 59%
copy from meta-python/recipes-devtools/python/python-cryptography-vectors_1.4.bb
copy to meta-python/recipes-devtools/python/python-cryptography-vectors.inc
index 0313c81..62dfbfd 100644
--- a/meta-python/recipes-devtools/python/python-cryptography-vectors_1.4.bb
+++ b/meta-python/recipes-devtools/python/python-cryptography-vectors.inc
@@ -2,13 +2,14 @@ SUMMARY = "Test vectors for the cryptography package."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0 | BSD"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4"
-DEPENDS = "python-cryptography"
-SRCNAME = "cryptography_vectors"
 
-SRC_URI = "https://files.pythonhosted.org/packages/source/c/cryptography-vectors/${SRCNAME}-${PV}.tar.gz"
-S = "${WORKDIR}/${SRCNAME}-${PV}"
+DEPENDS = " \
+    ${PYTHON_PN}-cryptography \
+"
 
 SRC_URI[md5sum] = "b8555dfadafc4ecab4ee4650430d9cab"
 SRC_URI[sha256sum] = "0728815ef0c53d67fd437aa5220450a9752d41ecb28108f5df628a092ff466ea"
 
-inherit setuptools
+PYPI_PACKAGE = "cryptography_vectors"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python-cryptography-vectors_1.4.bb b/meta-python/recipes-devtools/python/python-cryptography-vectors_1.4.bb
index 0313c81..4975278 100644
--- a/meta-python/recipes-devtools/python/python-cryptography-vectors_1.4.bb
+++ b/meta-python/recipes-devtools/python/python-cryptography-vectors_1.4.bb
@@ -1,14 +1,2 @@
-SUMMARY = "Test vectors for the cryptography package."
-SECTION = "devel/python"
-LICENSE = "Apache-2.0 | BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4"
-DEPENDS = "python-cryptography"
-SRCNAME = "cryptography_vectors"
-
-SRC_URI = "https://files.pythonhosted.org/packages/source/c/cryptography-vectors/${SRCNAME}-${PV}.tar.gz"
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
-SRC_URI[md5sum] = "b8555dfadafc4ecab4ee4650430d9cab"
-SRC_URI[sha256sum] = "0728815ef0c53d67fd437aa5220450a9752d41ecb28108f5df628a092ff466ea"
-
-inherit setuptools
+inherit pypi setuptools
+require python-cryptography-vectors.inc
diff --git a/meta-python/recipes-devtools/python/python3-cryptography-vectors_1.4.bb b/meta-python/recipes-devtools/python/python3-cryptography-vectors_1.4.bb
new file mode 100644
index 0000000..58994ff
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-cryptography-vectors_1.4.bb
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-cryptography-vectors.inc

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


More information about the Openembedded-commits mailing list