Signed-off-by: Zang Ruochen <[email protected]>
---
 .../recipes-devtools/python/python-ecdsa.inc  | 20 +++++++++++++++++
 .../python/python-ecdsa_0.13.bb               | 22 ++-----------------
 .../python/python3-ecdsa_0.13.bb              |  2 ++
 3 files changed, 24 insertions(+), 20 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-ecdsa.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-ecdsa_0.13.bb

diff --git a/meta-openstack/recipes-devtools/python/python-ecdsa.inc 
b/meta-openstack/recipes-devtools/python/python-ecdsa.inc
new file mode 100644
index 0000000..b7c8356
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-ecdsa.inc
@@ -0,0 +1,20 @@
+DESCRIPTION = "ECDSA cryptographic signature library"
+HOMEPAGE = "https://github.com/warner/python-ecdsa";
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+SRC_URI[md5sum] = "1f60eda9cb5c46722856db41a3ae6670"
+SRC_URI[sha256sum] = 
"64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa"
+
+inherit pypi
+
+DEPENDS += " \
+        ${PYTHON_PN}-pip \
+        ${PYTHON_PN}-pbr \
+        "
+
+# RDEPENDS_default:
+RDEPENDS_${PN} += " \
+        ${PYTHON_PN}-pbr \
+        "
diff --git a/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb 
b/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb
index 8fe492c..f5785b3 100644
--- a/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb
+++ b/meta-openstack/recipes-devtools/python/python-ecdsa_0.13.bb
@@ -1,20 +1,2 @@
-DESCRIPTION = "ECDSA cryptographic signature library"
-HOMEPAGE = "https://github.com/warner/python-ecdsa";
-SECTION = "devel/python"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-SRC_URI[md5sum] = "1f60eda9cb5c46722856db41a3ae6670"
-SRC_URI[sha256sum] = 
"64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa"
-
-inherit setuptools pypi
-
-DEPENDS += " \
-        python-pip \
-        python-pbr \
-        "
-
-# RDEPENDS_default:
-RDEPENDS_${PN} += " \
-        python-pbr \
-        "
+require python-ecdsa.inc
+inherit setuptools
diff --git a/meta-openstack/recipes-devtools/python/python3-ecdsa_0.13.bb 
b/meta-openstack/recipes-devtools/python/python3-ecdsa_0.13.bb
new file mode 100644
index 0000000..13366f4
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-ecdsa_0.13.bb
@@ -0,0 +1,2 @@
+require python-ecdsa.inc
+inherit setuptools3
-- 
2.20.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#4781): 
https://lists.yoctoproject.org/g/meta-virtualization/message/4781
Mute This Topic: https://lists.yoctoproject.org/mt/64316566/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to