From c0230947230e4f73823d14504a7a72df2e59f3da Mon Sep 17 00:00:00 2001 From: zangrc Date: Wed, 4 Dec 2019 15:52:04 +0800 Subject: python-python-editor: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../python/python-python-editor.inc | 20 ++++++++++++++++++++ .../python/python-python-editor_git.bb | 22 +--------------------- .../python/python3-python-editor_git.bb | 2 ++ 3 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-python-editor.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-python-editor_git.bb diff --git a/meta-openstack/recipes-devtools/python/python-python-editor.inc b/meta-openstack/recipes-devtools/python/python-python-editor.inc new file mode 100644 index 0000000..07692a3 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-python-editor.inc @@ -0,0 +1,20 @@ +DESCRIPTION = "Programmatically open an editor, capture the result" +HOMEPAGE = "https://github.com/fmoo/python-editor" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314" + +PV = "0.4+git${SRCPV}" +SRCREV = "d6fa2a6bb3106a1ba00fe40f9af62e4ddc539e1e" + +SRCNAME = "python-editor" +SRC_URI = "git://github.com/fmoo/${SRCNAME}.git" + +S = "${WORKDIR}/git" + +DEPENDS += " \ + ${PYTHON_PN}-pip \ + " + +RDEPENDS_${PN} += " \ + " diff --git a/meta-openstack/recipes-devtools/python/python-python-editor_git.bb b/meta-openstack/recipes-devtools/python/python-python-editor_git.bb index db668d7..322aca4 100644 --- a/meta-openstack/recipes-devtools/python/python-python-editor_git.bb +++ b/meta-openstack/recipes-devtools/python/python-python-editor_git.bb @@ -1,22 +1,2 @@ -DESCRIPTION = "Programmatically open an editor, capture the result" -HOMEPAGE = "https://github.com/fmoo/python-editor" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314" - -PV = "0.4+git${SRCPV}" -SRCREV = "d6fa2a6bb3106a1ba00fe40f9af62e4ddc539e1e" - -SRCNAME = "python-editor" -SRC_URI = "git://github.com/fmoo/${SRCNAME}.git" - -S = "${WORKDIR}/git" - +require python-python-editor.inc inherit setuptools - -DEPENDS += " \ - python-pip \ - " - -RDEPENDS_${PN} += " \ - " diff --git a/meta-openstack/recipes-devtools/python/python3-python-editor_git.bb b/meta-openstack/recipes-devtools/python/python3-python-editor_git.bb new file mode 100644 index 0000000..7529398 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-python-editor_git.bb @@ -0,0 +1,2 @@ +require python-python-editor.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf