[meta-virtualization] [PATCH] python-debtcollector: Add python3 version

Bruce Ashfield bruce.ashfield at gmail.com
Thu Aug 29 21:19:50 PDT 2019


merged

Bruce

On Mon, Aug 26, 2019 at 3:40 AM Zheng Ruoqin
<zhengrq.fnst at cn.fujitsu.com> wrote:
>
> Providing a python3 version of python-debtcollector.
>
> Signed-off-by: Zheng Ruoqin <zhengrq.fnst at cn.fujitsu.com>
> ---
>  .../python/python-debtcollector.inc           | 25 +++++++++++++++++++
>  .../python/python-debtcollector_1.21.0.bb     | 25 +++----------------
>  .../python/python3-debtcollector_1.21.0.bb    |  2 ++
>  3 files changed, 30 insertions(+), 22 deletions(-)
>  create mode 100644 meta-openstack/recipes-devtools/python/python-debtcollector.inc
>  create mode 100644 meta-openstack/recipes-devtools/python/python3-debtcollector_1.21.0.bb
>
> diff --git a/meta-openstack/recipes-devtools/python/python-debtcollector.inc b/meta-openstack/recipes-devtools/python/python-debtcollector.inc
> new file mode 100644
> index 0000000..629a059
> --- /dev/null
> +++ b/meta-openstack/recipes-devtools/python/python-debtcollector.inc
> @@ -0,0 +1,25 @@
> +DESCRIPTION = "A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner."
> +HOMEPAGE = "http://docs.openstack.org/developer/debtcollector/"
> +SECTION = "devel/python"
> +LICENSE = "Apache-2"
> +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
> +
> +SRC_URI[md5sum] = "ec899623b37fdee65b888243f0a46735"
> +SRC_URI[sha256sum] = "f6ce5a383ad73c23e1138dbb69bf45d33f4a4bdec38f02dbf2b89477ec5e55bc"
> +
> +inherit pypi
> +
> +DEPENDS += " \
> +        ${PYTHON_PN}-pip \
> +        ${PYTHON_PN}-pbr \
> +        "
> +
> +# Satisfy setup.py 'setup_requires'
> +DEPENDS += " \
> +        ${PYTHON_PN}-pbr-native \
> +        "
> +
> +# RDEPENDS_default:
> +RDEPENDS_${PN} += " \
> +        ${PYTHON_PN}-pbr \
> +        "
> diff --git a/meta-openstack/recipes-devtools/python/python-debtcollector_1.21.0.bb b/meta-openstack/recipes-devtools/python/python-debtcollector_1.21.0.bb
> index 18b910b..1cdfc3a 100644
> --- a/meta-openstack/recipes-devtools/python/python-debtcollector_1.21.0.bb
> +++ b/meta-openstack/recipes-devtools/python/python-debtcollector_1.21.0.bb
> @@ -1,26 +1,7 @@
> -DESCRIPTION = "A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner."
> -HOMEPAGE = "http://docs.openstack.org/developer/debtcollector/"
> -SECTION = "devel/python"
> -LICENSE = "Apache-2"
> -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
> +inherit setuptools
> +require python-debtcollector.inc
>
> -SRC_URI[md5sum] = "ec899623b37fdee65b888243f0a46735"
> -SRC_URI[sha256sum] = "f6ce5a383ad73c23e1138dbb69bf45d33f4a4bdec38f02dbf2b89477ec5e55bc"
> -
> -inherit setuptools pypi
> -
> -DEPENDS += " \
> -        python-pip \
> -        python-pbr \
> -        "
> -
> -# Satisfy setup.py 'setup_requires'
> -DEPENDS += " \
> -        python-pbr-native \
> -        "
> -
> -# RDEPENDS_default:
> +# Only for Python2 depends on funcsigs
>  RDEPENDS_${PN} += " \
> -        python-pbr \
>          python-funcsigs \
>          "
> diff --git a/meta-openstack/recipes-devtools/python/python3-debtcollector_1.21.0.bb b/meta-openstack/recipes-devtools/python/python3-debtcollector_1.21.0.bb
> new file mode 100644
> index 0000000..7947185
> --- /dev/null
> +++ b/meta-openstack/recipes-devtools/python/python3-debtcollector_1.21.0.bb
> @@ -0,0 +1,2 @@
> +inherit setuptools3
> +require python-debtcollector.inc
> --
> 2.17.1
>
>
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


More information about the meta-virtualization mailing list