Skip to contentSkip to conversation

python-cryptography support

PATCH New Tim Orling 1 participant 8 messages Apr 16, 2015

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

cover python-cryptography support

Since 0.14, python-pyopenssl requires python-cryptography. This series of patches provides support for python-cryptography and ptest for python-cryptography.

Requires fractions module, provided for python 2.7.x by:
http://git.openembedded.org/openembedded-core/commit/?id=ac09a1830fffb6aded499ade55c039e35202867e

python3 patch is in oe-core master-next:
http://git.openembedded.org/openembedded-core/commit/?h=master-next&id=d8482c74d2a7bb68ca9cc1623973e6778d714430

The following changes since commit 415a90c67f296f8816acd4d933298b101f8e830c:

postfix: add LSB init infos (2015-04-15 22:43:37 -0400)

are available in the git repository at:

git://git.openembedded.org/meta-openembedded-contrib timo/python-cryptography
http://cgit.openembedded.org/cgit.cgi/meta-openembedded-contrib/log/?h=timo/python-cryptography

Tim Orling (7):
python-cffi/python-pycparser: enable native build
python-py: add 1.4.26
python-pytest: add 2.7.0
python-iso8601: add 0.1.10
python-pretend: add 0.8.1
python-pyasn1: add 0.1.7 python-cryptography,-vectors: add 0.8.1

 .../recipes-devtools/python/python-cffi_0.9.2.bb   |  2 +
 .../python/python-cryptography-vectors_0.8.1.bb    | 14 +++++++
 .../python/python-cryptography/run-ptest           |  2 +
 .../python/python-cryptography_0.8.1.bb            | 46 ++++++++++++++++++++++
 .../python/python-iso8601_0.1.10.bb                |  8 ++++
 .../python/python-pretend_1.0.8.bb                 |  8 ++++
 .../recipes-devtools/python/python-py_1.4.26.bb    |  8 ++++
 .../recipes-devtools/python/python-pyasn1_0.1.7.bb | 16 ++++++++
 .../python/python-pycparser_2.10.bb                |  2 +
 .../recipes-devtools/python/python-pytest_2.7.0.bb | 10 +++++
 10 files changed, 116 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-cryptography-vectors_0.8.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python-cryptography/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python-iso8601_0.1.10.bb
 create mode 100644 meta-python/recipes-devtools/python/python-pretend_1.0.8.bb
 create mode 100644 meta-python/recipes-devtools/python/python-py_1.4.26.bb
 create mode 100644 meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
 create mode 100644 meta-python/recipes-devtools/python/python-pytest_2.7.0.bb
Signature · 1 line
2.1.0
author
#1 lore raw

PATCH 1/7 python-cffi/python-pycparser: enable native build

---
 meta-python/recipes-devtools/python/python-cffi_0.9.2.bb     | 2 ++
 meta-python/recipes-devtools/python/python-pycparser_2.10.bb | 2 ++
 2 files changed, 4 insertions(+)
meta-python/recipes-devtools/python/python-cffi_0.9.2.bb +2 -0
index 6c34b67..90d8099 100644
@@ -7,3 +7,5 @@ SRC_URI[md5sum] = "b1bf4625ae07a8a932f2f1a2eb200c54"
 SRC_URI[sha256sum] = "1988ce7ff9c64ecd5077776175e90fd8f0a8c827cb241a23647175ce08126bb2"
 
 inherit pypi
+
+BBCLASSEXTEND = "native"
meta-python/recipes-devtools/python/python-pycparser_2.10.bb +2 -0
index bee4052..fbb6486 100644
@@ -6,3 +6,5 @@ SRC_URI[md5sum] = "d87aed98c8a9f386aa56d365fe4d515f"
 SRC_URI[sha256sum] = "957d98b661c0b64b580ab6f94b125e09b6714154ee51de40bca16d3f0076b86c"
 
 inherit pypi
+
+BBCLASSEXTEND = "native"
Signature · 1 line
2.1.0
author
#2 lore raw

PATCH 2/7 python-py: add 1.4.26

python-py is required by python-pytest python-pytest is required for ptest of python-cryptography

---
 meta-python/recipes-devtools/python/python-py_1.4.26.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-py_1.4.26.bb
meta-python/recipes-devtools/python/python-py_1.4.26.bb new file +8 -0
new file mode 100644
index 0000000..e606ed9
@@ -0,0 +1,8 @@
+SUMMARY = "Library with cross-python path, ini-parsing, io, code, log facilities"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9"
+
+SRC_URI[md5sum] = "30c3fd92a53f1a5ed6f3591c1fe75c0e"
+SRC_URI[sha256sum] = "28dd0b90d29b386afb552efc4e355c889f4639ce93658a7872a2150ece28bb89"
+
+inherit pypi
Signature · 1 line
2.1.0
author
#3 lore raw

PATCH 3/7 python-pytest: add 2.7.0

In reply to Tim Orling

python-pytest is required for ptest of python-cryptography

---
 meta-python/recipes-devtools/python/python-pytest_2.7.0.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pytest_2.7.0.bb
meta-python/recipes-devtools/python/python-pytest_2.7.0.bb new file +10 -0
new file mode 100644
index 0000000..14dc85b
@@ -0,0 +1,10 @@
+SUMMARY = "Simple powerful teting with Python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9"
+
+SRC_URI[md5sum] = "14cde91b1106c937c48497728ea37dc6"
+SRC_URI[sha256sum] = "91dc842785417208d57e5e8dc8bb40f57316c45da24a50c53b49cb8d045519d6"
+
+RDEPENDS_${PN} = "python-py"
+
+inherit pypi
Signature · 1 line
2.1.0
author
#4 lore raw

PATCH 4/7 python-iso8601: add 0.1.10

In reply to Tim Orling

python-iso8601 is required by python-cryptography

---
 meta-python/recipes-devtools/python/python-iso8601_0.1.10.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-iso8601_0.1.10.bb
meta-python/recipes-devtools/python/python-iso8601_0.1.10.bb new file +8 -0
new file mode 100644
index 0000000..227de54
@@ -0,0 +1,8 @@
+SUMMARY = "Simple module to parse ISO 8601 dates"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ffb8415711cf5d3b081b87c3d0aff737"
+
+SRC_URI[md5sum] = "23acb1029acfef9c32069c6c851c3a41"
+SRC_URI[sha256sum] = "e712ff3a18604833f5073e836aad795b21170b19bbef70947c441ed89d0ac0e1"
+
+inherit pypi
Signature · 1 line
2.1.0
author
#5 lore raw

PATCH 5/7 python-pretend: add 0.8.1

In reply to Tim Orling

python-pretend is required by python-cryptography

---
 meta-python/recipes-devtools/python/python-pretend_1.0.8.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pretend_1.0.8.bb
meta-python/recipes-devtools/python/python-pretend_1.0.8.bb new file +8 -0
new file mode 100644
index 0000000..44b584e
@@ -0,0 +1,8 @@
+SUMMARY = "A library for stubbing in Python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=411780c0b7fa756753e94affeee5bc99"
+
+SRC_URI[md5sum] = "7147050a95c9f494248557b42b58ad79"
+SRC_URI[sha256sum] = "930f2c1e18503e8f8c403abe2e02166c4a881941745147e712cdd4f49f3fb964"
+
+inherit pypi
Signature · 1 line
2.1.0
author
#6 lore raw

PATCH 6/7 python-pyasn1: add 0.1.7

In reply to Tim Orling

python-pyasn1 is required by python-cryptography

Copied directly from:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/tree/meta-openstack/recipes-devtools/python/python-pyasn1_0.1.7.bb

Original author: Bruce Ashfield <[email protected]>

---
 .../recipes-devtools/python/python-pyasn1_0.1.7.bb       | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb new file +16 -0
new file mode 100644
index 0000000..0fe6909
@@ -0,0 +1,16 @@
+DESCRIPTION = "Python library implementing ASN.1 types."
+HOMEPAGE = "http://pyasn1.sourceforge.net/"
+SECTION = "devel/python"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ae098273b2cf8b4af164ac20e32bddf7"
+DEPENDS = "python"
+
+SRC_URI = "https://pypi.python.org/packages/source/p/pyasn1/pyasn1-${PV}.tar.gz"
+SRC_URI[md5sum] = "2cbd80fcd4c7b1c82180d3d76fee18c8"
+SRC_URI[sha256sum] = "e4f81d53c533f6bd9526b047f047f7b101c24ab17339c1a7ad8f98b25c101eab"
+
+S = "${WORKDIR}/pyasn1-${PV}"
+
+inherit setuptools
+
+RDEPENDS_${PN} += "python-lang python-shell"
Signature · 1 line
2.1.0
author
#7 lore raw

PATCH 7/7 python-cryptography, -vectors: add 0.8.1

In reply to Tim Orling

python-cryptography is required by python-pyopenssl >= 0.14

Includes python-cryptography-vectors package for ptest

Over 75k unit tests (100% coverage):
* tested on nuc (x86) and beaglebone (arm) hardware. ** will overload ram on default qemux86/qemuarm

---
 .../python/python-cryptography-vectors_0.8.1.bb    | 14 +++++++
 .../python/python-cryptography/run-ptest           |  2 +
 .../python/python-cryptography_0.8.1.bb            | 46 ++++++++++++++++++++++
 3 files changed, 62 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-cryptography-vectors_0.8.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python-cryptography/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
meta-python/recipes-devtools/python/python-cryptography-vectors_0.8.1.bb new file +14 -0
new file mode 100644
index 0000000..a9b64ed
@@ -0,0 +1,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://pypi.python.org/packages/source/c/cryptography-vectors/${SRCNAME}-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+SRC_URI[md5sum] = "04fcfcc61aee62e3b4beb1740cd120ac"
+SRC_URI[sha256sum] = "4a69e66026bfce4b97f75e72fe262f5e8f71daddc081f6608e5b0db89e552504"
+
+inherit setuptools
meta-python/recipes-devtools/python/python-cryptography/run-ptest new file +2 -0
new file mode 100644
index 0000000..0ba239c
@@ -0,0 +1,2 @@
+#!/bin/sh
+py.test
meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
2.1.0