From 322105212b91c73b295fd7fda7196cb57e93e85b Mon Sep 17 00:00:00 2001 From: zangrc Date: Wed, 4 Dec 2019 11:58:52 +0800 Subject: python-mccabe: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-mccabe.inc | 14 ++++++++++++++ .../recipes-devtools/python/python-mccabe_0.2.1.bb | 16 ++-------------- .../recipes-devtools/python/python3-mccabe_0.2.1.bb | 2 ++ 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-mccabe.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-mccabe_0.2.1.bb (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-mccabe.inc b/meta-openstack/recipes-devtools/python/python-mccabe.inc new file mode 100644 index 0000000..5f5e91d --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-mccabe.inc @@ -0,0 +1,14 @@ +DESCRIPTION = "McCabe checker, plugin for flake8" +HOMEPAGE = "https://github.com/dreamhost/cliff" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://README.rst;md5=aa0383f6aee4f5c20084a97cd13164c4" + +SRC_URI[md5sum] = "5a3f3fa6a4bad126c88aaaa7dab682f5" +SRC_URI[sha256sum] = "5a2a170e47de5593a6abfae1e9542bd2c3924ac62bbe4e6ed96c953c0352243a" + +inherit pypi + +RDEPENDS_${PN} += "${PYTHON_PN}-prettytable \ + ${PYTHON_PN}-cmd2 \ + ${PYTHON_PN}-pyparsing" diff --git a/meta-openstack/recipes-devtools/python/python-mccabe_0.2.1.bb b/meta-openstack/recipes-devtools/python/python-mccabe_0.2.1.bb index fac44d9..68c2238 100644 --- a/meta-openstack/recipes-devtools/python/python-mccabe_0.2.1.bb +++ b/meta-openstack/recipes-devtools/python/python-mccabe_0.2.1.bb @@ -1,14 +1,2 @@ -DESCRIPTION = "McCabe checker, plugin for flake8" -HOMEPAGE = "https://github.com/dreamhost/cliff" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://README.rst;md5=aa0383f6aee4f5c20084a97cd13164c4" - -SRC_URI[md5sum] = "5a3f3fa6a4bad126c88aaaa7dab682f5" -SRC_URI[sha256sum] = "5a2a170e47de5593a6abfae1e9542bd2c3924ac62bbe4e6ed96c953c0352243a" - -inherit setuptools pypi - -RDEPENDS_${PN} += "python-prettytable \ - python-cmd2 \ - python-pyparsing" \ No newline at end of file +require python-mccabe.inc +inherit setuptools diff --git a/meta-openstack/recipes-devtools/python/python3-mccabe_0.2.1.bb b/meta-openstack/recipes-devtools/python/python3-mccabe_0.2.1.bb new file mode 100644 index 0000000..8af8ec5 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-mccabe_0.2.1.bb @@ -0,0 +1,2 @@ +require python-mccabe.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf