commit:     598bfa396f7dd1bf566e7c26fed16c813764bbef
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu May 27 14:25:27 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu May 27 14:48:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=598bfa39

dev-python/pytest-sanic: add 1.7.1

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-python/pytest-sanic/Manifest                  |  1 +
 dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild | 55 +++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/dev-python/pytest-sanic/Manifest b/dev-python/pytest-sanic/Manifest
index b35148c50..2d751be0e 100644
--- a/dev-python/pytest-sanic/Manifest
+++ b/dev-python/pytest-sanic/Manifest
@@ -1 +1,2 @@
 DIST pytest-sanic-1.6.2.tar.gz 31480 BLAKE2B 
e579df1100bb83e95599f9d3e54892feef7186dd7a49375f618868ba3b1d73ac966224332e9751fe05b62e63cd31d2a2bed23d2e243fa75bc5445f9d85fd4a8e
 SHA512 
d04e6dbfb11f6a348923e0683848da4cb243c3ba158906f1fc56c24d23a9f947e199c16a2d8769152e46acf5c9cc179361b87c646d95075fb499d58376dce941
+DIST pytest-sanic-1.7.1.tar.gz 30888 BLAKE2B 
24623e47fb05db9919cfd0b41468261697ac70c7bc3e47a3c6c86efadbddd3c80f2e6173eb109206472d0b639ecd20edd0cebb244bd96ed1d2ca10dd88924b5b
 SHA512 
a55ffd1c878478bd42aad5dc023f83e880ead4fb8538a24d327bd0fb7f811e0d3679e49206835ee7f98ac0a02dedb05f6fa729252eab7972879c196c57e3f071

diff --git a/dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild 
b/dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild
new file mode 100644
index 000000000..f45dbde92
--- /dev/null
+++ b/dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+DISTUTILS_USE_SETUPTOOLS="pyproject.toml"
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit distutils-r1
+
+DESCRIPTION="a Pytest Plugin for Sanic"
+HOMEPAGE="
+       https://pypi.python.org/pypi/pytest-sanic
+       https://github.com/yunstanford/pytest-sanic
+"
+SRC_URI="https://github.com/yunstanford/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/async_generator-1.10[${PYTHON_USEDEP}]
+       >=dev-python/httpx-0.15.4[${PYTHON_USEDEP}]
+       >=dev-python/pytest-5.2[${PYTHON_USEDEP}]
+       >=dev-python/websockets-8.1[${PYTHON_USEDEP}]
+       <dev-python/websockets-9.0[${PYTHON_USEDEP}]
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( >=dev-python/sanic-20.12.2[${PYTHON_USEDEP}] )
+"
+
+
+distutils_enable_tests pytest
+# where is the conf.py file? make html can't find it either
+#distutils_enable_sphinx docs
+
+python_test() {
+       distutils_install_for_testing
+       pytest -vv \
+               --deselect tests/test_client.py::test_fixture_sanic_client_get \
+               --deselect tests/test_client.py::test_fixture_sanic_client_post 
\
+               --deselect tests/test_client.py::test_fixture_sanic_client_put \
+               --deselect 
tests/test_client.py::test_fixture_sanic_client_delete \
+               --deselect 
tests/test_client.py::test_fixture_sanic_client_patch \
+               --deselect 
tests/test_client.py::test_fixture_sanic_client_options \
+               --deselect tests/test_client.py::test_fixture_sanic_client_head 
\
+               --deselect 
tests/test_client.py::test_fixture_sanic_client_close \
+               --deselect 
tests/test_client.py::test_fixture_sanic_client_passing_headers \
+               --deselect 
tests/test_client.py::test_fixture_sanic_client_context_manager \
+               --deselect 
tests/test_client.py::test_fixture_test_client_context_manager \
+               || die "Tests failed with ${EPYTHON}"
+
+}

Reply via email to