1 |
commit: d191f47a4dd7b3083f7624cb3b75651be75cfc75 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu May 27 14:28:33 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=d191f47a |
7 |
|
8 |
dev-python/sanic-testing: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/sanic-testing/Manifest | 1 + |
13 |
dev-python/sanic-testing/metadata.xml | 14 +++++++++ |
14 |
.../sanic-testing/sanic-testing-0.4.0.ebuild | 34 ++++++++++++++++++++++ |
15 |
3 files changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/sanic-testing/Manifest b/dev-python/sanic-testing/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..ac83ad13e |
20 |
--- /dev/null |
21 |
+++ b/dev-python/sanic-testing/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST sanic-testing-0.4.0.tar.gz 7859 BLAKE2B 6f2473ed5f0ed4465816a78ebec45ec1624ce660508dde988fb1642d70ab2fd2992052efaae561fc9c845654f8862e43da2685884df19937836f6a82b3aeaac4 SHA512 25ac5421428d930dcb02fe88c046f75d568650cc262ae94bbea55303c58c1668a940176dcfcb8b2c9cf44f174c1dc47549d12c516db843cb86fc925302595057 |
24 |
|
25 |
diff --git a/dev-python/sanic-testing/metadata.xml b/dev-python/sanic-testing/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..d346b3131 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/sanic-testing/metadata.xml |
30 |
@@ -0,0 +1,14 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>lssndrbarbieri@×××××.com</email> |
36 |
+ <name>Alessandro Barbieri</name> |
37 |
+ </maintainer> |
38 |
+ <longdescription lang="en"> |
39 |
+This package is meant to be the core testing utility and clients for testing Sanic applications. It is mainly derived from sanic.testing which has (or will be) removed from the main Sanic repository in the future. |
40 |
+ </longdescription> |
41 |
+ <upstream> |
42 |
+ <remote-id type="github">sanic-org/sanic</remote-id> |
43 |
+ </upstream> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-python/sanic-testing/sanic-testing-0.4.0.ebuild b/dev-python/sanic-testing/sanic-testing-0.4.0.ebuild |
47 |
new file mode 100644 |
48 |
index 000000000..68bf1194d |
49 |
--- /dev/null |
50 |
+++ b/dev-python/sanic-testing/sanic-testing-0.4.0.ebuild |
51 |
@@ -0,0 +1,34 @@ |
52 |
+# Copyright 1999-2020 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI="7" |
56 |
+ |
57 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
58 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
59 |
+ |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+DESCRIPTION="Test clients for Sanic" |
63 |
+HOMEPAGE=" |
64 |
+ https://pypi.python.org/pypi/sanic-testing |
65 |
+ https://github.com/sanic-org/sanic-testing |
66 |
+" |
67 |
+SRC_URI="https://github.com/sanic-org/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
68 |
+ |
69 |
+LICENSE="MIT" |
70 |
+SLOT="0" |
71 |
+KEYWORDS="~amd64" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ >=dev-python/httpx-0.18[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/websockets-8.1[${PYTHON_USEDEP}] |
76 |
+" |
77 |
+DEPEND=" |
78 |
+ ${RDEPEND} |
79 |
+ test? ( |
80 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/sanic-21.3[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+" |
84 |
+ |
85 |
+distutils_enable_tests pytest |