[oe] [meta-python][PATCH] python-scales: add recipe for version 1.0.9

Fabio Berton fabio.berton at ossystems.com.br
Thu Sep 29 13:54:31 UTC 2016


On Thu, Sep 29, 2016 at 10:30 AM, Ruben De Smet <ruben.de.smet at rubdos.be>
wrote:

> A python module for tracking server state and statisticst
>
> Signed-off-by: Ruben De Smet <ruben.de.smet at rubdos.be>
> ---
>  meta-python/recipes-devtools/python/python-scales.inc       | 13
> +++++++++++++
>  meta-python/recipes-devtools/python/python3-scales_1.0.9.bb | 11
> +++++++++++
>  2 files changed, 24 insertions(+)
>  create mode 100644 meta-python/recipes-devtools/python/python-scales.inc
>  create mode 100644 meta-python/recipes-devtools/python/
> python3-scales_1.0.9.bb
>
> diff --git a/meta-python/recipes-devtools/python/python-scales.inc
> b/meta-python/recipes-devtools/python/python-scales.inc
> new file mode 100644
> index 0000000..5a46e2b
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python-scales.inc
> @@ -0,0 +1,13 @@
> +SUMMARY = "Metrics for Python"
> +DESCRIPTION = "Tracks server state and statistics, allowing you to see
> what \
> +your server is doing. It can also send metrics to Graphite for graphing
> or to \
> +a file for crash forensics."
> +SECTION = "devel/python"
> +LICENSE = "Apache-2.0"
> +# LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd
> 57"
> +SRCNAME = "scales"
> +
> +SRC_URI[md5sum] = "c61167f2b5f506f0a34a7b8a295a9567"
> +SRC_URI[sha256sum] = "8b6930f7d4bf115192290b44c757af
> 5e254e3fcfcb75ff9a51f5c96a404e2753"
> +
> +inherit pypi
> diff --git a/meta-python/recipes-devtools/python/python3-scales_1.0.9.bb
> b/meta-python/recipes-devtools/python/python3-scales_1.0.9.bb
> new file mode 100644
> index 0000000..ecf6c67
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-scales_1.0.9.bb
> @@ -0,0 +1,11 @@
> +inherit setuptools3
> +require python-scales.inc
> +
> +RDEPENDS_${PN} += "\
> +    python3-six \
>

​You can move this to inc file and use

RDEPENDS_${PN} += " \
    ${PYTHON_PN}-six \

so, will work with both python 2 and 3.

+"
> +
> +DEPENDS_${PN} += "\
> +    python3-setuptools \
> +"
>


​Is this not provided by setuptools3
​ class?​

+
> --
> 2.10.0
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list