Create Python3 recipies for several existing Python2 recipes
v2 cover Create Python3 recipies for several existing Python2 recipes
This set of patches creates the Python3 variant of several existing Python2 packages. It first moves the core of the existing recipe(s) into a .inc file, then creates python-*-.bb and python3-*.bb files that reference the new .inc file.
V2: the only change is to patch 07 of the series.
Bill Randle (12):
python-dominate: move core of recipe to a .inc file
python3-dominate: new recipe
python-flask-bootstrap: move core of recipe to a .inc file
python3-flask-bootstrap: new recipe
python-flask-sqlalchemy: move core of recipe to a .inc file
python3-flask-sqlalchemy: new recipe
python-flask-wtf: move core of recipe to a .inc file
python3-flask-wtf: new recipe
python-visitor: move core of recipe to a .inc file
python3-visitor: new recipe
python-wtforms: move core of recipe to a .inc file
python3-wtforms: new recipe
.../recipes-devtools/python/python-dominate.inc | 11 +++++++++++ .../recipes-devtools/python/python-dominate_2.3.1.bb | 13 +------------ .../recipes-devtools/python/python-flask-bootstrap.inc | 14 ++++++++++++++ .../python/python-flask-bootstrap_3.3.7.1.bb | 16 +--------------- .../python/python-flask-sqlalchemy.inc | 10 ++++++++++ .../python/python-flask-sqlalchemy_2.3.2.bb | 12 +----------- .../recipes-devtools/python/python-flask-wtf.inc | 16 ++++++++++++++++ .../recipes-devtools/python/python-flask-wtf_0.12.bb | 17 +---------------- meta-python/recipes-devtools/python/python-visitor.inc | 6 ++++++ .../recipes-devtools/python/python-visitor_0.1.3.bb | 8 +------- meta-python/recipes-devtools/python/python-wtforms.inc | 16 ++++++++++++++++ .../recipes-devtools/python/python-wtforms_2.1.bb | 18 +----------------- .../recipes-devtools/python/python3-dominate_2.3.1.bb | 2 ++ .../python/python3-flask-bootstrap_3.3.7.1.bb | 2 ++ .../python/python3-flask-sqlalchemy_2.3.2.bb | 2 ++ .../recipes-devtools/python/python3-flask-wtf_0.12.bb | 2 ++ .../recipes-devtools/python/python3-visitor_0.1.3.bb | 2 ++ .../recipes-devtools/python/python3-wtforms_2.1.bb | 2 ++ 18 files changed, 90 insertions(+), 78 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-dominate.inc create mode 100644 meta-python/recipes-devtools/python/python-flask-bootstrap.inc create mode 100644 meta-python/recipes-devtools/python/python-flask-sqlalchemy.inc create mode 100644 meta-python/recipes-devtools/python/python-flask-wtf.inc create mode 100644 meta-python/recipes-devtools/python/python-visitor.inc create mode 100644 meta-python/recipes-devtools/python/python-wtforms.inc create mode 100644 meta-python/recipes-devtools/python/python3-dominate_2.3.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-flask-bootstrap_3.3.7.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.3.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb create mode 100644 meta-python/recipes-devtools/python/python3-visitor_0.1.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-wtforms_2.1.bb
Signature · 1 line
2.7.4
PATCH v2 1/12 python-dominate: move core of recipe to a .inc file
--- meta-python/recipes-devtools/python/python-dominate.inc | 11 +++++++++++ .../recipes-devtools/python/python-dominate_2.3.1.bb | 13 +------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-dominate.inc
meta-python/recipes-devtools/python/python-dominate.inc new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API." +LICENSE = "LGPLv3" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" + +SRC_URI[md5sum] = "45bd97e6f7888aac24ae86013c57638e" +SRC_URI[sha256sum] = "4b8ce6f33633c9dd9175b228d21c00c801b6bd0327747cd5e17fc2da934c3a69" + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-numbers \ + ${PYTHON_PN}-threading \ + "
meta-python/recipes-devtools/python/python-dominate_2.3.1.bb +1 -12
@@ -1,13 +1,2 @@ -SUMMARY = "Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API." -LICENSE = "LGPLv3" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" - -SRC_URI[md5sum] = "45bd97e6f7888aac24ae86013c57638e" -SRC_URI[sha256sum] = "4b8ce6f33633c9dd9175b228d21c00c801b6bd0327747cd5e17fc2da934c3a69" - inherit pypi setuptools - -RDEPENDS_${PN} += "\ - ${PYTHON_PN}-numbers \ - ${PYTHON_PN}-threading \ - " +require python-dominate.inc
Signature · 1 line
2.7.4
PATCH v2 2/12 python3-dominate: new recipe
In reply to Bill Randle--- meta-python/recipes-devtools/python/python3-dominate_2.3.1.bb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-dominate_2.3.1.bb
meta-python/recipes-devtools/python/python3-dominate_2.3.1.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit pypi setuptools3 +require python-dominate.inc
Signature · 1 line
2.7.4
PATCH v2 3/12 python-flask-bootstrap: move core of recipe to a .inc file
In reply to Bill Randle--- .../recipes-devtools/python/python-flask-bootstrap.inc | 14 ++++++++++++++ .../python/python-flask-bootstrap_3.3.7.1.bb | 16 +--------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-flask-bootstrap.inc
meta-python/recipes-devtools/python/python-flask-bootstrap.inc new file +14 -0
@@ -0,0 +1,14 @@ +DESCRIPTION = "An extension that includes Bootstrap in your project, without any boilerplate code." +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=a03749709f06118a17349deb5a210619" + +SRC_URI[md5sum] = "e40d50f5c5b6438c1c6200a6f2871f81" +SRC_URI[sha256sum] = "cb08ed940183f6343a64e465e83b3a3f13c53e1baabb8d72b5da4545ef123ac8" + +PYPI_PACKAGE = "Flask-Bootstrap" + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-dominate \ + ${PYTHON_PN}-flask \ + ${PYTHON_PN}-visitor \ + "
meta-python/recipes-devtools/python/python-flask-bootstrap_3.3.7.1.bb +1 -15
@@ -1,16 +1,2 @@ -DESCRIPTION = "An extension that includes Bootstrap in your project, without any boilerplate code." -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://PKG-INFO;md5=a03749709f06118a17349deb5a210619" - -SRC_URI[md5sum] = "e40d50f5c5b6438c1c6200a6f2871f81" -SRC_URI[sha256sum] = "cb08ed940183f6343a64e465e83b3a3f13c53e1baabb8d72b5da4545ef123ac8" - -PYPI_PACKAGE = "Flask-Bootstrap" - inherit pypi setuptools - -RDEPENDS_${PN} += "\ - ${PYTHON_PN}-dominate \ - ${PYTHON_PN}-flask \ - ${PYTHON_PN}-visitor \ - " +require python-flask-bootstrap.inc
Signature · 1 line
2.7.4
PATCH v2 4/12 python3-flask-bootstrap: new recipe
In reply to Bill Randle--- meta-python/recipes-devtools/python/python3-flask-bootstrap_3.3.7.1.bb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-flask-bootstrap_3.3.7.1.bb
meta-python/recipes-devtools/python/python3-flask-bootstrap_3.3.7.1.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit pypi setuptools3 +require python-flask-bootstrap.inc
Signature · 1 line
2.7.4
PATCH v2 5/12 python-flask-sqlalchemy: move core of recipe to a .inc file
In reply to Bill Randle--- .../recipes-devtools/python/python-flask-sqlalchemy.inc | 10 ++++++++++ .../recipes-devtools/python/python-flask-sqlalchemy_2.3.2.bb | 12 +----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-flask-sqlalchemy.inc
meta-python/recipes-devtools/python/python-flask-sqlalchemy.inc new file +10 -0
@@ -0,0 +1,10 @@ +DESCRIPTION = "Adds SQLAlchemy support to your Flask application." +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=5ed1b8cc741515a835a7f6bf2f62ef4a" + +SRC_URI[md5sum] = "373ce61dfd03b593ad2eaba68c9fee35" +SRC_URI[sha256sum] = "5971b9852b5888655f11db634e87725a9031e170f37c0ce7851cf83497f56e53" + +PYPI_PACKAGE = "Flask-SQLAlchemy" + +RDEPENDS_${PN} = "${PYTHON_PN}-sqlalchemy ${PYTHON_PN}-flask"
meta-python/recipes-devtools/python/python-flask-sqlalchemy_2.3.2.bb +1 -11
@@ -1,12 +1,2 @@ -DESCRIPTION = "Adds SQLAlchemy support to your Flask application." -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=5ed1b8cc741515a835a7f6bf2f62ef4a" - -SRC_URI[md5sum] = "373ce61dfd03b593ad2eaba68c9fee35" -SRC_URI[sha256sum] = "5971b9852b5888655f11db634e87725a9031e170f37c0ce7851cf83497f56e53" - -PYPI_PACKAGE = "Flask-SQLAlchemy" - inherit pypi setuptools - -RDEPENDS_${PN} = "${PYTHON_PN}-sqlalchemy ${PYTHON_PN}-flask" +require python-flask-sqlalchemy.inc
Signature · 1 line
2.7.4
PATCH v2 6/12 python3-flask-sqlalchemy: new recipe
In reply to Bill Randle--- meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.3.2.bb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.3.2.bb
meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.3.2.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit pypi setuptools3 +require python-flask-sqlalchemy.inc
Signature · 1 line
2.7.4
PATCH v2 7/12 python-flask-wtf: move core of recipe to a .inc file
In reply to Bill RandleV2: add FILESEXTRAPATH_prepend to pick up common patch directory.
--- .../recipes-devtools/python/python-flask-wtf.inc | 15 +++++++++++++++ .../recipes-devtools/python/python-flask-wtf_0.12.bb | 17 +---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-flask-wtf.inc
meta-python/recipes-devtools/python/python-flask-wtf.inc new file +16 -0
@@ -0,0 +1,16 @@ +DESCRIPTION = "Simple integration of Flask and WTForms." +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=507e8635f25a06dc4f041a3a1b3359b3" + +SRC_URI[md5sum] = "c53a74e8ba481bf53405fd5efdf0339e" +SRC_URI[sha256sum] = "bd99316c97ed1d1cb90b8f0c242c86420a891a6a2058f20717e424bf5b0bb80e" + +FILESEXTRAPATHS_prepend := "${THISDIR}/python-flask-wtf:" +SRC_URI += " file://import-simplejson-as-json.patch" + +PYPI_PACKAGE = "Flask-WTF" + +RDEPENDS_${PN} = "\ + ${PYTHON_PN}-wtforms \ + ${PYTHON_PN}-simplejson \ +"
meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb +1 -16
@@ -1,17 +1,2 @@ -DESCRIPTION = "Simple integration of Flask and WTForms." -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=507e8635f25a06dc4f041a3a1b3359b3" - -SRC_URI[md5sum] = "c53a74e8ba481bf53405fd5efdf0339e" -SRC_URI[sha256sum] = "bd99316c97ed1d1cb90b8f0c242c86420a891a6a2058f20717e424bf5b0bb80e" - -SRC_URI += " file://import-simplejson-as-json.patch" - -PYPI_PACKAGE = "Flask-WTF" - inherit pypi setuptools - -RDEPENDS_${PN} = "\ - python-wtforms \ - python-simplejson \ -" +require python-flask-wtf.inc
Signature · 1 line
2.7.4
PATCH v2 8/12 python3-flask-wtf: new recipe
In reply to Bill Randle--- meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb
meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit pypi setuptools3 +require python-flask-wtf.inc
Signature · 1 line
2.7.4
PATCH v2 9/12 python-visitor: move core of recipe to a .inc file
In reply to Bill Randle--- meta-python/recipes-devtools/python/python-visitor.inc | 6 ++++++ meta-python/recipes-devtools/python/python-visitor_0.1.3.bb | 8 +------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-visitor.inc
meta-python/recipes-devtools/python/python-visitor.inc new file +6 -0
@@ -0,0 +1,6 @@ +SUMMARY = "A tiny pythonic visitor implementation." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489" + +SRC_URI[md5sum] = "94a024ed0ec1b02b4497c15267d319ca" +SRC_URI[sha256sum] = "2c737903b2b6864ebc6167eef7cf3b997126f1aa94bdf590f90f1436d23e480a"
meta-python/recipes-devtools/python/python-visitor_0.1.3.bb +1 -7
@@ -1,8 +1,2 @@ -SUMMARY = "A tiny pythonic visitor implementation." -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489" - -SRC_URI[md5sum] = "94a024ed0ec1b02b4497c15267d319ca" -SRC_URI[sha256sum] = "2c737903b2b6864ebc6167eef7cf3b997126f1aa94bdf590f90f1436d23e480a" - inherit pypi setuptools +require python-visitor.inc
Signature · 1 line
2.7.4
PATCH v2 10/12 python3-visitor: new recipe
In reply to Bill Randle--- meta-python/recipes-devtools/python/python3-visitor_0.1.3.bb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-visitor_0.1.3.bb
meta-python/recipes-devtools/python/python3-visitor_0.1.3.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit pypi setuptools3 +require python-visitor.inc
Signature · 1 line
2.7.4
PATCH v2 11/12 python-wtforms: move core of recipe to a .inc file
In reply to Bill Randle--- meta-python/recipes-devtools/python/python-wtforms.inc | 16 ++++++++++++++++ .../recipes-devtools/python/python-wtforms_2.1.bb | 18 +----------------- 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-wtforms.inc
meta-python/recipes-devtools/python/python-wtforms.inc new file +16 -0
@@ -0,0 +1,16 @@ +DESCRIPTION = "A flexible forms validation and rendering library for python web development." +HOMEPAGE = "https://pypi.python.org/pypi/WTForms" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=c459accc90c6ed6a94878c8fe0535be2" + +SRC_URI[md5sum] = "6938a541fafd1a1ae2f6b9b88588eef2" +SRC_URI[sha256sum] = "ffdf10bd1fa565b8233380cb77a304cd36fd55c73023e91d4b803c96bc11d46f" + +PYPI_PACKAGE = "WTForms" +PYPI_PACKAGE_EXT = "zip" + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-netserver \ + ${PYTHON_PN}-numbers \ + "
meta-python/recipes-devtools/python/python-wtforms_2.1.bb +1 -17
@@ -1,18 +1,2 @@ -DESCRIPTION = "A flexible forms validation and rendering library for python web development." -HOMEPAGE = "https://pypi.python.org/pypi/WTForms" -SECTION = "devel/python" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://PKG-INFO;md5=c459accc90c6ed6a94878c8fe0535be2" - -SRC_URI[md5sum] = "6938a541fafd1a1ae2f6b9b88588eef2" -SRC_URI[sha256sum] = "ffdf10bd1fa565b8233380cb77a304cd36fd55c73023e91d4b803c96bc11d46f" - -PYPI_PACKAGE = "WTForms" -PYPI_PACKAGE_EXT = "zip" - inherit pypi setuptools - -RDEPENDS_${PN} += "\ - ${PYTHON_PN}-netserver \ - ${PYTHON_PN}-numbers \ - " +require python-wtforms.inc
Signature · 1 line
2.7.4
PATCH v2 12/12 python3-wtforms: new recipe
In reply to Bill Randle--- meta-python/recipes-devtools/python/python3-wtforms_2.1.bb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-wtforms_2.1.bb
meta-python/recipes-devtools/python/python3-wtforms_2.1.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit pypi setuptools3 +require python-wtforms.inc
Signature · 1 line
2.7.4