Providing a python3 version of python-requestsexceptions. Signed-off-by: Zheng Ruoqin <[email protected]> --- .../python/python-requestsexceptions.inc | 23 +++++++++++++++++ .../python/python-requestsexceptions_1.4.0.bb | 25 ++----------------- .../python3-requestsexceptions_1.4.0.bb | 2 ++ 3 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-requestsexceptions.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-requestsexceptions_1.4.0.bb
diff --git a/meta-openstack/recipes-devtools/python/python-requestsexceptions.inc b/meta-openstack/recipes-devtools/python/python-requestsexceptions.inc new file mode 100644 index 0000000..bac99a3 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-requestsexceptions.inc @@ -0,0 +1,23 @@ +DESCRIPTION = "Import exceptions from potentially bundled packages in requests." +HOMEPAGE = "https://www.openstack.org/" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87" + +SRC_URI[md5sum] = "f43b246ccd7d5b618e6f0dc946a6c3f3" +SRC_URI[sha256sum] = "b095cbc77618f066d459a02b137b020c37da9f46d9b057704019c9f77dba3065" + +inherit pypi + +# conflicting file prevention +do_install_append() { + rm -f ${D}${libdir}/python*/site-packages/tests/* +} + +DEPENDS += " \ + ${PYTHON_PN}-pbr-native \ + " + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-pbr \ + " diff --git a/meta-openstack/recipes-devtools/python/python-requestsexceptions_1.4.0.bb b/meta-openstack/recipes-devtools/python/python-requestsexceptions_1.4.0.bb index 729e3d7..87b6ca9 100644 --- a/meta-openstack/recipes-devtools/python/python-requestsexceptions_1.4.0.bb +++ b/meta-openstack/recipes-devtools/python/python-requestsexceptions_1.4.0.bb @@ -1,23 +1,2 @@ -DESCRIPTION = "Import exceptions from potentially bundled packages in requests." -HOMEPAGE = "https://www.openstack.org/" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87" - -SRC_URI[md5sum] = "f43b246ccd7d5b618e6f0dc946a6c3f3" -SRC_URI[sha256sum] = "b095cbc77618f066d459a02b137b020c37da9f46d9b057704019c9f77dba3065" - -inherit setuptools pypi - -# conflicting file prevention -do_install_append() { - rm -f ${D}${libdir}/python*/site-packages/tests/* -} - -DEPENDS += " \ - python-pbr-native \ - " - -RDEPENDS_${PN} += " \ - python-pbr \ - " +inherit setuptools +require python-requestsexceptions.inc diff --git a/meta-openstack/recipes-devtools/python/python3-requestsexceptions_1.4.0.bb b/meta-openstack/recipes-devtools/python/python3-requestsexceptions_1.4.0.bb new file mode 100644 index 0000000..1c049f3 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-requestsexceptions_1.4.0.bb @@ -0,0 +1,2 @@ +inherit setuptools3 +require python-requestsexceptions.inc -- 2.17.1 -- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
