Skip to contentSkip to conversation

Create Python3 recipies for several existing Python2 recipes

PATCH Superseded Bill Randle 3 participants 15 messages Nov 30, 2017 – Dec 6, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

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       | 15 +++++++++++++++
 .../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
#1 lore raw

PATCH 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
new file mode 100644
index 0000000..ecf74a0
@@ -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
index 13ebf92..c19445e 100644
@@ -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
#2 lore raw

PATCH 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
new file mode 100644
index 0000000..5304ccc
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-dominate.inc
Signature · 1 line
2.7.4
#3 lore raw

PATCH 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
new file mode 100644
index 0000000..0723b97
@@ -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
index 2b2a6f9..eeaade9 100644
@@ -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
#4 lore raw

PATCH 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
new file mode 100644
index 0000000..877c754
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-flask-bootstrap.inc
Signature · 1 line
2.7.4
#5 lore raw

PATCH 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
new file mode 100644
index 0000000..e0efbc6
@@ -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
index 7650917..3dc355c 100644
@@ -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
#6 lore raw

PATCH 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
new file mode 100644
index 0000000..07f45bc
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-flask-sqlalchemy.inc
Signature · 1 line
2.7.4
#7 lore raw

PATCH 7/12 python-flask-wtf: move core of recipe to a .inc file

In reply to Bill Randle
---
 .../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 +15 -0
new file mode 100644
index 0000000..e42f7c1
@@ -0,0 +1,15 @@
+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"
+
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-wtforms \
+    ${PYTHON_PN}-simplejson \
+"
meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb +1 -16
index 79afaf6..dbf091b 100644
@@ -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
#11 lore raw

PATCH 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
new file mode 100644
index 0000000..52362a8
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-flask-wtf.inc
Signature · 1 line
2.7.4
#12 lore raw

PATCH 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
new file mode 100644
index 0000000..8c2288c
@@ -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
index 1236506..eee25a5 100644
@@ -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
#8 lore raw

Re: [meta-python][PATCH 07/12] python-flask-wtf: move core of recipe to a .inc file

In reply to Bill Randle
Quoted 6 lines · Bill Randle
---
 .../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

I am getting this error:

WARNING:
/home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb:
Unable to get checksum for python3-flask-xstatic SRC_URI entry
remove-pip-requires.patch: file could not be found
WARNING:
/home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb:
Unable to get checksum for python3-flask-wtf SRC_URI entry
import-simplejson-as-json.patch: file could not be found
ERROR: ParseError in python-flask-migrate: not a BitBake file

- armin

Quoted 45 lines
meta-python/recipes-devtools/python/python-flask-wtf.inc new file +15 -0
new file mode 100644
index 0000000..e42f7c1
@@ -0,0 +1,15 @@
+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"
+
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-wtforms \
+    ${PYTHON_PN}-simplejson \
+"
meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb +1 -16
index 79afaf6..dbf091b 100644
@@ -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
#13 lore raw
In reply to Bill Randle

Bill,

Quoted 4 lines · Bill Randle

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.

Quoted 13 lines

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

I am seeing these additional issues:

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'python3-wtforms' (but /home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-wtforms' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-wtforms']
NOTE: Runtime target 'python3-flask-wtf' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-flask-wtf',
'python3-wtforms']
ERROR: Nothing RPROVIDES 'python3-flask-wtf-dev' (but /home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'python3-flask-wtf-dev'
NOTE: Runtime target 'python3-flask-wtf-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-flask-wtf-dev']
ERROR: Nothing RPROVIDES 'python3-visitor' (but /home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-bootstrap_3.3.7.1.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-visitor' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-visitor']
NOTE: Runtime target 'python3-flask-bootstrap-dev' is unbuildable,
removing...
Missing or unbuildable dependency chain was:
['python3-flask-bootstrap-dev', 'python3-visitor']
NOTE: Runtime target 'python3-flask-bootstrap' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-flask-bootstrap',
'python3-visitor']

please check. still running local world build so not sure what else will pop up.

- armin

Quoted 33 lines
 .../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       | 15 +++++++++++++++
 .../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
#14 lore raw
Quoted 53 lines · On Tue, Dec 5, 2017 at 6:48 PM, akuster808 <[email protected]> wrote:

Bill,

Quoted 4 lines · Bill Randle

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.

Quoted 13 lines

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

I am seeing these additional issues:

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'python3-wtforms' (but /home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-wtforms' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-wtforms']
NOTE: Runtime target 'python3-flask-wtf' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-flask-wtf',
'python3-wtforms']
ERROR: Nothing RPROVIDES 'python3-flask-wtf-dev' (but /home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'python3-flask-wtf-dev'
NOTE: Runtime target 'python3-flask-wtf-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-flask-wtf-dev']
ERROR: Nothing RPROVIDES 'python3-visitor' (but /home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-bootstrap_3.3.7.1.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-visitor' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-visitor']
NOTE: Runtime target 'python3-flask-bootstrap-dev' is unbuildable,
removing...
Missing or unbuildable dependency chain was:
['python3-flask-bootstrap-dev', 'python3-visitor']
NOTE: Runtime target 'python3-flask-bootstrap' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-flask-bootstrap',
'python3-visitor']

Quoted 38 lines

please check. still running local world build so not sure what else will pop up.

- armin

Quoted 33 lines
 .../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       | 15 +++++++++++++++
 .../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

Thanks, Armin. I'll go back through them all and make sure everything builds cleanly. It was working at one time, but I obviously messed something up when rebasing against master and submitting.

-Bill

#9 lore raw

Re: [meta-python][PATCH 07/12] python-flask-wtf: move core of recipe to a .inc file

In reply to akuster808
Quoted 15 lines · On Dec 5, 2017, at 7:57 PM, akuster808 <[email protected]> wrote:
Quoted 6 lines · Bill Randle

---
.../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

I am getting this error:

Quoted 8 lines

WARNING:
/home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb:
Unable to get checksum for python3-flask-xstatic SRC_URI entry
remove-pip-requires.patch: file could not be found
WARNING:
/home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb:
Unable to get checksum for python3-flask-wtf SRC_URI entry
import-simplejson-as-json.patch: file could not be found

If you are trying to use a common patch file in, for instance, python-flask-wtf directory, you will need to add FILESEXTRAPATHS_prepend to the .inc so that the patch will be picked up by python3 version. One of the few cases where we want FILESEXTRAPATHS in an actual recipe, or at least the .inc (rather than a bbappend).

—Tim

Quoted 54 lines

ERROR: ParseError in python-flask-migrate: not a BitBake file

- armin

Quoted 45 lines
meta-python/recipes-devtools/python/python-flask-wtf.inc new file +15 -0
new file mode 100644
index 0000000..e42f7c1
@@ -0,0 +1,15 @@
+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"
+
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-wtforms \
+    ${PYTHON_PN}-simplejson \
+"
meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb +0 -11
index 79afaf6..dbf091b 100644
@@ -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

meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb +1 -5
-
-RDEPENDS_${PN} = "\
-    python-wtforms \
-    python-simplejson \
-"
+require python-flask-wtf.inc
Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#10 lore raw

Re: [meta-python][PATCH 07/12] python-flask-wtf: move core of recipe to a .inc file

Quoted 24 lines · Tim Orling
Quoted 15 lines · On Dec 5, 2017, at 7:57 PM, akuster808 <[email protected]> wrote:
Quoted 6 lines · Bill Randle

---
.../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

I am getting this error:

Quoted 8 lines

WARNING:
/home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb:
Unable to get checksum for python3-flask-xstatic SRC_URI entry
remove-pip-requires.patch: file could not be found
WARNING:
/home/akuster/OE/master/meta-openembedded/meta-python/recipes-devtools/python/python3-flask-wtf_0.12.bb:
Unable to get checksum for python3-flask-wtf SRC_URI entry
import-simplejson-as-json.patch: file could not be found

Quoted 3 lines

If you are trying to use a common patch file in, for instance, python-flask-wtf directory, you will need to add FILESEXTRAPATHS_prepend to the .inc so that the patch will be picked up by python3 version. One of the few cases where we want FILESEXTRAPATHS in an actual recipe, or at least the .inc (rather than a bbappend).

—Tim

Thanks, Tim! I just figured out I needed something like that. Thanks for the tip!!

-Bill

[cut]