All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python2][PATCH 1/4] python-wrapt: add recipe for 1.11.2
@ 2020-01-21  5:02 Tim Orling
  2020-01-21  5:02 ` [meta-python2][PATCH 2/4] python-deprecated: add recipe for 1.2.7 Tim Orling
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tim Orling @ 2020-01-21  5:02 UTC (permalink / raw)
  To: openembedded-devel

Module for decorators, wrappers and monkey patching.

Dependency for python-deprecated

Signed-off-by: Tim Orling <ticotimo@gmail.com>
---
 .../python/python-wrapt_1.11.2.bb             | 29 +++++++++++++++----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/recipes-devtools/python/python-wrapt_1.11.2.bb b/recipes-devtools/python/python-wrapt_1.11.2.bb
index 6a286ab9..9a9e2f48 100644
--- a/recipes-devtools/python/python-wrapt_1.11.2.bb
+++ b/recipes-devtools/python/python-wrapt_1.11.2.bb
@@ -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 \
 "
-- 
2.25.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-python2][PATCH 2/4] python-deprecated: add recipe for 1.2.7
  2020-01-21  5:02 [meta-python2][PATCH 1/4] python-wrapt: add recipe for 1.11.2 Tim Orling
@ 2020-01-21  5:02 ` Tim Orling
  2020-01-21  5:02 ` [meta-python2][PATCH 3/4] python-pymisp: upgrade 2.4.117.2 -> 2.4.119.1 Tim Orling
  2020-01-21  5:02 ` [meta-python2][PATCH 4/4] python-pymisp: add missing RDEPENDS Tim Orling
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Orling @ 2020-01-21  5:02 UTC (permalink / raw)
  To: openembedded-devel

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

Dependency for python-pymisp

Signed-off-by: Tim Orling <ticotimo@gmail.com>
---
 .../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

diff --git a/recipes-devtools/python/python-deprecated_1.2.7.bb b/recipes-devtools/python/python-deprecated_1.2.7.bb
new file mode 100644
index 00000000..da2c7600
--- /dev/null
+++ b/recipes-devtools/python/python-deprecated_1.2.7.bb
@@ -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"
-- 
2.25.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-python2][PATCH 3/4] python-pymisp: upgrade 2.4.117.2 -> 2.4.119.1
  2020-01-21  5:02 [meta-python2][PATCH 1/4] python-wrapt: add recipe for 1.11.2 Tim Orling
  2020-01-21  5:02 ` [meta-python2][PATCH 2/4] python-deprecated: add recipe for 1.2.7 Tim Orling
@ 2020-01-21  5:02 ` Tim Orling
  2020-01-21  5:02 ` [meta-python2][PATCH 4/4] python-pymisp: add missing RDEPENDS Tim Orling
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Orling @ 2020-01-21  5:02 UTC (permalink / raw)
  To: openembedded-devel

From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>

(From meta-openembedded commit: e020ebfdf2c65181829e180f6797ef6d7fa856e5)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Tim Orling <ticotimo@gmail.com>
---
 ...{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%)

diff --git a/recipes-devtools/python/python-pymisp_2.4.117.2.bb b/recipes-devtools/python/python-pymisp_2.4.119.1.bb
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
--- a/recipes-devtools/python/python-pymisp_2.4.117.2.bb
+++ b/recipes-devtools/python/python-pymisp_2.4.119.1.bb
@@ -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
 
-- 
2.25.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-python2][PATCH 4/4] python-pymisp: add missing RDEPENDS
  2020-01-21  5:02 [meta-python2][PATCH 1/4] python-wrapt: add recipe for 1.11.2 Tim Orling
  2020-01-21  5:02 ` [meta-python2][PATCH 2/4] python-deprecated: add recipe for 1.2.7 Tim Orling
  2020-01-21  5:02 ` [meta-python2][PATCH 3/4] python-pymisp: upgrade 2.4.117.2 -> 2.4.119.1 Tim Orling
@ 2020-01-21  5:02 ` Tim Orling
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Orling @ 2020-01-21  5:02 UTC (permalink / raw)
  To: openembedded-devel

* 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

Signed-off-by: Tim Orling <ticotimo@gmail.com>
---
 recipes-devtools/python/python-pymisp_2.4.119.1.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/recipes-devtools/python/python-pymisp_2.4.119.1.bb b/recipes-devtools/python/python-pymisp_2.4.119.1.bb
index 097328a4..627716b5 100644
--- a/recipes-devtools/python/python-pymisp_2.4.119.1.bb
+++ b/recipes-devtools/python/python-pymisp_2.4.119.1.bb
@@ -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 \
 "
-
-- 
2.25.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-21  5:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-21  5:02 [meta-python2][PATCH 1/4] python-wrapt: add recipe for 1.11.2 Tim Orling
2020-01-21  5:02 ` [meta-python2][PATCH 2/4] python-deprecated: add recipe for 1.2.7 Tim Orling
2020-01-21  5:02 ` [meta-python2][PATCH 3/4] python-pymisp: upgrade 2.4.117.2 -> 2.4.119.1 Tim Orling
2020-01-21  5:02 ` [meta-python2][PATCH 4/4] python-pymisp: add missing RDEPENDS Tim Orling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.