Providing a python3 version of python-oslo.i18n. Signed-off-by: Zheng Ruoqin <[email protected]> --- .../python/python-oslo.i18n.inc | 32 +++++++++++++++++ .../python/python-oslo.i18n_git.bb | 34 +------------------ .../python/python3-oslo.i18n_git.bb | 2 ++ 3 files changed, 35 insertions(+), 33 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-oslo.i18n.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-oslo.i18n_git.bb
diff --git a/meta-openstack/recipes-devtools/python/python-oslo.i18n.inc b/meta-openstack/recipes-devtools/python/python-oslo.i18n.inc new file mode 100644 index 0000000..3c0e74c --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-oslo.i18n.inc @@ -0,0 +1,32 @@ +DESCRIPTION = "oslo.i18n library" +HOMEPAGE = "http://launchpad.net/oslo" +SECTION = "devel/python" +LICENSE = "Apache-2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" + +PV = "3.17.0+git${SRCPV}" +SRCREV = "f2729cd36f8694a6ec53a0e700599ddf4427440d" + +SRCNAME = "oslo.i18n" +SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/pike" + +S = "${WORKDIR}/git" + +# DEPENDS_default: python-pip + +DEPENDS += " \ + ${PYTHON_PN}-pip \ + ${PYTHON_PN}-pbr \ + " + +# Satisfy setup.py 'setup_requires' +DEPENDS += " \ + ${PYTHON_PN}-pbr-native \ + " + +# RDEPENDS_default: +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-babel \ + ${PYTHON_PN}-pbr \ + ${PYTHON_PN}-six \ + " diff --git a/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb index 9f7ddc5..b990e67 100644 --- a/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb +++ b/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb @@ -1,34 +1,2 @@ -DESCRIPTION = "oslo.i18n library" -HOMEPAGE = "http://launchpad.net/oslo" -SECTION = "devel/python" -LICENSE = "Apache-2" -LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" - -PV = "3.17.0+git${SRCPV}" -SRCREV = "f2729cd36f8694a6ec53a0e700599ddf4427440d" - -SRCNAME = "oslo.i18n" -SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/pike" - -S = "${WORKDIR}/git" - inherit setuptools - -# DEPENDS_default: python-pip - -DEPENDS += " \ - python-pip \ - python-pbr \ - " - -# Satisfy setup.py 'setup_requires' -DEPENDS += " \ - python-pbr-native \ - " - -# RDEPENDS_default: -RDEPENDS_${PN} += " \ - python-babel \ - python-pbr \ - python-six \ - " +require python-oslo.i18n.inc diff --git a/meta-openstack/recipes-devtools/python/python3-oslo.i18n_git.bb b/meta-openstack/recipes-devtools/python/python3-oslo.i18n_git.bb new file mode 100644 index 0000000..5a06622 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-oslo.i18n_git.bb @@ -0,0 +1,2 @@ +inherit setuptools3 +require python-oslo.i18n.inc -- 2.17.1 -- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
