[meta-virtualization] [PATCH] python-croniter: Add python3 version

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Mon Aug 26 20:52:54 PDT 2019


Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 .../recipes-devtools/python/python-croniter.inc     | 19 +++++++++++++++++++
 .../python/python-croniter_0.3.30.bb                | 21 +--------------------
 .../python/python3-croniter_0.3.30.bb               |  2 ++
 3 files changed, 22 insertions(+), 20 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-croniter.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-croniter_0.3.30.bb

diff --git a/meta-openstack/recipes-devtools/python/python-croniter.inc b/meta-openstack/recipes-devtools/python/python-croniter.inc
new file mode 100644
index 0000000..885aa9e
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-croniter.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "croniter provides iteration for datetime object with cron like format"
+HOMEPAGE = "https://pypi.python.org/pypi/croniter/0.3.4"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=b8ee59850b882cbf623188489ea748e2"
+
+# Archived version so we have to overwrite what the pypi class will derive
+PYPI_SRC_URI = "https://pypi.python.org/packages/source/c/croniter/croniter-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "e4a8987521b144c4c2149d4adde8f55c"
+SRC_URI[sha256sum] = "538adeb3a7f7816c3cdec6db974c441620d764c25ff4ed0146ee7296b8a50590"
+
+DEPENDS += " \
+        ${PYTHON_PN}-pip \
+        "
+
+RDEPENDS_${PN} += " \
+        ${PYTHON_PN}-dateutil \
+        "
diff --git a/meta-openstack/recipes-devtools/python/python-croniter_0.3.30.bb b/meta-openstack/recipes-devtools/python/python-croniter_0.3.30.bb
index 2859441..c5cb414 100644
--- a/meta-openstack/recipes-devtools/python/python-croniter_0.3.30.bb
+++ b/meta-openstack/recipes-devtools/python/python-croniter_0.3.30.bb
@@ -1,21 +1,2 @@
-DESCRIPTION = "croniter provides iteration for datetime object with cron like format"
-HOMEPAGE = "https://pypi.python.org/pypi/croniter/0.3.4"
-SECTION = "devel/python"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=b8ee59850b882cbf623188489ea748e2"
-
-# Archived version so we have to overwrite what the pypi class will derive
-PYPI_SRC_URI = "https://pypi.python.org/packages/source/c/croniter/croniter-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "e4a8987521b144c4c2149d4adde8f55c"
-SRC_URI[sha256sum] = "538adeb3a7f7816c3cdec6db974c441620d764c25ff4ed0146ee7296b8a50590"
-
 inherit setuptools pypi
-
-DEPENDS += " \
-        python-pip \
-        "
-
-RDEPENDS_${PN} += " \
-        python-dateutil \
-        "
+require python-croniter.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-croniter_0.3.30.bb b/meta-openstack/recipes-devtools/python/python3-croniter_0.3.30.bb
new file mode 100644
index 0000000..6ec5a00
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-croniter_0.3.30.bb
@@ -0,0 +1,2 @@
+inherit setuptools3 pypi
+require python-croniter.inc
-- 
2.7.4





More information about the meta-virtualization mailing list