[oe] [meta-python][PATCH] add recipes for autobahn and txaio

Derek Straka derek at asterius.io
Wed Aug 2 19:50:56 UTC 2017


On Mon, Jul 31, 2017 at 1:52 PM, Kevron Rees <kevron.m.rees at intel.com>
wrote:

> Signed-off-by: Kevron Rees <kevron.m.rees at intel.com>
> ---
>  .../python-autobahn/python3-autobahn_17.7.1.bb     | 16 ++++++++
>  .../recipes-devtools/python/python3-txaio_2.8.1.bb | 43
> ++++++++++++++++++++++
>  2 files changed, 59 insertions(+)
>  create mode 100644 meta-python/recipes-connectivity/python-autobahn/p
> ython3-autobahn_17.7.1.bb
>  create mode 100644 meta-python/recipes-devtools/python/
> python3-txaio_2.8.1.bb
>
> diff --git a/meta-python/recipes-connectivity/python-autobahn/p
> ython3-autobahn_17.7.1.bb b/meta-python/recipes-
> connectivity/python-autobahn/python3-autobahn_17.7.1.bb
> new file mode 100644
> index 0000000..644fa6c
> --- /dev/null
> +++ b/meta-python/recipes-connectivity/python-autobahn/p
> ython3-autobahn_17.7.1.bb
> @@ -0,0 +1,16 @@
> +DESCRIPTION = "AutobahnPython provides a WebSocket (RFC6455, Hybi-10 to
> -17, Hixie-76) framework for creating WebSocket-based clients and servers. \
> +AutobahnPython also includes an implementation of WAMP (The WebSockets
> Application Messaging Protocol), a light-weight,  \
> +asynchronous RPC/PubSub over JSON/WebSocket protocol."
> +HOMEPAGE = "http://autobahn.ws/python"
> +
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = " file://autobahn/__init__.py;
> beginline=1;endline=17;md5=3efa50c72bcff15042722ebd09c54701"
> +
> +SRC_URI[md5sum] = "0458295eff8a05b09982e87125a1a2e8"
> +SRC_URI[sha256sum] = "801a318d5bf6776a60f7a93d715f83
> f7f12204b470019a339e4e7e14087c17e6"
> +
> +PYPI_PACKAGE_EXT = "tar.gz"
> +inherit pypi setuptools3
> +
> +RDEPENDS_${PN} = "python3 python3-txaio"

+
> diff --git a/meta-python/recipes-devtools/python/python3-txaio_2.8.1.bb
> b/meta-python/recipes-devtools/python/python3-txaio_2.8.1.bb
> new file mode 100644
> index 0000000..f6b72c5
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-txaio_2.8.1.bb
> @@ -0,0 +1,43 @@
> +# Recipe created by recipetool
> +# This is the basis of a recipe and may need further editing in order to
> be fully functional.
> +# (Feel free to remove these comments when editing.)
>
This should also be removed

> +
> +SUMMARY = "Compatibility API between asyncio/Twisted/Trollius"
> +HOMEPAGE = "https://github.com/crossbario/txaio"

+# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best
> guesses - it is
> +# your responsibility to verify that the values are complete and correct.
> +# NOTE: License in setup.py/PKGINFO is: MIT License
>
These should be removed

> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=97c0bda20ad1d845c6369c0e47a1cd98"
> +
> +SRC_URI = "https://pypi.python.org/packages/1a/e5/
> 7f9106acf4d12b6f5c30d1e654d8f0f3d7aec6fe13a4fe83895f331e10cf
> /txaio-${PV}.tar.gz"
> +SRC_URI[md5sum] = "2e36cbc6b34b5cacb1bf8a05c1ae114e"
> +SRC_URI[sha256sum] = "fe2e0e4d3a06705f86bbd351fdd1f3
> 9dae61755e44162375e024acbf32eafddb"
> +
> +S = "${WORKDIR}/txaio-${PV}"
> +
> +inherit setuptools3
> +
> +# The following configs & dependencies are from setuptools extras_require.
> +# These dependencies are optional, hence can be controlled via
> PACKAGECONFIG.
> +# The upstream names may not correspond exactly to bitbake package names.
> +#
> +# Uncomment this line to enable all the optional features.
> +#PACKAGECONFIG ?= "dev twisted all"

+PACKAGECONFIG[dev] = ",,,python3-mock python3-pep8 python3-pyenchant
> python3-pytest python3-pytest-cov python3-sphinx python3-sphinx_rtd_theme
> python3-sphinxcontrib-spelling python3-tox python3-twine"
>
 I'm a little confused as to what this is trying to do since most of these
packages do not have recipes.  The default right now will not include
Twisted and zope.interface, which are required dependencies

> +PACKAGECONFIG[twisted] = ",,,python3-twisted python3-zope-interface"
> +PACKAGECONFIG[all] = ",,,python3-twisted python-zope-interface"
> +
> +# WARNING: the following rdepends are from setuptools install_requires.
> These
> +# upstream names may not correspond exactly to bitbake package names.
>
Remove cruft

> +RDEPENDS_${PN} += "python3-six"
> +
> +# WARNING: the following rdepends are determined through basic analysis
> of the
> +# python sources, and might not be 100% accurate.

+#RDEPENDS_${PN} += "python3-contextlib python3-core python3-datetime
> python3-lang python3-logging"
>
Do you want to remove this line?

> +
> +
> +do_install_append() {
> +       echo "removing licence file because why is it installed here?"
> +       rm -rf ${D}/usr/share
> +}
> --
> 2.7.4
>
> --
> _______________________________________________
> 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