Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-sanic/
Date: Fri, 28 May 2021 10:28:41
Message-Id: 1622126897.598bfa396f7dd1bf566e7c26fed16c813764bbef.andrewammerlaan@gentoo
1 commit: 598bfa396f7dd1bf566e7c26fed16c813764bbef
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Thu May 27 14:25:27 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu May 27 14:48:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=598bfa39
7
8 dev-python/pytest-sanic: add 1.7.1
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-python/pytest-sanic/Manifest | 1 +
13 dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild | 55 +++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/dev-python/pytest-sanic/Manifest b/dev-python/pytest-sanic/Manifest
17 index b35148c50..2d751be0e 100644
18 --- a/dev-python/pytest-sanic/Manifest
19 +++ b/dev-python/pytest-sanic/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-sanic-1.6.2.tar.gz 31480 BLAKE2B e579df1100bb83e95599f9d3e54892feef7186dd7a49375f618868ba3b1d73ac966224332e9751fe05b62e63cd31d2a2bed23d2e243fa75bc5445f9d85fd4a8e SHA512 d04e6dbfb11f6a348923e0683848da4cb243c3ba158906f1fc56c24d23a9f947e199c16a2d8769152e46acf5c9cc179361b87c646d95075fb499d58376dce941
22 +DIST pytest-sanic-1.7.1.tar.gz 30888 BLAKE2B 24623e47fb05db9919cfd0b41468261697ac70c7bc3e47a3c6c86efadbddd3c80f2e6173eb109206472d0b639ecd20edd0cebb244bd96ed1d2ca10dd88924b5b SHA512 a55ffd1c878478bd42aad5dc023f83e880ead4fb8538a24d327bd0fb7f811e0d3679e49206835ee7f98ac0a02dedb05f6fa729252eab7972879c196c57e3f071
23
24 diff --git a/dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild b/dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild
25 new file mode 100644
26 index 000000000..f45dbde92
27 --- /dev/null
28 +++ b/dev-python/pytest-sanic/pytest-sanic-1.7.1.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +DISTUTILS_USE_SETUPTOOLS="pyproject.toml"
36 +PYTHON_COMPAT=( python3_{7,8,9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="a Pytest Plugin for Sanic"
41 +HOMEPAGE="
42 + https://pypi.python.org/pypi/pytest-sanic
43 + https://github.com/yunstanford/pytest-sanic
44 +"
45 +SRC_URI="https://github.com/yunstanford/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +
51 +RDEPEND="
52 + >=dev-python/async_generator-1.10[${PYTHON_USEDEP}]
53 + >=dev-python/httpx-0.15.4[${PYTHON_USEDEP}]
54 + >=dev-python/pytest-5.2[${PYTHON_USEDEP}]
55 + >=dev-python/websockets-8.1[${PYTHON_USEDEP}]
56 + <dev-python/websockets-9.0[${PYTHON_USEDEP}]
57 +"
58 +DEPEND="
59 + ${RDEPEND}
60 + test? ( >=dev-python/sanic-20.12.2[${PYTHON_USEDEP}] )
61 +"
62 +
63 +
64 +distutils_enable_tests pytest
65 +# where is the conf.py file? make html can't find it either
66 +#distutils_enable_sphinx docs
67 +
68 +python_test() {
69 + distutils_install_for_testing
70 + pytest -vv \
71 + --deselect tests/test_client.py::test_fixture_sanic_client_get \
72 + --deselect tests/test_client.py::test_fixture_sanic_client_post \
73 + --deselect tests/test_client.py::test_fixture_sanic_client_put \
74 + --deselect tests/test_client.py::test_fixture_sanic_client_delete \
75 + --deselect tests/test_client.py::test_fixture_sanic_client_patch \
76 + --deselect tests/test_client.py::test_fixture_sanic_client_options \
77 + --deselect tests/test_client.py::test_fixture_sanic_client_head \
78 + --deselect tests/test_client.py::test_fixture_sanic_client_close \
79 + --deselect tests/test_client.py::test_fixture_sanic_client_passing_headers \
80 + --deselect tests/test_client.py::test_fixture_sanic_client_context_manager \
81 + --deselect tests/test_client.py::test_fixture_test_client_context_manager \
82 + || die "Tests failed with ${EPYTHON}"
83 +
84 +}