From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/ws4py/Manifest | 6 +++++ dev-python/ws4py/metadata.xml | 19 ++++++++++++++ dev-python/ws4py/ws4py-0.3.4.ebuild | 51 +++++++++++++++++++++++++++++++++++++ dev-python/ws4py/ws4py-9999.ebuild | 51 +++++++++++++++++++++++++++++++++++++ 4 files changed, 127 insertions(+) create mode 100644 dev-python/ws4py/Manifest create mode 100644 dev-python/ws4py/metadata.xml create mode 100644 dev-python/ws4py/ws4py-0.3.4.ebuild create mode 100644 dev-python/ws4py/ws4py-9999.ebuild (limited to 'dev-python/ws4py') diff --git a/dev-python/ws4py/Manifest b/dev-python/ws4py/Manifest new file mode 100644 index 000000000000..5dee2f7bf0be --- /dev/null +++ b/dev-python/ws4py/Manifest @@ -0,0 +1,6 @@ +DIST ws4py-0.3.4.tar.gz 65467 SHA256 5aedb5663ee1e5fb4334615cc6582f4f2e97cf967d8dc4c6c3627515d16afa90 SHA512 32cd2eb9df7367e2bf42e354766a0ca407715a863be6b51b7701ec6e0537a2ecf7c2a59423f56ae093855b075c30a4065c7f7efe3b0227915639223b9ba7a55f WHIRLPOOL 77f6c56ab1c2bbcd628f0d1773c1c9659ddc68d976ca8af55804d04e16ec6e9e06e87f5a6a3167670d8c0898dde657f3b3b1fdc4d4a94029f74d71ca2ee50e1b +EBUILD ws4py-0.3.4.ebuild 1744 SHA256 725f7543bb85710f444eb5c36b34fbfec58558fc431bfb0fc3abbc4a9d94b78e SHA512 c286aac539f135c63001503cdb1ede1cdb5c589a5871025ff1b445c257fc68859bac8022c13b4bf4b9b43940fabe6786e285f521ea646f5eb10b8f0edc8671e9 WHIRLPOOL 2645a7f88bc1a42d90d0f6e066c286232e353d135d6900f08df2b87b6a50e2f3072babfcc78459a31bcb44a02ac6a09870e794ce04d59b2304b0fd84b69efb45 +EBUILD ws4py-9999.ebuild 1747 SHA256 00993179700ee7bc2cd6f9bec010c3480a2a53862c772a7bd1db121ebb21a561 SHA512 e0ae0d6d2dd0bd18a92b37f98c1eb83fdb3c77766c645ff5a94d98cb2e7c1df349067ff5429dda9fc079b2d680750539ed8c13f78fbb956b7d459f29f87017c1 WHIRLPOOL ba60441521c026c2127ff23889b811f40a534dbaa7ee8cea7c58d50250840708df1616433bc405353c177c6ff9f856d0d3896c3b2909d8dfc04c91be97ba7da2 +MISC ChangeLog 3105 SHA256 6b24909db6f319aa9aaa660356d68ce531294cb54f6ba65976908f62b281caad SHA512 1dc1dd86759874b017a523779bfede0806efdb9eb8caf79e8d9e7433055d778fd100d547f2c8cd7fcc91dedc8b5af45688c94650c89ae0e729df580c7cbb6705 WHIRLPOOL b1decec5ccd42fd29144b7b4ffba37aa58eb1e47f021c243f8634ff7e060b5a9b6b3a831e06a7dae0eefaa6dfa301e6e8558c8b704bb6b17f53d5e7e7f747600 +MISC ChangeLog-2015 3444 SHA256 5c6b94ee257670180f7867f804a59f8a6e0e23e892b5aaf5c6f306b291658c55 SHA512 513219ce36a77f47ea291cc01f2ceec8310725fd5e186b4c2b587ae424c347e6d5cc412aa3508a92a4b3f124caa08023b9c7fd86c5777bda222dc5a53a418a70 WHIRLPOOL b662a4728af836c6f8c1c406d2abc2f511c4273b393b8a6716cda6b51c8cdddc2a5c4f78258c95a842a7b716ad7f1f1755a0bc73bc92e304bd483d33fae6026c +MISC metadata.xml 613 SHA256 6305c316d019a98ac841178a38a4c6c4cbb29854f5719c2d70e3bb2e0d2e56f3 SHA512 826d9fa4dc263f59012ab388f94253368b36af24493b3bfef2318da4233f0c3a1612221ce3005cba1abbcdf5e7400601f24eaa6ee5a248be9072c557b8d26325 WHIRLPOOL 4090023ab84736f0338da8c9cda80d9f107b8f7aa5cbb0005cf23a8e291c089f5ff4ebd2feced4563822b1040386f76fa0d778d990070137fb2de8c43c89905f diff --git a/dev-python/ws4py/metadata.xml b/dev-python/ws4py/metadata.xml new file mode 100644 index 000000000000..706d8e4b21e5 --- /dev/null +++ b/dev-python/ws4py/metadata.xml @@ -0,0 +1,19 @@ + + + + + vapier@gentoo.org + make whatever changes you want + + + python@gentoo.org + Python + + + Install client modules + Install server modules + + + Lawouach/WebSocket-for-Python + + diff --git a/dev-python/ws4py/ws4py-0.3.4.ebuild b/dev-python/ws4py/ws4py-0.3.4.ebuild new file mode 100644 index 000000000000..a7084914ad69 --- /dev/null +++ b/dev-python/ws4py/ws4py-0.3.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# We could depend on dev-python/cherrypy when USE=server, but +# that is an optional component ... +# Same for www-servers/tornado and USE=client ... so why not??? +# pypy is viable but better with a cutdown set of deps + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +PYTHON_REQ_USE="threads?" + +inherit distutils-r1 +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/Lawouach/WebSocket-for-Python.git" + inherit git-2 +else + inherit vcs-snapshot + SRC_URI="https://github.com/Lawouach/WebSocket-for-Python/tarball/v${PV} -> ${P}.tar.gz" + KEYWORDS="amd64 arm x86" +fi + +DESCRIPTION="WebSocket client and server library for Python 2 and 3 as well as PyPy" +HOMEPAGE="https://github.com/Lawouach/WebSocket-for-Python" + +LICENSE="BSD" +SLOT="0" +IUSE="+client +server test +threads" +# doc build requires sphinxcontrib ext packages absent from portage + +RDEPEND=">=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' python2_7) + >=dev-python/cython-0.19.1[${PYTHON_USEDEP}] + client? ( >=www-servers/tornado-3.1[${PYTHON_USEDEP}] ) + server? ( >=dev-python/cherrypy-3.2.4[${PYTHON_USEDEP}] )" +DEPEND="test? ( + >=dev-python/cherrypy-3.2.4[${PYTHON_USEDEP}] + dev-python/unittest2[${PYTHON_USEDEP}] + >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] + )" + +python_test() { + # testsuite displays an issue with mock under py3 but is non fatal + "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + use client || rm -rf "${D}$(python_get_sitedir)"/ws4py/client + use server || rm -rf "${D}$(python_get_sitedir)"/ws4py/server +} diff --git a/dev-python/ws4py/ws4py-9999.ebuild b/dev-python/ws4py/ws4py-9999.ebuild new file mode 100644 index 000000000000..757d4a7a3ea7 --- /dev/null +++ b/dev-python/ws4py/ws4py-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# We could depend on dev-python/cherrypy when USE=server, but +# that is an optional component ... +# Same for www-servers/tornado and USE=client ... so why not??? +# pypy is viable but better with a cutdown set of deps + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +PYTHON_REQ_USE="threads?" + +inherit distutils-r1 +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/Lawouach/WebSocket-for-Python.git" + inherit git-2 +else + inherit vcs-snapshot + SRC_URI="https://github.com/Lawouach/WebSocket-for-Python/tarball/v${PV} -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +DESCRIPTION="WebSocket client and server library for Python 2 and 3 as well as PyPy" +HOMEPAGE="https://github.com/Lawouach/WebSocket-for-Python" + +LICENSE="BSD" +SLOT="0" +IUSE="+client +server test +threads" +# doc build requires sphinxcontrib ext packages absent from portage + +RDEPEND=">=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' python2_7) + >=dev-python/cython-0.19.1[${PYTHON_USEDEP}] + client? ( >=www-servers/tornado-3.1[${PYTHON_USEDEP}] ) + server? ( >=dev-python/cherrypy-3.2.4[${PYTHON_USEDEP}] )" +DEPEND="test? ( + >=dev-python/cherrypy-3.2.4[${PYTHON_USEDEP}] + dev-python/unittest2[${PYTHON_USEDEP}] + >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] + )" + +python_test() { + # testsuite displays an issue with mock under py3 but is non fatal + "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + use client || rm -rf "${D}$(python_get_sitedir)"/ws4py/client + use server || rm -rf "${D}$(python_get_sitedir)"/ws4py/server +} -- cgit v1.2.3