python-flask-pymongo: upgrade 0.5.1 -> 2.3.0
PATCH v2 1/1 python-flask-pymongo: upgrade 0.5.1 -> 2.3.0
Add depends of python-vcversioner and python3-vcversioner.
---
meta-python/recipes-devtools/python/python-flask-pymongo.inc | 6 ++++--
...{python-flask-pymongo_0.5.1.bb => python-flask-pymongo_2.3.0.bb} | 0
...ython3-flask-pymongo_0.5.1.bb => python3-flask-pymongo_2.3.0.bb} | 0
3 files changed, 4 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python-flask-pymongo_0.5.1.bb => python-flask-pymongo_2.3.0.bb} (100%)
rename meta-python/recipes-devtools/python/{python3-flask-pymongo_0.5.1.bb => python3-flask-pymongo_2.3.0.bb} (100%)meta-python/recipes-devtools/python/python-flask-pymongo.inc +4 -2
@@ -5,9 +5,11 @@ SECTION = "devel/python" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://flask_pymongo/wrappers.py;beginline=1;endline=24;md5=424c4e1047d28e01b4e4634a069c019d" -SRC_URI[md5sum] = "d7a1b717f27154e1f3a355f8ec2467d6" -SRC_URI[sha256sum] = "2baaa2ba5107d72b3a8bd4b5c0c8881316e35340ad1ae979cc13f1f3c8843b3d" +SRC_URI[md5sum] = "94df71e6800b1d7915cc91a74b70f959" +SRC_URI[sha256sum] = "620eb02dc8808a5fcb90f26cab6cba9d6bf497b15032ae3ca99df80366e33314" PYPI_PACKAGE = "Flask-PyMongo" +DEPENDS = "python-vcversioner python-vcversioner-native python3-vcversioner python3-vcversioner-native" + RDEPENDS_${PN} = "${PYTHON_PN}-pymongo ${PYTHON_PN}-flask"
meta-python/recipes-devtools/python/python-flask-pymongo_2.3.0.bb renamed from meta-python/recipes-devtools/python/python-flask-pymongo_0.5.1.bb +0 -0
meta-python/recipes-devtools/python/python3-flask-pymongo_2.3.0.bb renamed from meta-python/recipes-devtools/python/python3-flask-pymongo_0.5.1.bb +0 -0
Signature · 1 line
2.7.4
Quoted 31 lines · Yuan Chao
Add depends of python-vcversioner and python3-vcversioner.
Signed-off-by Yuan Chao <[email protected]>--- meta-python/recipes-devtools/python/python-flask-pymongo.inc | 6 ++++-- ...{python-flask-pymongo_0.5.1.bb => python-flask-pymongo_2.3.0.bb} | 0 ...ython3-flask-pymongo_0.5.1.bb => python3-flask-pymongo_2.3.0.bb} | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python-flask-pymongo_0.5.1.bb => python-flask-pymongo_2.3.0.bb} (100%) rename meta-python/recipes-devtools/python/{python3-flask-pymongo_0.5.1.bb => python3-flask-pymongo_2.3.0.bb} (100%)
meta-python/recipes-devtools/python/python-flask-pymongo.inc +0
-0@@ -5,9 +5,11 @@ SECTION = "devel/python" LICENSE = "BSD" LIC_FILES_CHKSUM ="file://flask_pymongo/wrappers.py;beginline=1;endline=24;md5=424c4e1047d28e01b4e4634a069c019d"
meta-python/recipes-devtools/python/python-flask-pymongo.inc +0
-2-SRC_URI[md5sum] = "d7a1b717f27154e1f3a355f8ec2467d6" -SRC_URI[sha256sum] ="
2baaa2ba5107d72b3a8bd4b5c0c8881316e35340ad1ae979cc13f1f3c8843b3d"meta-python/recipes-devtools/python/python-flask-pymongo.inc +2
-0+SRC_URI[md5sum] = "94df71e6800b1d7915cc91a74b70f959" +SRC_URI[sha256sum] ="
620eb02dc8808a5fcb90f26cab6cba9d6bf497b15032ae3ca99df80366e33314"
Quoted 5 lines
PYPI_PACKAGE= "Flask-PyMongo"+DEPENDS = "python-vcversioner python-vcversioner-native python3-vcversioner python3-vcversioner-native" +
This is not the right way to do this. Use ${PYTHON_PN} otherwise you are forcing build of both python 2 and python 3 packages every time. We will be moving python 2 support out of meta-python in preparation for Python 2 EOL next year.
Also, does it DEPEND (build time dependency) on both the native and target vcversioner? That doesn’t feel right.
Quoted 29 lines
RDEPENDS_${PN} = "${PYTHON_PN}-pymongo ${PYTHON_PN}-flask"
(quoted diff) +0
-0python-flask-pymongo_0.5.1.bb b/meta-python/recipes-devtools/python/ python-flask-pymongo_2.3.0.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/ python-flask-pymongo_0.5.1.bb
rename to meta-python/recipes-devtools/python/ python-flask-pymongo_2.3.0.bb(quoted diff) +0
-0python3-flask-pymongo_0.5.1.bb b/meta-python/recipes-devtools/python/ python3-flask-pymongo_2.3.0.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/ python3-flask-pymongo_0.5.1.bb
rename to meta-python/recipes-devtools/python/ python3-flask-pymongo_2.3.0.bb
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Thanks, I will use ${PYTHON_PN} in a v3.
DEPEND on vcversioner is needed by setup.py:
setup_requires=["vcversioner"],
And I have tried that if do not add native in DEPEND, it will throw an error when do_configure :
Traceback (most recent call last):
File "setup.py", line 18, in <module>
from setuptools import find_packages, setup
ImportError: No module named setuptools
WARNING: exit code 1 from a shell command.
However, setuptools is actually inherit in .bb file.
I don’t know why but, when adding native in DEPEND, it works well.
Best Regards,
Yuan
From: Tim Orling <[email protected]>
Sent: Tuesday, August 20, 2019 9:03 AM
To: Yuan, Chao/袁 超 <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-python] [PATCH v2] python-flask-pymongo: upgrade 0.5.1 -> 2.3.0
On Sun, Aug 18, 2019 at 7:13 PM Yuan Chao <[email protected]<mailto:[email protected]>> wrote:
Add depends of python-vcversioner and python3-vcversioner.
---
meta-python/recipes-devtools/python/python-flask-pymongo.inc | 6 ++++--
...{python-flask-pymongo_0.5.1.bb<http://python-flask-pymongo_0.5.1.bb> => python-flask-pymongo_2.3.0.bb<http://python-flask-pymongo_2.3.0.bb>} | 0
...ython3-flask-pymongo_0.5.1.bb<http://ython3-flask-pymongo_0.5.1.bb> => python3-flask-pymongo_2.3.0.bb<http://python3-flask-pymongo_2.3.0.bb>} | 0
3 files changed, 4 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python-flask-pymongo_0.5.1.bb<http://python-flask-pymongo_0.5.1.bb> => python-flask-pymongo_2.3.0.bb<http://python-flask-pymongo_2.3.0.bb>} (100%)
rename meta-python/recipes-devtools/python/{python3-flask-pymongo_0.5.1.bb<http://python3-flask-pymongo_0.5.1.bb> => python3-flask-pymongo_2.3.0.bb<http://python3-flask-pymongo_2.3.0.bb>} (100%)meta-python/recipes-devtools/python/python-flask-pymongo.inc +4 -2
@@ -5,9 +5,11 @@ SECTION = "devel/python" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://flask_pymongo/wrappers.py;beginline=1;endline=24;md5=424c4e1047d28e01b4e4634a069c019d" -SRC_URI[md5sum] = "d7a1b717f27154e1f3a355f8ec2467d6" -SRC_URI[sha256sum] = "2baaa2ba5107d72b3a8bd4b5c0c8881316e35340ad1ae979cc13f1f3c8843b3d" +SRC_URI[md5sum] = "94df71e6800b1d7915cc91a74b70f959" +SRC_URI[sha256sum] = "620eb02dc8808a5fcb90f26cab6cba9d6bf497b15032ae3ca99df80366e33314" PYPI_PACKAGE = "Flask-PyMongo" +DEPENDS = "python-vcversioner python-vcversioner-native python3-vcversioner python3-vcversioner-native" +
This is not the right way to do this. Use ${PYTHON_PN} otherwise you are forcing build of both python 2 and python 3 packages every time. We will be moving python 2 support out of meta-python in preparation for Python 2 EOL next year.
Also, does it DEPEND (build time dependency) on both the native and target vcversioner? That doesn’t feel right.
RDEPENDS_${PN} = "${PYTHON_PN}-pymongo ${PYTHON_PN}-flask"
meta-python/recipes-devtools/python/python-flask-pymongo_2.3.0.bb<http://python-flask-pymongo_2.3.0.bb> renamed from meta-python/recipes-devtools/python/python-flask-pymongo_0.5.1.bb<http://python-flask-pymongo_0.5.1.bb> +0 -0
meta-python/recipes-devtools/python/python3-flask-pymongo_2.3.0.bb<http://python3-flask-pymongo_2.3.0.bb> renamed from meta-python/recipes-devtools/python/python3-flask-pymongo_0.5.1.bb<http://python3-flask-pymongo_0.5.1.bb> +0 -0
--
2.7.4
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel