solves python-pylint runtime dependencies
v3 cover solves python-pylint runtime dependencies
From: Daniela Plascencia <[email protected]>
The python-pylint module is already defined in meta-openembedded, but runtime dependencies are missing. This series solves all dependencies and ensures python-pylint is installed correctly in the target.
[YOCTO #10411]
Daniela Plascencia (7):
python-backports-functools-lru-cache: add new recipe
python-wrapt: add new recipe
python-astroid: add new recipe
python-lazy-object-proxy: add new recipe
python-setuptools-scm: add native to BBCLASSEXTEND
python-isort: add new recipe
python-pylint: modifies package bin to match source and adds
dependencies
.../recipes-devtools/python/python-astroid_1.4.8.bb | 10 ++++++++++ .../python-backports-functools-lru-cache_1.3.bb | 14 ++++++++++++++ .../recipes-devtools/python/python-isort_4.2.5.bb | 11 +++++++++++ .../python/python-lazy-object-proxy_1.2.2.bb | 10 ++++++++++ .../recipes-devtools/python/python-pylint_1.6.4.bb | 19 ++++++++++++++++++- .../python/python-setuptools-scm_1.15.0.bb | 6 ++++-- .../recipes-devtools/python/python-wrapt_1.10.8.bb | 10 ++++++++++ 7 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-astroid_1.4.8.bb create mode 100644 meta-python/recipes-devtools/python/python-backports-functools-lru-cache_1.3.bb create mode 100644 meta-python/recipes-devtools/python/python-isort_4.2.5.bb create mode 100644 meta-python/recipes-devtools/python/python-lazy-object-proxy_1.2.2.bb create mode 100644 meta-python/recipes-devtools/python/python-wrapt_1.10.8.bb
Signature · 1 line
2.6.6
PATCH v3 2/7 python-wrapt: add new recipe
From: Daniela Plascencia <[email protected]>
The recipe defines the wrapt python module. This module provides a transparent object proxy for Python that can be used in the construction of function wrappers and decorators.
--- meta-python/recipes-devtools/python/python-wrapt_1.10.8.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-wrapt_1.10.8.bb
meta-python/recipes-devtools/python/python-wrapt_1.10.8.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "A Python module for decorators, wrappers and monkey patching." +HOMEPAGE = "http://wrapt.readthedocs.org/" +LICENSE = "BSD" +SECTION = "devel/python" +LIC_FILES_CHKSUM = "file://LICENSE;md5=82704725592991ea88b042d150a66303" + +SRC_URI[md5sum] = "7c2a7e6262acc396ef6528b3d66bd047" +SRC_URI[sha256sum] = "4ea17e814e39883c6cf1bb9b0835d316b2f69f0f0882ffe7dad1ede66ba82c73" + +inherit setuptools pypi
Signature · 1 line
2.6.6
PATCH v3 1/7 python-backports-functools-lru-cache: add new recipe
In reply to [email protected]From: Daniela Plascencia <[email protected]>
The recipe defines the backports.functools_lru_cache package. This package backports LRU cache from Python 3.3, supporting the full Py3.3 API.
--- .../python/python-backports-functools-lru-cache_1.3.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-backports-functools-lru-cache_1.3.bb
meta-python/recipes-devtools/python/python-backports-functools-lru-cache_1.3.bb new file +14 -0
@@ -0,0 +1,14 @@ +SUMMARY = "Backport of functools.lru_cache from Python 3.3" +HOMEPAGE = "https://github.com/jaraco/backports.functools_lru_cache" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://setup.py;beginline=42;endline=42;md5=98fc3658e5970d26f6b2109808c766be" + +PYPI_PACKAGE = "backports.functools_lru_cache" + +SRC_URI[md5sum] = "b26a223250bd24ea2e0ad6ce47b19084" +SRC_URI[sha256sum] = "444a21bcec4ae177da554321f81a78dc879eaa8f6ea9920cb904830585d31e95" + +DEPENDS = "python-setuptools-scm-native" + +inherit setuptools pypi
Signature · 1 line
2.6.6
PATCH v3 3/7 python-astroid: add new recipe
In reply to [email protected]From: Daniela Plascencia <[email protected]>
The recipe defines the astroid python module. This module provides a common base representation of python source code for projects such as pylint.
--- meta-python/recipes-devtools/python/python-astroid_1.4.8.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-astroid_1.4.8.bb
meta-python/recipes-devtools/python/python-astroid_1.4.8.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "An abstract syntax tree for Python with inference support." +HOMEPAGE = "https://pypi.python.org/pypi/astroid/1.4.8" +SECTION = "devel/python" +LICENSE = "LGPL" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" + +SRC_URI[md5sum] = "3def6c80afcd38b4ca4aca6aea71cbde" +SRC_URI[sha256sum] = "5f064785a7e45ed519285f2eb30b795e58a4932a0736b32030da6fef3394ddb3" + +inherit setuptools pypi
Signature · 1 line
2.6.6
PATCH v3 4/7 python-lazy-object-proxy: add new recipe
In reply to [email protected]From: Daniela Plascencia <[email protected]>
The recipe defines the lazy-object-proxy
python module: a fast and thorough lazy
object proxy.
--- .../recipes-devtools/python/python-lazy-object-proxy_1.2.2.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-lazy-object-proxy_1.2.2.bb
meta-python/recipes-devtools/python/python-lazy-object-proxy_1.2.2.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "A fast and thorough lazy object proxy" +HOMEPAGE = "https://python-lazy-object-proxy.readthedocs.io/" +LICENSE = "BSD" +SECTION = "devel/python" +LIC_FILES_CHKSUM = "file://LICENSE;md5=96b1673d10167cb31b78e64f561c3286" + +SRC_URI[md5sum] = "841b5592bc12c6ef7e48ed1d7a5f9066" +SRC_URI[sha256sum] = "ddd4cf1c74279c349cb7b9c54a2efa5105854f57de5f2d35829ee93631564268" + +inherit setuptools pypi
Signature · 1 line
2.6.6
PATCH v3 5/7 python-setuptools-scm: add native to BBCLASSEXTEND
In reply to [email protected]From: Daniela Plascencia <[email protected]>
Enables a native variant of python-setuptools-scm
by adding BBCLASSEXTEND to the recipe.
--- meta-python/recipes-devtools/python/python-setuptools-scm_1.15.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python-setuptools-scm_1.15.0.bb +4 -2
@@ -6,8 +6,10 @@ SRC_URI[md5sum] = "b6916c78ed6253d6602444fad4279c5b" SRC_URI[sha256sum] = "daf12d05aa2155a46aa357453757ffdc47d87f839e62114f042bceac6a619e2f" PYPI_PACKAGE = "setuptools_scm" -inherit pypi setuptools -RDEPENDS_${PN} = "python-py python-setuptools python-argparse python-debugger python-json" +RDEPENDS_${PN}_class-target = "python-py python-setuptools python-argparse python-debugger python-json" +RDEPENDS_${PN}_class-native = "python-setuptools-native" +BBCLASSEXTEND =+ "native" +inherit pypi setuptools
Signature · 1 line
2.6.6
PATCH v3 6/7 python-isort: add new recipe
In reply to [email protected]From: Daniela Plascencia <[email protected]>
The recipe defines the isort python module. This module sorts imports alphabetically, and automatically separates them into sections.
--- meta-python/recipes-devtools/python/python-isort_4.2.5.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-isort_4.2.5.bb
meta-python/recipes-devtools/python/python-isort_4.2.5.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "A Python utility / library to sort Python imports." +HOMEPAGE = "https://pypi.python.org/pypi/isort" +LICENSE = "MIT" +SECTION = "devel/python" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489" + +SRC_URI[md5sum] = "71489ebd936429d5bda2af7ae662ed78" +SRC_URI[sha256sum] = "56b20044f43cf6e6783fe95d054e754acca52dd43fbe9277c1bdff835537ea5c" + +inherit setuptools pypi +
Signature · 1 line
2.6.6
PATCH v3 7/7 python-pylint: modifies package bin to match source and adds dependencies
In reply to [email protected]From: Daniela Plascencia <[email protected]>
The pylint script mismatches from source in the target, producing runtime errors, such as:
"pkg_resources.DistributionNotFound: The 'configparser'
was not found and is required by pylint"
This exception is raised mainly because pkg_resources, which is used by pylint, looks for modules named as in Py3, but the target has only Py2. For instance, 'ConfigParser' (already installed), has been renamed to 'configparser' in Py3, and thus not found by pkg_resources. To ensure none of these compatibility issues happen, the pylint script handles all the imports.
Thus, /usr/bin/pylint has to be installed in the same fashion as in source, and the recipe in this patch states the content of such script and deletes the previous one.
Also, a set of runtime dependencies is added to the recipe.
--- .../recipes-devtools/python/python-pylint_1.6.4.bb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-pylint_1.6.4.bb +18 -1
@@ -22,6 +22,23 @@ RDEPENDS_${PN} += "python-codecs \ python-stringold \ python-subprocess \ python-textutils \ - python-unittest" + python-unittest \ + python-backports-functools-lru-cache \ + python-setuptools \ + python-astroid \ + python-wrapt \ + python-isort \ + python-lazy-object-proxy \ + " inherit pypi setuptools + +do_install_append(){ + rm ${D}${bindir}/pylint + cat >> ${D}${bindir}/pylint <<EOF +#!/usr/bin/env python +from pylint import run_pylint +run_pylint() +EOF + chmod 755 ${D}${bindir}/pylint +}
Signature · 1 line
2.6.6