Providing a python3 version of python-keystoneauth1.

Signed-off-by: Zheng Ruoqin <[email protected]>
---
 .../python/python-keystoneauth1.inc           | 27 +++++++++++++++++
 .../python/python-keystoneauth1_3.17.0.bb     | 29 ++-----------------
 .../python/python3-keystoneauth1_3.17.0.bb    |  2 ++
 3 files changed, 31 insertions(+), 27 deletions(-)
 create mode 100644 
meta-openstack/recipes-devtools/python/python-keystoneauth1.inc
 create mode 100644 
meta-openstack/recipes-devtools/python/python3-keystoneauth1_3.17.0.bb

diff --git a/meta-openstack/recipes-devtools/python/python-keystoneauth1.inc 
b/meta-openstack/recipes-devtools/python/python-keystoneauth1.inc
new file mode 100644
index 0000000..3d6309d
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-keystoneauth1.inc
@@ -0,0 +1,27 @@
+DESCRIPTION = "Authentication Library for OpenStack Identity"
+HOMEPAGE = "https://pypi.python.org/pypi/keystoneauth1";
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=96f840d59b245a1c817fbcb901afc574"
+
+SRC_URI[md5sum] = "599340c2b3ccbcf9996870478abb5407"
+SRC_URI[sha256sum] = 
"59a4488ceae0c1210cba468945013b875b2ce09d99c54c9fcc9c926aea55dfd7"
+
+inherit pypi
+
+DEPENDS += " \
+        ${PYTHON_PN}-pbr \
+        "
+
+# Satisfy setup.py 'setup_requires'
+DEPENDS += " \
+        ${PYTHON_PN}-pbr-native \
+        "
+
+RDEPENDS_${PN} += " \
+        ${PYTHON_PN}-pbr \
+        ${PYTHON_PN}-iso8601 \
+        ${PYTHON_PN}-requests \
+        ${PYTHON_PN}-six \
+        ${PYTHON_PN}-stevedore \
+        "
diff --git 
a/meta-openstack/recipes-devtools/python/python-keystoneauth1_3.17.0.bb 
b/meta-openstack/recipes-devtools/python/python-keystoneauth1_3.17.0.bb
index 18115b2..f244f7d 100644
--- a/meta-openstack/recipes-devtools/python/python-keystoneauth1_3.17.0.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystoneauth1_3.17.0.bb
@@ -1,27 +1,2 @@
-DESCRIPTION = "Authentication Library for OpenStack Identity"
-HOMEPAGE = "https://pypi.python.org/pypi/keystoneauth1";
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=96f840d59b245a1c817fbcb901afc574"
-
-SRC_URI[md5sum] = "599340c2b3ccbcf9996870478abb5407"
-SRC_URI[sha256sum] = 
"59a4488ceae0c1210cba468945013b875b2ce09d99c54c9fcc9c926aea55dfd7"
-
-inherit setuptools pypi
-
-DEPENDS += " \
-        python-pbr \
-        "
-
-# Satisfy setup.py 'setup_requires'
-DEPENDS += " \
-        python-pbr-native \
-        "
-
-RDEPENDS_${PN} += " \
-        python-pbr \
-        python-iso8601 \
-        python-requests \
-        python-six \
-        python-stevedore \
-        "
+inherit setuptools
+require python-keystoneauth1.inc
diff --git 
a/meta-openstack/recipes-devtools/python/python3-keystoneauth1_3.17.0.bb 
b/meta-openstack/recipes-devtools/python/python3-keystoneauth1_3.17.0.bb
new file mode 100644
index 0000000..75adf3d
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-keystoneauth1_3.17.0.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-keystoneauth1.inc
-- 
2.17.1



-- 
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Reply via email to