[meta-virtualization] [PATCH] python-repoze.lru: Add python3 version

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Sun Sep 1 20:56:51 PDT 2019


Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 .../recipes-devtools/python/python-repoze.lru.inc        | 14 ++++++++++++++
 .../recipes-devtools/python/python-repoze.lru_0.7.bb     | 16 ++--------------
 .../recipes-devtools/python/python3-repoze.lru_0.7.bb    |  2 ++
 3 files changed, 18 insertions(+), 14 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-repoze.lru.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-repoze.lru_0.7.bb

diff --git a/meta-openstack/recipes-devtools/python/python-repoze.lru.inc b/meta-openstack/recipes-devtools/python/python-repoze.lru.inc
new file mode 100644
index 0000000..d79e864
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-repoze.lru.inc
@@ -0,0 +1,14 @@
+SUMMARY = "A tiny LRU cache implementation and decorator"
+DESCRIPTION = "repoze.lru is a LRU (least recently used) cache implementation. \
+Keys and values that are not used frequently will be evicted from the cache faster \
+than keys and values that are used frequently. \
+"
+HOMEPAGE = "https://pypi.python.org/pypi/repoze.lru"
+SECTION = "devel/python"
+LICENSE = "BSD-Modification-copyright"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2c33cdbc6bc9ae6e5d64152fdb754292"
+
+SRC_URI[md5sum] = "c08cc030387e0b1fc53c5c7d964b35e2"
+SRC_URI[sha256sum] = "0429a75e19380e4ed50c0694e26ac8819b4ea7851ee1fc7583c8572db80aff77"
+
+inherit pypi
diff --git a/meta-openstack/recipes-devtools/python/python-repoze.lru_0.7.bb b/meta-openstack/recipes-devtools/python/python-repoze.lru_0.7.bb
index 264a1cb..2343a4c 100644
--- a/meta-openstack/recipes-devtools/python/python-repoze.lru_0.7.bb
+++ b/meta-openstack/recipes-devtools/python/python-repoze.lru_0.7.bb
@@ -1,14 +1,2 @@
-SUMMARY = "A tiny LRU cache implementation and decorator"
-DESCRIPTION = "repoze.lru is a LRU (least recently used) cache implementation. \
-Keys and values that are not used frequently will be evicted from the cache faster \
-than keys and values that are used frequently. \
-"
-HOMEPAGE = "https://pypi.python.org/pypi/repoze.lru"
-SECTION = "devel/python"
-LICENSE = "BSD-Modification-copyright"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2c33cdbc6bc9ae6e5d64152fdb754292"
-
-SRC_URI[md5sum] = "c08cc030387e0b1fc53c5c7d964b35e2"
-SRC_URI[sha256sum] = "0429a75e19380e4ed50c0694e26ac8819b4ea7851ee1fc7583c8572db80aff77"
-
-inherit setuptools pypi
+inherit setuptools
+require python-repoze.lru.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-repoze.lru_0.7.bb b/meta-openstack/recipes-devtools/python/python3-repoze.lru_0.7.bb
new file mode 100644
index 0000000..88e358d
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-repoze.lru_0.7.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-repoze.lru.inc
-- 
2.7.4





More information about the meta-virtualization mailing list