Skip to contentSkip to conversation

python-wrapt: add recipe for 1.11.2

PATCH New Tim Orling 1 participant 4 messages Jan 21, 2020

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/4 python-wrapt: add recipe for 1.11.2

Module for decorators, wrappers and monkey patching.

Dependency for python-deprecated

---
 .../python/python-wrapt_1.11.2.bb             | 29 +++++++++++++++----
 1 file changed, 24 insertions(+), 5 deletions(-)
recipes-devtools/python/python-wrapt_1.11.2.bb +24 -5
index 6a286ab9..9a9e2f48 100644
@@ -1,15 +1,34 @@
-SUMMARY = "A Python module for decorators, wrappers and monkey patching."
-HOMEPAGE = "http://wrapt.readthedocs.org/"
-LICENSE = "BSD-2-Clause"
+SUMMARY = "Module for decorators, wrappers and monkey patching."
+DESCRIPTION = "The aim of the wrapt module is to provide a transparent object \
+proxy for Python, which can be used as the basis for the construction of \
+function wrappers and decorator functions.\
+\
+The wrapt module focuses very much on correctness. It therefore goes way \
+beyond existing mechanisms such as functools.wraps() to ensure that decorators \
+preserve introspectability, signatures, type checking abilities etc. The \
+decorators that can be constructed using this module will work in far more \
+scenarios than typical decorators and provide more predictable and consistent \
+behaviour.\
+\
+To ensure that the overhead is as minimal as possible, a C extension module is \
+used for performance critical components. An automatic fallback to a pure \
+Python implementation is also provided where a target system does not have a \
+compiler to allow the C extension to be compiled."
+HOMEPAGE = "https://github.com/GrahamDumpleton/wrapt"
 SECTION = "devel/python"
+
+LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fdfc019b57affbe1d7a32e3d34e83db4"
 
+PYPI_PACKAGE = "wrapt"
 SRC_URI[md5sum] = "cc15c001b129f81eb2f79b15eb99ffe5"
 SRC_URI[sha256sum] = "565a021fd19419476b9362b05eeaa094178de64f8361e44468f9e9d7843901e1"
 
 inherit pypi setuptools
 
-RDEPENDS_${PN}_class-target += "\
-    ${PYTHON_PN}-stringold \
+S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
+
+RDEPENDS_${PN}_append_class-target = "\
+    ${PYTHON_PN}-lang \
     ${PYTHON_PN}-threading \
 "
Signature · 1 line
2.25.0
author
#1 lore raw

PATCH 2/4 python-deprecated: add recipe for 1.2.7

Python @deprecated decorator to deprecate old python classes, functions or methods.

Dependency for python-pymisp

---
 .../python/python-deprecated_1.2.7.bb            | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 recipes-devtools/python/python-deprecated_1.2.7.bb
recipes-devtools/python/python-deprecated_1.2.7.bb new file +16 -0
new file mode 100644
index 00000000..da2c7600
@@ -0,0 +1,16 @@
+SUMMARY = "Python @deprecated decorator to deprecate old python classes, functions or methods."
+HOMEPAGE = "https://github.com/tantale/deprecated"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=44288e26f4896bdab14072d4fa35ff01"
+
+SRC_URI[md5sum] = "93d65f6a4efc9aebebfd28c9413dfd19"
+SRC_URI[sha256sum] = "408038ab5fdeca67554e8f6742d1521cd3cd0ee0ff9d47f29318a4f4da31c308"
+
+PYPI_PACKAGE = "Deprecated"
+
+inherit pypi setuptools
+
+S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
+
+RDEPENDS_${PN} += "python-wrapt"
Signature · 1 line
2.25.0
author
#2 lore raw

PATCH 3/4 python-pymisp: upgrade 2.4.117.2 -> 2.4.119.1

In reply to Tim Orling

From: Zang Ruochen <[email protected]>

(From meta-openembedded commit: e020ebfdf2c65181829e180f6797ef6d7fa856e5)

---
 ...{python-pymisp_2.4.117.2.bb => python-pymisp_2.4.119.1.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-devtools/python/{python-pymisp_2.4.117.2.bb => python-pymisp_2.4.119.1.bb} (80%)
recipes-devtools/python/python-pymisp_2.4.119.1.bb renamed from recipes-devtools/python/python-pymisp_2.4.117.2.bb +2 -2
similarity index 80%
rename from recipes-devtools/python/python-pymisp_2.4.117.2.bb
rename to recipes-devtools/python/python-pymisp_2.4.119.1.bb
index ad1d1642..097328a4 100644
@@ -8,8 +8,8 @@ HOMEPAGE = "https://github.com/MISP/PyMISP"
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a3639cf5780f71b125d3e9d1dc127c20"
 
-SRC_URI[md5sum] = "77aef367e57ba7dcc6f9b3d445a960ed"
-SRC_URI[sha256sum] = "de67196f6a8916b9c52a84a1c45ea967c53fa9d2b3795b070ad2c1cbc28d79d7"
+SRC_URI[md5sum] = "57184785340e25469e4a80ff9ddce09e"
+SRC_URI[sha256sum] = "594ea0a9e150052232425009eac6dd104a80f494d0e273cc48dd114d7ea8482b"
 
 inherit pypi setuptools
 
Signature · 1 line
2.25.0
author
#3 lore raw

PATCH 4/4 python-pymisp: add missing RDEPENDS

In reply to Tim Orling

* differentiate target from -native,-nativesdk RDEPENDS while we are at it (for that day when someone wants it)

* Add missing run-time dependies [1]:
- python-cachetools
- python-deprecated

[1] https://github.com/MISP/PyMISP/blob/fac748dd4c63c9eef4056c5fc5201e811a97be10/setup.py#L44

---
 recipes-devtools/python/python-pymisp_2.4.119.1.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
recipes-devtools/python/python-pymisp_2.4.119.1.bb +6 -2
index 097328a4..627716b5 100644
@@ -13,11 +13,15 @@ SRC_URI[sha256sum] = "594ea0a9e150052232425009eac6dd104a80f494d0e273cc48dd114d7e
 
 inherit pypi setuptools
 
-RDEPENDS_${PN} += " \
+RDEPENDS_${PN}_append_class-target = " \
     ${PYTHON_PN}-dateutil \
     ${PYTHON_PN}-json \
     ${PYTHON_PN}-jsonschema \
+"
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-cachetools \
+    ${PYTHON_PN}-deprecated \
     ${PYTHON_PN}-requests \
     ${PYTHON_PN}-six \
 "
-
Signature · 1 line
2.25.0