On Tue, Jun 11, 2019 at 9:38 PM Zang Ruochen <[email protected]> wrote: > > -Upgrade from python-httplib2_0.12.3.bb to python-httplib2_0.13.0.bb. > > -Add recipe python3-httplib2_0.13.0.bb. > > -License-Update: Update the information of package. > > Signed-off-by: Zang Ruochen <[email protected]> > --- > ...lib2_0.12.3.bb => python-httplib2_0.13.0.bb} | 6 +++--- > .../python/python3-httplib2_0.13.0.bb | 17 +++++++++++++++++ > 2 files changed, 20 insertions(+), 3 deletions(-) > rename meta-openstack/recipes-devtools/python/{python-httplib2_0.12.3.bb => > python-httplib2_0.13.0.bb} (59%) > create mode 100644 > meta-openstack/recipes-devtools/python/python3-httplib2_0.13.0.bb >
There is a lot of shared data between these two bb files. In meta-openembedded and oe-core... they have established a standard way of supporting both py2 and py3 versions of recipes by making use of an .inc file. Would it not makes sense to follow the same convention here? Mark > diff --git a/meta-openstack/recipes-devtools/python/python-httplib2_0.12.3.bb > b/meta-openstack/recipes-devtools/python/python-httplib2_0.13.0.bb > similarity index 59% > rename from meta-openstack/recipes-devtools/python/python-httplib2_0.12.3.bb > rename to meta-openstack/recipes-devtools/python/python-httplib2_0.13.0.bb > index a1a518f..1e73ca9 100644 > --- a/meta-openstack/recipes-devtools/python/python-httplib2_0.12.3.bb > +++ b/meta-openstack/recipes-devtools/python/python-httplib2_0.13.0.bb > @@ -2,10 +2,10 @@ DESCRIPTION = "A comprehensive HTTP client library" > HOMEPAGE = "https://code.google.com/p/httplib2/" > SECTION = "devel/python" > LICENSE = "MIT" > -LIC_FILES_CHKSUM = "file://PKG-INFO;md5=ad87b270277b5f40e2a281d9f7dde584" > +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=341f12f35eee133c8ce15c04a042fb72" > > -SRC_URI[md5sum] = "f78ce222216865271f2672e6941174d5" > -SRC_URI[sha256sum] = > "a18121c7c72a56689efbf1aef990139ad940fee1e64c6f2458831736cd593600" > +SRC_URI[md5sum] = "c0c3b1c1a1c51fa40f46271d95f74fdc" > +SRC_URI[sha256sum] = > "d1146939d270f1f1eb8cbf8f5aa72ff37d897faccca448582bb1e180aeb4c6b2" > > inherit setuptools pypi > > diff --git > a/meta-openstack/recipes-devtools/python/python3-httplib2_0.13.0.bb > b/meta-openstack/recipes-devtools/python/python3-httplib2_0.13.0.bb > new file mode 100644 > index 0000000..1a5ac79 > --- /dev/null > +++ b/meta-openstack/recipes-devtools/python/python3-httplib2_0.13.0.bb > @@ -0,0 +1,17 @@ > +DESCRIPTION = "A comprehensive HTTP client library" > +HOMEPAGE = "https://code.google.com/p/httplib2/" > +SECTION = "devel/python" > +LICENSE = "MIT" > +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=341f12f35eee133c8ce15c04a042fb72" > + > +SRC_URI[md5sum] = "c0c3b1c1a1c51fa40f46271d95f74fdc" > +SRC_URI[sha256sum] = > "d1146939d270f1f1eb8cbf8f5aa72ff37d897faccca448582bb1e180aeb4c6b2" > + > +inherit setuptools3 pypi > + > +do_install_append() { > + perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name > "top_level.txt"` > + for f in $perm_files; do > + chmod 644 "${f}" > + done > +} > -- > 2.20.1 > > > > -- > _______________________________________________ > meta-virtualization mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/meta-virtualization -- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
