1 |
commit: 69dd05e63464ed5b753374543cf0e7d4b268e409 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Mar 29 09:05:15 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Mar 29 09:29:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=69dd05e6 |
7 |
|
8 |
dev-python/pytest-sanic: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-python/pytest-sanic/Manifest | 1 + |
14 |
dev-python/pytest-sanic/metadata.xml | 22 +++++++++++++++ |
15 |
dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild | 34 +++++++++++++++++++++++ |
16 |
3 files changed, 57 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pytest-sanic/Manifest b/dev-python/pytest-sanic/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..8993220 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pytest-sanic/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pytest-sanic-1.6.0.tar.gz 30185 BLAKE2B 737779cfbf850d511194c843f8fa83cb6a69ac5fb46195b2f9f5537f581bd41626de5a4cca35acf942f3dbb0560020d762026255387c3a7bcd7f7afaec5de5ad SHA512 efd284fba92c202036f1c28e91e671954b948243bd847f092e72bcda5ac4d734dbe7007f9beb0d60aa353843731891680e3c3bc7d2bf211fc34f42f6e1a92373 |
25 |
|
26 |
diff --git a/dev-python/pytest-sanic/metadata.xml b/dev-python/pytest-sanic/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..cef4490 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest-sanic/metadata.xml |
31 |
@@ -0,0 +1,22 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>lssndrbarbieri@×××××.com</email> |
37 |
+ <name>Alessandro Barbieri</name> |
38 |
+ </maintainer> |
39 |
+ <longdescription lang="en"> |
40 |
+A pytest plugin for Sanic. It helps you to test your code asynchronously. |
41 |
+ |
42 |
+This plugin provides: |
43 |
+ |
44 |
+ very easy testing with async coroutines |
45 |
+ common and useful fixtures |
46 |
+ asynchronous fixture support |
47 |
+ test_client/sanic_client for Sanic application |
48 |
+ test_server for Sanic application |
49 |
+ </longdescription> |
50 |
+ <upstream> |
51 |
+ <remote-id type="github">yunstanford/pytest-sanic</remote-id> |
52 |
+ </upstream> |
53 |
+</pkgmetadata> |
54 |
|
55 |
diff --git a/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild |
56 |
new file mode 100644 |
57 |
index 0000000..2f4dd3a |
58 |
--- /dev/null |
59 |
+++ b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild |
60 |
@@ -0,0 +1,34 @@ |
61 |
+# Copyright 1999-2020 Gentoo Authors |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI="7" |
65 |
+ |
66 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
67 |
+PYTHON_COMPAT=( python3_6 ) |
68 |
+ |
69 |
+inherit distutils-r1 |
70 |
+ |
71 |
+DESCRIPTION="a Pytest Plugin for Sanic" |
72 |
+HOMEPAGE=" |
73 |
+ https://pypi.python.org/pypi/pytest-sanic |
74 |
+ https://github.com/yunstanford/pytest-sanic |
75 |
+" |
76 |
+SRC_URI="https://github.com/yunstanford/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="MIT" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64 ~x86" |
81 |
+ |
82 |
+RDEPEND=" |
83 |
+ dev-python/aiohttp[${PYTHON_USEDEP}] |
84 |
+ dev-python/async_generator[${PYTHON_USEDEP}] |
85 |
+" |
86 |
+BDEPEND=" |
87 |
+ ${RDEPEND} |
88 |
+ test? ( |
89 |
+ dev-python/sanic[${PYTHON_USEDEP}] |
90 |
+ ) |
91 |
+" |
92 |
+ |
93 |
+distutils_enable_tests pytest |
94 |
+distutils_enable_sphinx docs |