[meta-virtualization] [PATCH 1/2] python-docker: Add recipe for python2

Mark Asselstine mark.asselstine at windriver.com
Wed Nov 21 06:09:47 PST 2018


On Wed, Nov 21, 2018 at 7:55 AM David Bensoussan <minipada at gmail.com> wrote:
>
> This has been copied from the python3 recipe

This should be done by putting the common code into a .inc file and
then having py2 and py3 specific recipes. Look at
python-websocket-client in meta-virtualization or any of the tens of
examples in meta-openembedded/meta-python. This saves duplicate code
and allows any issues to generally only be fixed in one spot and
avoiding cases where general changes are accidentally only merged to
either the py2 version or py3 version and not the other.

Thanks,
Mark


> ---
>  recipes-devtools/python/python-docker_2.5.1.bb | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>  create mode 100644 recipes-devtools/python/python-docker_2.5.1.bb
>
> diff --git a/recipes-devtools/python/python-docker_2.5.1.bb b/recipes-devtools/python/python-docker_2.5.1.bb
> new file mode 100644
> index 0000000..c0f3c89
> --- /dev/null
> +++ b/recipes-devtools/python/python-docker_2.5.1.bb
> @@ -0,0 +1,18 @@
> +SUMMARY = "A Python library for the Docker Engine API."
> +HOMEPAGE = "https://github.com/docker/docker-py"
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=34f3846f940453127309b920eeb89660"
> +
> +inherit pypi setuptools
> +
> +SRC_URI[md5sum] = "7d917152976df075e6e90ee853df641f"
> +SRC_URI[sha256sum] = "b876e6909d8d2360e0540364c3a952a62847137f4674f2439320ede16d6db880"
> +
> +DEPENDS += "${PYTHON_PN}-pip-native"
> +
> +RDEPENDS_${PN} += " \
> +       python-backports-ssl \
> +       python-docker-pycreds \
> +       python-requests \
> +       python-websocket-client \
> +"
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization


More information about the meta-virtualization mailing list