Skip to contentSkip to conversation

adds Python3 support for python-pylint's and its dependencies

PATCH New [email protected] 1 participant 6 messages Jun 20, 2017

lore
Share & tools
lore
#1 lore raw

PATCH 1/5 python-pylint: adds Python3 support

In reply to [email protected]

From: Daniela Plascencia <[email protected]>

Extend the recipe for Python3 support.

---
 .../recipes-devtools/python/python-pylint.inc      | 31 +++++++++++++++
 .../recipes-devtools/python/python-pylint_1.6.5.bb | 46 ++--------------------
 .../python/python3-pylint_1.6.5.bb                 |  2 +
 3 files changed, 36 insertions(+), 43 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-pylint.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-pylint_1.6.5.bb
meta-python/recipes-devtools/python/python-pylint.inc new file +31 -0
new file mode 100644
index 000000000..18be8a191
@@ -0,0 +1,31 @@
+SUMMARY="Pylint is a Python source code analyzer"
+HOMEPAGE= "http://www.pylint.org/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
+
+SRC_URI[md5sum] = "31da2185bf59142479e4fa16d8a9e347"
+SRC_URI[sha256sum] = "a673984a8dd78e4a8b8cfdee5359a1309d833cf38405008f4a249994a8456719"
+
+inherit pypi
+
+DEPENDS += "${PYTHON_PN}-pytest-runner-native"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-astroid \
+                   ${PYTHON_PN}-isort \
+                   ${PYTHON_PN}-numbers \
+                   ${PYTHON_PN}-shell \
+                   ${PYTHON_PN}-json \
+                   ${PYTHON_PN}-pkgutil \
+                   ${PYTHON_PN}-difflib \
+                   ${PYTHON_PN}-netserver \
+                  "
+
+do_install_append(){
+    rm ${D}${bindir}/pylint
+    cat >> ${D}${bindir}/pylint <<EOF
+#!/usr/bin/env ${PYTHON_PN}
+from pylint import run_pylint
+run_pylint()
+EOF
+    chmod 755 ${D}${bindir}/pylint
+}
meta-python/recipes-devtools/python/python-pylint_1.6.5.bb +3 -43

47 lines not on this page · raw message

meta-python/recipes-devtools/python/python3-pylint_1.6.5.bb new file +2 -0
new file mode 100644
index 000000000..fed65b303
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-pylint.inc
Signature · 1 line
2.12.0
#2 lore raw

PATCH 2/5 python-isort: adds Python3 support

In reply to [email protected]

From: Daniela Plascencia <[email protected]>

Extend the recipe for Python3 support.

---
 meta-python/recipes-devtools/python/python-isort.inc        | 10 ++++++++++
 meta-python/recipes-devtools/python/python-isort_4.2.15.bb  | 13 ++-----------
 meta-python/recipes-devtools/python/python3-isort_4.2.15.bb |  2 ++
 3 files changed, 14 insertions(+), 11 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-isort.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-isort_4.2.15.bb
meta-python/recipes-devtools/python/python-isort.inc new file +10 -0
new file mode 100644
index 000000000..9884c44f1
@@ -0,0 +1,10 @@
+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] = "34915a2ce60e6fe3dbcbf5982deef9b4"
+SRC_URI[sha256sum] = "79f46172d3a4e2e53e7016e663cc7a8b538bec525c36675fcfd2767df30b3983"
+
+inherit pypi
meta-python/recipes-devtools/python/python-isort_4.2.15.bb +2 -11
index b310fda02..fa46d89b5 100644
@@ -1,11 +1,2 @@
-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] = "34915a2ce60e6fe3dbcbf5982deef9b4"
-SRC_URI[sha256sum] = "79f46172d3a4e2e53e7016e663cc7a8b538bec525c36675fcfd2767df30b3983"
-
-inherit setuptools pypi
-
+inherit setuptools
+require python-isort.inc
meta-python/recipes-devtools/python/python3-isort_4.2.15.bb new file +2 -0
new file mode 100644
index 000000000..755b3e2f2
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-isort.inc
Signature · 1 line
2.12.0
#3 lore raw

PATCH 3/5 python-lazy-object-proxy: adds Python3 support

In reply to [email protected]

From: Daniela Plascencia <[email protected]>

Extend the recipe for Python3 support.

---
 .../recipes-devtools/python/python-lazy-object-proxy.inc     | 10 ++++++++++
 .../python/python-lazy-object-proxy_1.3.1.bb                 | 12 ++----------
 .../python/python3-lazy-object-proxy_1.3.1.bb                |  2 ++
 3 files changed, 14 insertions(+), 10 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-lazy-object-proxy.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-lazy-object-proxy_1.3.1.bb
meta-python/recipes-devtools/python/python-lazy-object-proxy.inc new file +10 -0
new file mode 100644
index 000000000..83d2ea3cd
@@ -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=ec680df42d8ad56427a83308817658cc"
+
+SRC_URI[md5sum] = "e128152b76eb5b9ba759504936139fd0"
+SRC_URI[sha256sum] = "eb91be369f945f10d3a49f5f9be8b3d0b93a4c2be8f8a5b83b0571b8123e0a7a"
+
+inherit pypi
meta-python/recipes-devtools/python/python-lazy-object-proxy_1.3.1.bb +2 -10
index 0db5e6ed9..df4d60bff 100644
@@ -1,10 +1,2 @@
-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=ec680df42d8ad56427a83308817658cc"
-
-SRC_URI[md5sum] = "e128152b76eb5b9ba759504936139fd0"
-SRC_URI[sha256sum] = "eb91be369f945f10d3a49f5f9be8b3d0b93a4c2be8f8a5b83b0571b8123e0a7a"
-
-inherit setuptools pypi
+inherit setuptools
+require python-lazy-object-proxy.inc
meta-python/recipes-devtools/python/python3-lazy-object-proxy_1.3.1.bb new file +2 -0
new file mode 100644
index 000000000..150e12fd4
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-lazy-object-proxy.inc
Signature · 1 line
2.12.0
#4 lore raw

PATCH 4/5 python-astroid: adds Python3 support

In reply to [email protected]

From: Daniela Plascencia <[email protected]>

Extend the recipe for Python3 support.

---
 .../recipes-devtools/python/python-astroid.inc     | 20 ++++++++++++++++++++
 .../python/python-astroid_1.5.3.bb                 | 22 ++++++----------------
 .../python/python3-astroid_1.5.3.bb                |  2 ++
 3 files changed, 28 insertions(+), 16 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-astroid.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-astroid_1.5.3.bb
meta-python/recipes-devtools/python/python-astroid.inc new file +20 -0
new file mode 100644
index 000000000..a5bb10695
@@ -0,0 +1,20 @@
+SUMMARY = "An abstract syntax tree for Python with inference support."
+HOMEPAGE = "https://pypi.python.org/pypi/astroid"
+SECTION = "devel/python"
+LICENSE = "LGPL"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+SRC_URI[md5sum] = "6f65e4ea8290ec032320460905afb828"
+SRC_URI[sha256sum] = "492c2a2044adbf6a84a671b7522e9295ad2f6a7c781b899014308db25312dd35"
+
+inherit pypi
+
+RDEPENDS_${PN}_class-target += "\
+    ${PYTHON_PN}-distutils \
+    ${PYTHON_PN}-lazy-object-proxy \
+    ${PYTHON_PN}-six \
+    ${PYTHON_PN}-subprocess \
+    ${PYTHON_PN}-wrapt \
+    ${PYTHON_PN}-re \
+    ${PYTHON_PN}-setuptools \
+"
meta-python/recipes-devtools/python/python-astroid_1.5.3.bb +6 -16
index 9731e0bba..f7a0a5e73 100644
@@ -1,17 +1,7 @@
-SUMMARY = "An abstract syntax tree for Python with inference support."
-HOMEPAGE = "https://pypi.python.org/pypi/astroid"
-SECTION = "devel/python"
-LICENSE = "LGPL"
-LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+inherit setuptools
+require python-astroid.inc
 
-SRC_URI[md5sum] = "6f65e4ea8290ec032320460905afb828"
-SRC_URI[sha256sum] = "492c2a2044adbf6a84a671b7522e9295ad2f6a7c781b899014308db25312dd35"
-
-inherit setuptools pypi
-
-RDEPENDS_${PN}_class-target += "\
-    ${PYTHON_PN}-distutils \
-    ${PYTHON_PN}-lazy-object-proxy \
-    ${PYTHON_PN}-six \
-    ${PYTHON_PN}-wrapt \
-"
+RDEPENDS_${PN}_class-target += "${PYTHON_PN}-enum34 \
+                                ${PYTHON_PN}-importlib \
+                                ${PYTHON_PN}-singledispatch \
+                               "
meta-python/recipes-devtools/python/python3-astroid_1.5.3.bb new file +2 -0
new file mode 100644
index 000000000..6e32c288f
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-astroid.inc
Signature · 1 line
2.12.0
#5 lore raw

PATCH 5/5 python-wrapt: adds Python3 support

In reply to [email protected]

From: Daniela Plascencia <[email protected]>

Extend the recipe for Python3 support.

---
 meta-python/recipes-devtools/python/python-wrapt.inc    | 15 +++++++++++++++
 .../recipes-devtools/python/python-wrapt_1.10.10.bb     | 17 ++---------------
 .../recipes-devtools/python/python3-wrapt_1.10.10.bb    |  2 ++
 3 files changed, 19 insertions(+), 15 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-wrapt.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-wrapt_1.10.10.bb
meta-python/recipes-devtools/python/python-wrapt.inc new file +15 -0
new file mode 100644
index 000000000..19668c008
@@ -0,0 +1,15 @@
+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] = "97365e906afa8b431f266866ec4e2e18"
+SRC_URI[sha256sum] = "42160c91b77f1bc64a955890038e02f2f72986c01d462d53cb6cb039b995cdd9"
+
+inherit pypi
+
+RDEPENDS_${PN}_class-target += "\
+    ${PYTHON_PN}-stringold \
+    ${PYTHON_PN}-threading \
+"
meta-python/recipes-devtools/python/python-wrapt_1.10.10.bb +2 -15
index ee5084212..bb4247657 100644
@@ -1,15 +1,2 @@
-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] = "97365e906afa8b431f266866ec4e2e18"
-SRC_URI[sha256sum] = "42160c91b77f1bc64a955890038e02f2f72986c01d462d53cb6cb039b995cdd9"
-
-inherit setuptools pypi
-
-RDEPENDS_${PN}_class-target += "\
-    ${PYTHON_PN}-stringold \
-    ${PYTHON_PN}-threading \
-"
+inherit setuptools
+require python-wrapt.inc
meta-python/recipes-devtools/python/python3-wrapt_1.10.10.bb new file +2 -0
new file mode 100644
index 000000000..85f446ef9
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-wrapt.inc
Signature · 1 line
2.12.0
#0 lore raw

cover adds Python3 support for python-pylint's and its dependencies

From: Daniela Plascencia <[email protected]>

Extends python-pylint's and its dependencies recipes for Python3 support.

Daniela Plascencia (5):
python-pylint: adds Python3 support
python-isort: adds Python3 support
python-lazy-object-proxy: adds Python3 support
python-astroid: adds Python3 support
python-wrapt: adds Python3 support

 .../recipes-devtools/python/python-astroid.inc     | 20 ++++++++++
 .../python/python-astroid_1.5.3.bb                 | 22 +++--------
 .../recipes-devtools/python/python-isort.inc       | 10 +++++
 .../recipes-devtools/python/python-isort_4.2.15.bb | 13 +-----
 .../python/python-lazy-object-proxy.inc            | 10 +++++
 .../python/python-lazy-object-proxy_1.3.1.bb       | 12 +-----
 .../recipes-devtools/python/python-pylint.inc      | 31 +++++++++++++++
 .../recipes-devtools/python/python-pylint_1.6.5.bb | 46 ++--------------------
 .../recipes-devtools/python/python-wrapt.inc       | 15 +++++++
 .../python/python-wrapt_1.10.10.bb                 | 17 +-------
 .../python/python3-astroid_1.5.3.bb                |  2 +
 .../python/python3-isort_4.2.15.bb                 |  2 +
 .../python/python3-lazy-object-proxy_1.3.1.bb      |  2 +
 .../python/python3-pylint_1.6.5.bb                 |  2 +
 .../python/python3-wrapt_1.10.10.bb                |  2 +
 15 files changed, 111 insertions(+), 95 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-astroid.inc
 create mode 100644 meta-python/recipes-devtools/python/python-isort.inc
 create mode 100644 meta-python/recipes-devtools/python/python-lazy-object-proxy.inc
 create mode 100644 meta-python/recipes-devtools/python/python-pylint.inc
 create mode 100644 meta-python/recipes-devtools/python/python-wrapt.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-astroid_1.5.3.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-isort_4.2.15.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-lazy-object-proxy_1.3.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pylint_1.6.5.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-wrapt_1.10.10.bb
Signature · 1 line
2.12.0