From 35c3909e41b7a59686774399ba2acf39b3019d66 Mon Sep 17 00:00:00 2001 From: zangrc Date: Fri, 29 Nov 2019 13:31:45 +0800 Subject: python-i18n: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-i18n.inc | 23 ++++++++++++++++++++ .../recipes-devtools/python/python-i18n_0.3.1.bb | 25 ++-------------------- .../recipes-devtools/python/python3-i18n_0.3.1.bb | 2 ++ 3 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-i18n.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-i18n_0.3.1.bb (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-i18n.inc b/meta-openstack/recipes-devtools/python/python-i18n.inc new file mode 100644 index 0000000..74200e7 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-i18n.inc @@ -0,0 +1,23 @@ +DESCRIPTION = "Translation library for Python" +HOMEPAGE = "https://github.com/tuvistavie/python-i18n" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://README.md;md5=7624ac071dec291ca8ef74e62e536a7a" + +PYPI_PACKAGE = "python-i18n" + +SRC_URI[md5sum] = "08b8c247add9f90806c4742a685fdb88" +SRC_URI[sha256sum] = "e1d832ff7d1d39ce593793cc709b2344aa8fdf321cf707081335f146160d9f20" + +inherit pypi + +# DEPENDS_default: python-pip + +DEPENDS += " \ + ${PYTHON_PN}-pip \ + " + +# RDEPENDS_default: +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-pyyaml \ + " diff --git a/meta-openstack/recipes-devtools/python/python-i18n_0.3.1.bb b/meta-openstack/recipes-devtools/python/python-i18n_0.3.1.bb index f14e7a8..3e0acdd 100644 --- a/meta-openstack/recipes-devtools/python/python-i18n_0.3.1.bb +++ b/meta-openstack/recipes-devtools/python/python-i18n_0.3.1.bb @@ -1,23 +1,2 @@ -DESCRIPTION = "Translation library for Python" -HOMEPAGE = "https://github.com/tuvistavie/python-i18n" -SECTION = "devel/python" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://README.md;md5=7624ac071dec291ca8ef74e62e536a7a" - -PYPI_PACKAGE = "python-i18n" - -SRC_URI[md5sum] = "08b8c247add9f90806c4742a685fdb88" -SRC_URI[sha256sum] = "e1d832ff7d1d39ce593793cc709b2344aa8fdf321cf707081335f146160d9f20" - -inherit setuptools pypi - -# DEPENDS_default: python-pip - -DEPENDS += " \ - python-pip \ - " - -# RDEPENDS_default: -RDEPENDS_${PN} += " \ - python-pyyaml \ - " +require python-i18n.inc +inherit setuptools diff --git a/meta-openstack/recipes-devtools/python/python3-i18n_0.3.1.bb b/meta-openstack/recipes-devtools/python/python3-i18n_0.3.1.bb new file mode 100644 index 0000000..8e98d13 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-i18n_0.3.1.bb @@ -0,0 +1,2 @@ +require python-i18n.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf