From 69dd05e63464ed5b753374543cf0e7d4b268e409 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:05:15 +0200 Subject: [PATCH] dev-python/pytest-sanic: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-sanic/Manifest | 1 + dev-python/pytest-sanic/metadata.xml | 22 ++++++++++++ .../pytest-sanic/pytest-sanic-1.6.0.ebuild | 34 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 dev-python/pytest-sanic/Manifest create mode 100644 dev-python/pytest-sanic/metadata.xml create mode 100644 dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild diff --git a/dev-python/pytest-sanic/Manifest b/dev-python/pytest-sanic/Manifest new file mode 100644 index 0000000000..8993220818 --- /dev/null +++ b/dev-python/pytest-sanic/Manifest @@ -0,0 +1 @@ +DIST pytest-sanic-1.6.0.tar.gz 30185 BLAKE2B 737779cfbf850d511194c843f8fa83cb6a69ac5fb46195b2f9f5537f581bd41626de5a4cca35acf942f3dbb0560020d762026255387c3a7bcd7f7afaec5de5ad SHA512 efd284fba92c202036f1c28e91e671954b948243bd847f092e72bcda5ac4d734dbe7007f9beb0d60aa353843731891680e3c3bc7d2bf211fc34f42f6e1a92373 diff --git a/dev-python/pytest-sanic/metadata.xml b/dev-python/pytest-sanic/metadata.xml new file mode 100644 index 0000000000..cef449007d --- /dev/null +++ b/dev-python/pytest-sanic/metadata.xml @@ -0,0 +1,22 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +A pytest plugin for Sanic. It helps you to test your code asynchronously. + +This plugin provides: + + very easy testing with async coroutines + common and useful fixtures + asynchronous fixture support + test_client/sanic_client for Sanic application + test_server for Sanic application + + + yunstanford/pytest-sanic + + diff --git a/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild new file mode 100644 index 0000000000..2f4dd3a247 --- /dev/null +++ b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_6 ) + +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 ~x86" + +RDEPEND=" + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/async_generator[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/sanic[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs