commit:     1310642568203bcdf9b4dc6c1bfd49bb62b399ed
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Nov 27 15:42:28 2020 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Nov 27 15:42:58 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=13106425

dev-python/uvicorn: new version, disable 3 failing tests

Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-python/uvicorn/Manifest              |  1 +
 dev-python/uvicorn/uvicorn-0.12.3.ebuild | 72 ++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest
index d266cfaa..7eca0da2 100644
--- a/dev-python/uvicorn/Manifest
+++ b/dev-python/uvicorn/Manifest
@@ -1 +1,2 @@
 DIST uvicorn-0.12.2.tar.gz 503530 BLAKE2B 
ab2b4e0a256127430f19f75431ca15652ad28d7d525e1ae00dc6c4d61a4c5affec6800e5ad4823954996d3d390c339f63502d9002fd9e5a8377055e0ee86e9ca
 SHA512 
cc94f9482f4417c6cc79283c0ae1b9d658df9131f3d70d52ae4f1c03fdd7aef28ed902a722827529cb97e302f90bfe208d966546f6484bc01762e8f691121c49
+DIST uvicorn-0.12.3.tar.gz 505606 BLAKE2B 
852ca5f624842680fc514fb1db4b62605aa31aca801efdb25e460ff4b5c49e22a58b732778f35e6f606d14cd8cab962c5426f01617d573934daa62167553acf3
 SHA512 
72f823ad0f16738b23e796f02916627908c6619b41c931a33aeef60d7929479f863f97da2f60b0a4265ce57b7397af4f4019f0ae784319cc44c178dfecc2f07c

diff --git a/dev-python/uvicorn/uvicorn-0.12.3.ebuild 
b/dev-python/uvicorn/uvicorn-0.12.3.ebuild
new file mode 100644
index 00000000..655749ac
--- /dev/null
+++ b/dev-python/uvicorn/uvicorn-0.12.3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8} )
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+DOCBUILDER="mkdocs"
+DOCDEPEND="dev-python/mkdocs-material"
+
+inherit distutils-r1 docs optfeature
+
+DESCRIPTION="The lightning-fast ASGI server"
+HOMEPAGE="https://www.uvicorn.org/
+       https://github.com/encode/uvicorn";
+SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+RDEPEND="
+       >=dev-python/click-7[${PYTHON_USEDEP}]
+       <dev-python/click-8[${PYTHON_USEDEP}]
+       >=dev-python/h11-0.8[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' 
python3_7)
+"
+
+BDEPEND="test? (
+       >=dev-python/colorama-0.4[${PYTHON_USEDEP}]
+       dev-python/pytest-mock[${PYTHON_USEDEP}]
+       >=dev-python/python-dotenv-0.13[${PYTHON_USEDEP}]
+       >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
+       dev-python/trustme[${PYTHON_USEDEP}]
+       >=dev-python/uvloop-0.14.0[${PYTHON_USEDEP}]
+       >=dev-python/websockets-8.0[${PYTHON_USEDEP}]
+       >=dev-python/httptools-0.1[${PYTHON_USEDEP}]
+       <dev-python/httptools-0.2[${PYTHON_USEDEP}]
+       >=dev-python/watchgod-0.6[${PYTHON_USEDEP}]
+       <dev-python/watchgod-0.7[${PYTHON_USEDEP}]
+       dev-python/wsproto[${PYTHON_USEDEP}]
+)"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       # do not install LICENSE to /usr/
+       sed -i -e '/data_files/d' setup.py || die
+
+       # Remove pytest-cov dep
+       sed -i -e '21,22d' setup.cfg || die
+
+       distutils-r1_python_prepare_all
+}
+
+pkg_postinst() {
+       optfeature "asyncio event loop on top of libuv" dev-python/uvloop
+       optfeature "websockets support using wsproto" dev-python/wsproto
+       optfeature "websockets support using websockets" dev-python/websockets
+       optfeature "httpstools package for http protocol" dev-python/httptools
+       optfeature "efficient debug reload" dev-python/watchgod
+}
+
+python_test() {
+       pytest -vv \
+                       --deselect 
tests/protocols/test_http.py::test_supported_upgrade_request[H11Protocol] \
+                       --deselect 
tests/protocols/test_http.py::test_supported_upgrade_request[HttpToolsProtocol] 
\
+                       --deselect 
tests/protocols/test_websocket.py::test_invalid_upgrade[WSProtocol] \
+       || die
+}

Reply via email to