From d29fdda5bdcabd4a08d003444b5c759e62b10ddc Mon Sep 17 00:00:00 2001 From: zangrc Date: Mon, 6 Jan 2020 14:30:01 +0800 Subject: python-coverage: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-coverage.inc | 18 ++++++++++++++++++ .../recipes-devtools/python/python-coverage_4.0a5.bb | 20 ++------------------ .../python/python3-coverage_4.0a5.bb | 2 ++ 3 files changed, 22 insertions(+), 18 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-coverage.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-coverage_4.0a5.bb (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-coverage.inc b/meta-openstack/recipes-devtools/python/python-coverage.inc new file mode 100644 index 0000000..f1c5022 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-coverage.inc @@ -0,0 +1,18 @@ +# +# Copyright (C) 2014 Wind River Systems, Inc. +# +DESCRIPTION = "Code coverage measurement for Python" +HOMEPAGE = "https://pypi.python.org/pypi/coverage" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb" + +SRC_URI[md5sum] = "37f4d8ae679b2c43a87da8d519817a3b" +SRC_URI[sha256sum] = "07a36ac3c82f5961c45565fd5575b4c568a8fc59e8d5d29a5b04dc8597a07e0e" + +inherit pypi + +DEPENDS += " \ + ${PYTHON_PN}-pip \ + " + diff --git a/meta-openstack/recipes-devtools/python/python-coverage_4.0a5.bb b/meta-openstack/recipes-devtools/python/python-coverage_4.0a5.bb index 9e63221..0ddc356 100644 --- a/meta-openstack/recipes-devtools/python/python-coverage_4.0a5.bb +++ b/meta-openstack/recipes-devtools/python/python-coverage_4.0a5.bb @@ -1,18 +1,2 @@ -# -# Copyright (C) 2014 Wind River Systems, Inc. -# -DESCRIPTION = "Code coverage measurement for Python" -HOMEPAGE = "https://pypi.python.org/pypi/coverage" -SECTION = "devel/python" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb" - -SRC_URI[md5sum] = "37f4d8ae679b2c43a87da8d519817a3b" -SRC_URI[sha256sum] = "07a36ac3c82f5961c45565fd5575b4c568a8fc59e8d5d29a5b04dc8597a07e0e" - -inherit setuptools pypi - -DEPENDS += " \ - python-pip \ - " - +require python-coverage.inc +inherit setuptools diff --git a/meta-openstack/recipes-devtools/python/python3-coverage_4.0a5.bb b/meta-openstack/recipes-devtools/python/python3-coverage_4.0a5.bb new file mode 100644 index 0000000..917a06c --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-coverage_4.0a5.bb @@ -0,0 +1,2 @@ +require python-coverage.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf