From b49169124a2b61294b6843183f4212ef17fb932e Mon Sep 17 00:00:00 2001 From: zangrc Date: Tue, 14 Jan 2020 10:54:47 +0800 Subject: python-wsgiref: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-wsgiref.inc | 23 ++++++++++++++++++++ .../python/python-wsgiref_0.1.2.bb | 25 ++-------------------- .../python/python3-wsgiref_0.1.2.bb | 2 ++ 3 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-wsgiref.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-wsgiref_0.1.2.bb diff --git a/meta-openstack/recipes-devtools/python/python-wsgiref.inc b/meta-openstack/recipes-devtools/python/python-wsgiref.inc new file mode 100644 index 0000000..1449bea --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-wsgiref.inc @@ -0,0 +1,23 @@ +DESCRIPTION = "WSGI (PEP 333) Reference Library" +HOMEPAGE = "http://cheeseshop.python.org/pypi/wsgiref" +SECTION = "devel/python" +LICENSE = "PSF" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=fe761dfec1d54629c6b9a3bbc7b1baf5" + +# Archived version so we need to overwrite what the pypi class will derive +PYPI_SRC_URI = "https://pypi.python.org/packages/source/w/wsgiref/wsgiref-${PV}.zip" + +SRC_URI[md5sum] = "29b146e6ebd0f9fb119fe321f7bcf6cb" +SRC_URI[sha256sum] = "c7e610c800957046c04c8014aab8cce8f0b9f0495c8cd349e57c1f7cabf40e79" + +inherit pypi + +# DEPENDS_default: python-pip + +DEPENDS += " \ + ${PYTHON_PN}-pip \ + " + +# RDEPENDS_default: +RDEPENDS_${PN} += " \ + " diff --git a/meta-openstack/recipes-devtools/python/python-wsgiref_0.1.2.bb b/meta-openstack/recipes-devtools/python/python-wsgiref_0.1.2.bb index dc02a44..3ec8264 100644 --- a/meta-openstack/recipes-devtools/python/python-wsgiref_0.1.2.bb +++ b/meta-openstack/recipes-devtools/python/python-wsgiref_0.1.2.bb @@ -1,23 +1,2 @@ -DESCRIPTION = "WSGI (PEP 333) Reference Library" -HOMEPAGE = "http://cheeseshop.python.org/pypi/wsgiref" -SECTION = "devel/python" -LICENSE = "PSF" -LIC_FILES_CHKSUM = "file://PKG-INFO;md5=fe761dfec1d54629c6b9a3bbc7b1baf5" - -# Archived version so we need to overwrite what the pypi class will derive -PYPI_SRC_URI = "https://pypi.python.org/packages/source/w/wsgiref/wsgiref-${PV}.zip" - -SRC_URI[md5sum] = "29b146e6ebd0f9fb119fe321f7bcf6cb" -SRC_URI[sha256sum] = "c7e610c800957046c04c8014aab8cce8f0b9f0495c8cd349e57c1f7cabf40e79" - -inherit setuptools pypi - -# DEPENDS_default: python-pip - -DEPENDS += " \ - python-pip \ - " - -# RDEPENDS_default: -RDEPENDS_${PN} += " \ - " +require python-wsgiref.inc +inherit setuptools diff --git a/meta-openstack/recipes-devtools/python/python3-wsgiref_0.1.2.bb b/meta-openstack/recipes-devtools/python/python3-wsgiref_0.1.2.bb new file mode 100644 index 0000000..0fa887a --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-wsgiref_0.1.2.bb @@ -0,0 +1,2 @@ +require python-wsgiref.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf