Add python3-behave Recipe
v2 cover Add python3-behave Recipe
Add Python 3 version of python-behave and its dependencies. Fix missing dependencies for the Python 2 recipe as well.
Changes in v2:
* Clarify license of python-parse-type from BSD to BSD-3-Clause
* Add HOMEPAGE to python-parse-type.inc
Robert Joslyn (5):
python-linecache2: Add recipe
python-traceback2: Add recipe
python-parse: Update to 1.8.4 and add Python 3 version
python-parse-type: Add Python 3 recipe
python-behave: Add Python 3 recipe
meta-python/recipes-devtools/python/python-behave.inc | 15 +++++++++++++++ .../recipes-devtools/python/python-behave_1.2.6.bb | 16 +++++++--------- .../recipes-devtools/python/python-linecache2_1.0.0.bb | 13 +++++++++++++ .../recipes-devtools/python/python-parse-type.inc | 12 ++++++++++++ .../recipes-devtools/python/python-parse-type_0.4.2.bb | 13 ++----------- meta-python/recipes-devtools/python/python-parse.inc | 13 +++++++++++++ .../recipes-devtools/python/python-parse_1.8.2.bb | 13 ------------- .../recipes-devtools/python/python-parse_1.8.4.bb | 2 ++ .../recipes-devtools/python/python-traceback2_1.4.0.bb | 15 +++++++++++++++ .../recipes-devtools/python/python3-behave_1.2.6.bb | 2 ++ .../recipes-devtools/python/python3-parse-type_0.4.2.bb | 2 ++ .../recipes-devtools/python/python3-parse_1.8.4.bb | 2 ++ 12 files changed, 85 insertions(+), 33 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-behave.inc create mode 100644 meta-python/recipes-devtools/python/python-linecache2_1.0.0.bb create mode 100644 meta-python/recipes-devtools/python/python-parse-type.inc create mode 100644 meta-python/recipes-devtools/python/python-parse.inc delete mode 100644 meta-python/recipes-devtools/python/python-parse_1.8.2.bb create mode 100644 meta-python/recipes-devtools/python/python-parse_1.8.4.bb create mode 100644 meta-python/recipes-devtools/python/python-traceback2_1.4.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-behave_1.2.6.bb create mode 100644 meta-python/recipes-devtools/python/python3-parse-type_0.4.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-parse_1.8.4.bb
Signature · 1 line
2.16.4
PATCH v2 1/5 python-linecache2: Add recipe
--- .../recipes-devtools/python/python-linecache2_1.0.0.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-linecache2_1.0.0.bb
meta-python/recipes-devtools/python/python-linecache2_1.0.0.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "A backport of linecache to older supported Pythons" +HOMEPAGE = "https://github.com/testing-cabal/linecache2" +LICENSE = "Python-2.0" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=19;endline=19;md5=368ddc8588431c180ae7c33f4fb57519" + +DEPENDS = "${PYTHON_PN}-pbr-native" + +SRC_URI[md5sum] = "7b25d0289ec36bff1f9e63c4329ce65c" +SRC_URI[sha256sum] = "4b26ff4e7110db76eeb6f5a7b64a82623839d595c2038eeda662f2a2db78e97c" + +inherit pypi setuptools + +CLEAN_BROKEN = "1"
Signature · 1 line
2.16.4
PATCH v2 2/5 python-traceback2: Add recipe
In reply to Robert Joslyn--- .../recipes-devtools/python/python-traceback2_1.4.0.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-traceback2_1.4.0.bb
meta-python/recipes-devtools/python/python-traceback2_1.4.0.bb new file +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "A backport of traceback to older supported Pythons" +HOMEPAGE = "https://github.com/testing-cabal/traceback2" +LICENSE = "Python-2.0" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=31;endline=31;md5=368ddc8588431c180ae7c33f4fb57519" + +DEPENDS = "${PYTHON_PN}-pbr-native" + +SRC_URI[md5sum] = "9e9723f4d70bfc6308fa992dd193c400" +SRC_URI[sha256sum] = "05acc67a09980c2ecfedd3423f7ae0104839eccb55fc645773e1caa0951c3030" + +inherit pypi setuptools + +CLEANBROKEN = "1" + +RDEPENDS_${PN} = "${PYTHON_PN}-linecache2"
Signature · 1 line
2.16.4
PATCH v2 3/5 python-parse: Update to 1.8.4 and add Python 3 version
In reply to Robert JoslynCorrect the license to MIT. The PyPI metadata says BSD, but the license text in the code is actually MIT.
--- meta-python/recipes-devtools/python/python-parse.inc | 13 +++++++++++++ meta-python/recipes-devtools/python/python-parse_1.8.2.bb | 13 ------------- meta-python/recipes-devtools/python/python-parse_1.8.4.bb | 2 ++ meta-python/recipes-devtools/python/python3-parse_1.8.4.bb | 2 ++ 4 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-parse.inc delete mode 100644 meta-python/recipes-devtools/python/python-parse_1.8.2.bb create mode 100644 meta-python/recipes-devtools/python/python-parse_1.8.4.bb create mode 100644 meta-python/recipes-devtools/python/python3-parse_1.8.4.bb
meta-python/recipes-devtools/python/python-parse.inc new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "Parse strings using a specification based on the Python format() syntax" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://parse.py;beginline=1273;endline=1291;md5=5147afdd9b3615290ad8733f0137a1a1" + +SRC_URI[md5sum] = "fa69ab2fe846f9b183411391f7c6897b" +SRC_URI[sha256sum] = "c3cdf6206f22aeebfa00e5b954fcfea13d1b2dc271c75806b6025b94fb490939" + +inherit pypi + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-logging \ + "
meta-python/recipes-devtools/python/python-parse_1.8.2.bb deleted +0 -13
@@ -1,13 +0,0 @@ -SUMMARY = "Parse strings using a specification based on the Python format() syntax" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://parse.py;beginline=1191;endline=1209;md5=5147afdd9b3615290ad8733f0137a1a1" - -SRC_URI[md5sum] = "42002338551bdfa0f01bbe4e679a17dd" -SRC_URI[sha256sum] = "8048dde3f5ca07ad7ac7350460952d83b63eaacecdac1b37f45fd74870d849d2" - -inherit pypi setuptools - -RDEPENDS_${PN} += "\ - ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-logging \ - "
meta-python/recipes-devtools/python/python-parse_1.8.4.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit setuptools +require python-parse.inc
meta-python/recipes-devtools/python/python3-parse_1.8.4.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit setuptools3 +require python-parse.inc
Signature · 1 line
2.16.4
Re: [meta-python][PATCH v2 3/5] python-parse: Update to 1.8.4 and add Python 3 version
Quoted 3 lines · Robert Joslyn
Correct the license to MIT. The PyPI metadata says BSD, but the license text in the code is actually MIT.
Part of this patch is already applied by another pull. Please rebase on top of current master and resend.
Quoted 73 lines
--- meta-python/recipes-devtools/python/python-parse.inc | 13 +++++++++++++ meta-python/recipes-devtools/python/python-parse_1.8.2.bb | 13 ------------- meta-python/recipes-devtools/python/python-parse_1.8.4.bb | 2 ++ meta-python/recipes-devtools/python/python3-parse_1.8.4.bb | 2 ++ 4 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-parse.inc delete mode 100644 meta-python/recipes-devtools/python/python-parse_1.8.2.bb create mode 100644 meta-python/recipes-devtools/python/python-parse_1.8.4.bb create mode 100644 meta-python/recipes-devtools/python/python3-parse_1.8.4.bbmeta-python/recipes-devtools/python/python-parse.inc new file +13
-0@@ -0,0 +1,13 @@ +SUMMARY = "Parse strings using a specification based on the Python format() syntax" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://parse.py;beginline=1273;endline=1291;md5=5147afdd9b3615290ad8733f0137a1a1" + +SRC_URI[md5sum] = "fa69ab2fe846f9b183411391f7c6897b" +SRC_URI[sha256sum] = "c3cdf6206f22aeebfa00e5b954fcfea13d1b2dc271c75806b6025b94fb490939" + +inherit pypi + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-logging \ + "meta-python/recipes-devtools/python/python-parse_1.8.2.bb deleted +0
-13@@ -1,13 +0,0 @@ -SUMMARY = "Parse strings using a specification based on the Python format() syntax" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://parse.py;beginline=1191;endline=1209;md5=5147afdd9b3615290ad8733f0137a1a1" - -SRC_URI[md5sum] = "42002338551bdfa0f01bbe4e679a17dd" -SRC_URI[sha256sum] = "8048dde3f5ca07ad7ac7350460952d83b63eaacecdac1b37f45fd74870d849d2" - -inherit pypi setuptools - -RDEPENDS_${PN} += "\ - ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-logging \ - "meta-python/recipes-devtools/python/python-parse_1.8.4.bb new file +2
-0@@ -0,0 +1,2 @@ +inherit setuptools +require python-parse.incmeta-python/recipes-devtools/python/python3-parse_1.8.4.bb new file +2
-1@@ -0,0 +1,2 @@ +inherit setuptools3 +require python-parse.inc --2.16.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH v2 4/5 python-parse-type: Add Python 3 recipe
In reply to Robert JoslynClarify license from BSD to BSD-3-Clause.
--- meta-python/recipes-devtools/python/python-parse-type.inc | 12 ++++++++++++ .../recipes-devtools/python/python-parse-type_0.4.2.bb | 13 ++----------- .../recipes-devtools/python/python3-parse-type_0.4.2.bb | 2 ++ 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-parse-type.inc create mode 100644 meta-python/recipes-devtools/python/python3-parse-type_0.4.2.bb
meta-python/recipes-devtools/python/python-parse-type.inc new file +12 -0
@@ -0,0 +1,12 @@ +SUMMARY = "Simplifies building parse types based on the parse module" +HOMEPAGE = "https://github.com/jenisys/parse_type" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d07323820cca0f1d192cbbf8a0516f95" + +SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707" +SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c" + +PYPI_PACKAGE = "parse_type" +inherit pypi + +RDEPENDS_${PN} += "${PYTHON_PN}-parse"
meta-python/recipes-devtools/python/python-parse-type_0.4.2.bb +2 -11
@@ -1,11 +1,2 @@ -SUMMARY = "Simplifies building parse types based on the parse module" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=d07323820cca0f1d192cbbf8a0516f95" -PYPI_PACKAGE = "parse_type" - -SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707" -SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c" - -RDEPENDS_${PN} += "python-parse" - -inherit pypi setuptools +inherit setuptools +require python-parse-type.inc
meta-python/recipes-devtools/python/python3-parse-type_0.4.2.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit setuptools3 +require python-parse-type.inc
Signature · 1 line
2.16.4
Re: [meta-python][PATCH v2 4/5] python-parse-type: Add Python 3 recipe
Quoted 18 lines · Robert Joslyn
Clarify license from BSD to BSD-3-Clause.
--- meta-python/recipes-devtools/python/python-parse-type.inc | 12 ++++++++++++ .../recipes-devtools/python/python-parse-type_0.4.2.bb | 13 ++----------- .../recipes-devtools/python/python3-parse-type_0.4.2.bb | 2 ++ 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-parse-type.inc create mode 100644 meta-python/recipes-devtools/python/python3-parse-type_0.4.2.bbmeta-python/recipes-devtools/python/python-parse-type.inc new file +2
-0@@ -0,0 +1,12 @@ +SUMMARY = "Simplifies building parse types based on the parse module" +HOMEPAGE = "https://github.com/jenisys/parse_type"
meta-python/recipes-devtools/python/python-parse-type.inc line 12
Quoted 10 lines
meta-python/recipes-devtools/python/python-parse-type.inc new file +10
-0+LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d07323820cca0f1d192cbbf8a0516f95" + +SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707" +SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c" + +PYPI_PACKAGE = "parse_type" +inherit pypi + +RDEPENDS_${PN} += "${PYTHON_PN}-parse"
there is no recipe for python3-parse but this does mean that python3-parse-type will rdep on it and fail the dep check like below
ERROR: Nothing RPROVIDES 'python3-parse' (but /mnt/a/oe/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-parse-type_0.4.2.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-parse' is unbuildable, removing...
Quoted 34 lines
meta-python/recipes-devtools/python/python-parse-type_0.4.2.bb +2
-11@@ -1,11 +1,2 @@ -SUMMARY = "Simplifies building parse types based on the parse module" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=d07323820cca0f1d192cbbf8a0516f95" -PYPI_PACKAGE = "parse_type" - -SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707" -SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c" - -RDEPENDS_${PN} += "python-parse" - -inherit pypi setuptools +inherit setuptools +require python-parse-type.incmeta-python/recipes-devtools/python/python3-parse-type_0.4.2.bb new file +2
-1@@ -0,0 +1,2 @@ +inherit setuptools3 +require python-parse-type.inc --2.16.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][PATCH v2 4/5] python-parse-type: Add Python 3 recipe
Quoted 44 lines · Khem Raj
Quoted 33 lines · Robert Joslyn
Clarify license from BSD to BSD-3-Clause.
--- meta-python/recipes-devtools/python/python-parse-type.inc | 12 ++++++++++++ .../recipes-devtools/python/python-parse-type_0.4.2.bb | 13 ++----------- .../recipes-devtools/python/python3-parse-type_0.4.2.bb | 2 ++ 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python- parse-type.inc create mode 100644 meta-python/recipes-devtools/python/python3-parse-type_0.4.2.bb
(quoted diff) +0
-0type.inc b/meta-python/recipes-devtools/python/python-parse- type.inc
new file mode 100644
index 000000000..4549ec98bmeta-python/recipes-devtools/python/python-parse-type.inc new file +1
-0@@ -0,0 +1,12 @@ +SUMMARY = "Simplifies building parse types based on the parsemodule"
meta-python/recipes-devtools/python/python-parse-type.inc new file +3
-0+HOMEPAGE = "https://github.com/jenisys/parse_type" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM ="file://LICENSE;md5=d07323820cca0f1d192cbbf8a0516f95"
meta-python/recipes-devtools/python/python-parse-type.inc new file +3
-0+ +SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707" +SRC_URI[sha256sum] ="
f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c"meta-python/recipes-devtools/python/python-parse-type.inc line 12
Quoted 5 lines
meta-python/recipes-devtools/python/python-parse-type.inc new file +5
-0+ +PYPI_PACKAGE = "parse_type" +inherit pypi + +RDEPENDS_${PN} += "${PYTHON_PN}-parse"there is no recipe for python3-parse but this does mean that python3-parse-type will rdep on it and fail the dep check like below
Quoted 5 lines
ERROR: Nothing RPROVIDES 'python3-parse' (but
/mnt/a/oe/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-parse-type_0.4.2.bb
RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-parse' is unbuildable, removing...
I added python3-parse as patch 3 of the series, but that patch got dropped since another patch to the recipe was pulled in to master first. I'll resend the series rebased on master, which will fix both issues.
Thanks,
Robert
Quoted 44 lines
Quoted 44 lines
(quoted diff) +0
-0type_0.4.2.bb b/meta-python/recipes-devtools/python/python-parse- type_0.4.2.bb
indexb516c5912..8e10e801c100644
--- a/meta-python/recipes-devtools/python/python-parse- type_0.4.2.bb
+++ b/meta-python/recipes-devtools/python/python-parse- type_0.4.2.bbmeta-python/recipes-devtools/python/python-parse-type.inc new file +0
-1@@ -1,11 +1,2 @@ -SUMMARY = "Simplifies building parse types based on the parsemodule"
meta-python/recipes-devtools/python/python-parse-type.inc new file +0
-2-LICENSE = "BSD" -LIC_FILES_CHKSUM ="file://LICENSE;md5=d07323820cca0f1d192cbbf8a0516f95"
meta-python/recipes-devtools/python/python-parse-type.inc new file +0
-4-PYPI_PACKAGE = "parse_type" - -SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707" -SRC_URI[sha256sum] ="
f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c"meta-python/recipes-devtools/python/python-parse-type.inc new file +2
-4- -RDEPENDS_${PN} += "python-parse" - -inherit pypi setuptools +inherit setuptools +require python-parse-type.inc(quoted diff) +0
-0type_0.4.2.bb b/meta-python/recipes-devtools/python/python3-parse- type_0.4.2.bb
new file mode 100644
index 000000000..91d9ce2d4meta-python/recipes-devtools/python/python3-parse- new file +0
-0type_0.4.2.bb
meta-python/recipes-devtools/python/python3-parse- new file +2
-1@@ -0,0 +1,2 @@ +inherit setuptools3 +require python-parse-type.inc --2.16.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH v2 5/5 python-behave: Add Python 3 recipe
In reply to Robert JoslynFix broken dependencies of Python 2 recipe as well.
--- meta-python/recipes-devtools/python/python-behave.inc | 15 +++++++++++++++ .../recipes-devtools/python/python-behave_1.2.6.bb | 16 +++++++--------- .../recipes-devtools/python/python3-behave_1.2.6.bb | 2 ++ 3 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-behave.inc create mode 100644 meta-python/recipes-devtools/python/python3-behave_1.2.6.bb
meta-python/recipes-devtools/python/python-behave.inc new file +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "A behavior-driven development framework, Python style" +HOMEPAGE = "https://github.com/behave/behave" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d950439e8ea6ed233e4288f5e1a49c06" + +SRC_URI[md5sum] = "3f05c859a1c45f5ed33e925817ad887d" +SRC_URI[sha256sum] = "b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86" + +inherit pypi + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-parse-type \ + ${PYTHON_PN}-setuptools \ + ${PYTHON_PN}-six \ + "
meta-python/recipes-devtools/python/python-behave_1.2.6.bb +7 -9
@@ -1,10 +1,8 @@ -SUMMARY = "A behavior-driven development framework, Python style" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=d950439e8ea6ed233e4288f5e1a49c06" +inherit setuptools +require python-behave.inc -SRC_URI[md5sum] = "3f05c859a1c45f5ed33e925817ad887d" -SRC_URI[sha256sum] = "b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86" - -RDEPENDS_${PN} += "python-difflib python-setuptools python-pkgutil python-misc python-argparse python-xml python-enum34 python-parse python-parse-type python-six" - -inherit pypi setuptools +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-argparse \ + ${PYTHON_PN}-enum34 \ + ${PYTHON_PN}-traceback2 \ + "
meta-python/recipes-devtools/python/python3-behave_1.2.6.bb new file +2 -0
@@ -0,0 +1,2 @@ +inherit setuptools3 +require python-behave.inc
Signature · 1 line
2.16.4