mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-13 17:13:00 -04:00
dev-python/pytest-sanic: add 1.7.1
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
55
dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild
Normal file
55
dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild
Normal file
@@ -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}"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user