From 8c9c30a894d23c50da2b588216ccee794518ce2f Mon Sep 17 00:00:00 2001 From: zangrc Date: Thu, 5 Dec 2019 09:43:34 +0800 Subject: python-saharaclient: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../python/python-saharaclient.inc | 28 ++++++++++++++++++++ .../python/python-saharaclient_git.bb | 30 +--------------------- .../python/python3-saharaclient_git.bb | 2 ++ 3 files changed, 31 insertions(+), 29 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-saharaclient.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-saharaclient_git.bb (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-saharaclient.inc b/meta-openstack/recipes-devtools/python/python-saharaclient.inc new file mode 100644 index 0000000..91549ae --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-saharaclient.inc @@ -0,0 +1,28 @@ +DESCRIPTION = "CLI and python client library for OpenStack Sahara" +HOMEPAGE = "https://launchpad.net/sahara" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +DEPENDS += " \ + ${PYTHON_PN}-pip \ + ${PYTHON_PN}-pbr \ + " + +# Satisfy setup.py 'setup_requires' +DEPENDS += " \ + ${PYTHON_PN}-pbr-native \ +" + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-pbr \ + " + +SRCNAME = "saharaclient" + +SRC_URI = "git://github.com/openstack/python-saharaclient.git;branch=master" + +PV = "2.3.0+git${SRCPV}" +SRCREV = "3107b452467537f4eef3d9ecfb5e35d110d19662" +S = "${WORKDIR}/git" + diff --git a/meta-openstack/recipes-devtools/python/python-saharaclient_git.bb b/meta-openstack/recipes-devtools/python/python-saharaclient_git.bb index 0d571c9..4b9587f 100644 --- a/meta-openstack/recipes-devtools/python/python-saharaclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-saharaclient_git.bb @@ -1,30 +1,2 @@ -DESCRIPTION = "CLI and python client library for OpenStack Sahara" -HOMEPAGE = "https://launchpad.net/sahara" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -DEPENDS += " \ - python-pip \ - python-pbr \ - " - -# Satisfy setup.py 'setup_requires' -DEPENDS += " \ - python-pbr-native \ -" - -RDEPENDS_${PN} += " \ - python-pbr \ - " - -SRCNAME = "saharaclient" - -SRC_URI = "git://github.com/openstack/python-saharaclient.git;branch=master" - -PV = "2.3.0+git${SRCPV}" -SRCREV = "3107b452467537f4eef3d9ecfb5e35d110d19662" -S = "${WORKDIR}/git" - +require python-saharaclient.inc inherit setuptools - diff --git a/meta-openstack/recipes-devtools/python/python3-saharaclient_git.bb b/meta-openstack/recipes-devtools/python/python3-saharaclient_git.bb new file mode 100644 index 0000000..806cd76 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-saharaclient_git.bb @@ -0,0 +1,2 @@ +require python-saharaclient.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf