From 204ffae30734169efb5da4520d9540e84e9a819f Mon Sep 17 00:00:00 2001 From: zangrc Date: Mon, 6 Jan 2020 11:15:00 +0800 Subject: python-arrow: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-arrow.inc | 15 +++++++++++++++ .../recipes-devtools/python/python-arrow_0.15.2.bb | 17 ++--------------- .../recipes-devtools/python/python3-arrow_0.15.2.bb | 2 ++ 3 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-arrow.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-arrow_0.15.2.bb diff --git a/meta-openstack/recipes-devtools/python/python-arrow.inc b/meta-openstack/recipes-devtools/python/python-arrow.inc new file mode 100644 index 0000000..9556a6d --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-arrow.inc @@ -0,0 +1,15 @@ +DESCRIPTION = "Better dates and times for Python" +HOMEPAGE = "https://github.com/crsmithdev/arrow" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=458d41a4064e4dc109666cfd941a29e4" + +SRC_URI[md5sum] = "554f18b0e23182ee0e8cb2a882d2f607" +SRC_URI[sha256sum] = "10257c5daba1a88db34afa284823382f4963feca7733b9107956bed041aff24f" + +inherit pypi + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-dateutil \ + ${PYTHON_PN}-backports-functools-lru-cache \ + " diff --git a/meta-openstack/recipes-devtools/python/python-arrow_0.15.2.bb b/meta-openstack/recipes-devtools/python/python-arrow_0.15.2.bb index d2d0616..e5deaad 100644 --- a/meta-openstack/recipes-devtools/python/python-arrow_0.15.2.bb +++ b/meta-openstack/recipes-devtools/python/python-arrow_0.15.2.bb @@ -1,15 +1,2 @@ -DESCRIPTION = "Better dates and times for Python" -HOMEPAGE = "https://github.com/crsmithdev/arrow" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=458d41a4064e4dc109666cfd941a29e4" - -SRC_URI[md5sum] = "554f18b0e23182ee0e8cb2a882d2f607" -SRC_URI[sha256sum] = "10257c5daba1a88db34afa284823382f4963feca7733b9107956bed041aff24f" - -inherit setuptools pypi - -RDEPENDS_${PN} += " \ - python-dateutil \ - python-backports-functools-lru-cache \ - " +require python-arrow.inc +inherit setuptools diff --git a/meta-openstack/recipes-devtools/python/python3-arrow_0.15.2.bb b/meta-openstack/recipes-devtools/python/python3-arrow_0.15.2.bb new file mode 100644 index 0000000..99196ea --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-arrow_0.15.2.bb @@ -0,0 +1,2 @@ +require python-arrow.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf