1 |
commit: e7fdba67be95f65add5c19e1d87b7bf5e28d5ddd |
2 |
Author: Antonín Říha <antonin.riha <AT> protonmail <DOT> com> |
3 |
AuthorDate: Tue May 10 22:31:14 2022 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Tue May 10 22:31:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7fdba67 |
7 |
|
8 |
dev-python/grpclib: new ebuild |
9 |
|
10 |
Signed-off-by: Antonín Říha <antonin.riha <AT> protonmail.com> |
11 |
|
12 |
dev-python/grpclib/Manifest | 2 ++ |
13 |
dev-python/grpclib/grpclib-0.4.2.ebuild | 49 +++++++++++++++++++++++++++++ |
14 |
dev-python/grpclib/grpclib-0.4.3_rc2.ebuild | 41 ++++++++++++++++++++++++ |
15 |
3 files changed, 92 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/grpclib/Manifest b/dev-python/grpclib/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..95fb988ee |
20 |
--- /dev/null |
21 |
+++ b/dev-python/grpclib/Manifest |
22 |
@@ -0,0 +1,2 @@ |
23 |
+DIST grpclib-0.4.2.tar.gz 116997 BLAKE2B 8a3ad3022a4963f0539c212b66af615f4c1a73cec49801118af25ad141741aed692e16389687f690f885d9f85dc53a5e1b8208a5d8af111c2e50fdefef0684ce SHA512 a25ee2286431d294dd4b07b3ac34387608ca3dbabdf6d54a09b1a33fe66c75ba88f3f5e90160a55dc614871c93bc6ccfb884d149bbd624e13d792b44271b534f |
24 |
+DIST grpclib-0.4.3_rc2.tar.gz 116904 BLAKE2B c4a0bf70c4f8d218829e10811fb532bcd1bea7eeec10aa2ee06e286af68e653b73d6db1b0e859821d1587fc5fa81e7a8ab2473b24e746b53b1a5134589a6e68c SHA512 185118ce1f1fca4db3dfc8fa781ef7a09f366aa4f0bfb1f37222f307c4d30c9527c5ffd74d4afce1e27cff69c76c6f8e9fb054920a41da000f723e9a79219f07 |
25 |
|
26 |
diff --git a/dev-python/grpclib/grpclib-0.4.2.ebuild b/dev-python/grpclib/grpclib-0.4.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..8f3375f49 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/grpclib/grpclib-0.4.2.ebuild |
31 |
@@ -0,0 +1,49 @@ |
32 |
+EAPI=8 |
33 |
+ |
34 |
+DISTUTILS_USE_PEP517=setuptools |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Pure-Python gRPC implementation for asyncio" |
40 |
+HOMEPAGE="https://github.com/vmagamedov/grpclib" |
41 |
+if [[ ${PV} == 9999 ]]; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://github.com/vmagamedov/grpclib" |
44 |
+else |
45 |
+ MY_PV="${PV/_rc/rc}" |
46 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
47 |
+ SRC_URI="https://github.com/vmagamedov/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ KEYWORDS="~amd64 ~x86" |
49 |
+fi |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=dev-python/h2-4.1.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/hpack-4.0.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/hyperframe-6.0.1[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/multidict-6.0.2[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/grpcio-tools-1.43.0[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ test? ( |
63 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
64 |
+ dev-python/async_timeout[${PYTHON_USEDEP}] |
65 |
+ dev-python/googleapis-common-protos[${PYTHON_USEDEP}] |
66 |
+ dev-python/Faker[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+distutils_enable_tests pytest |
71 |
+distutils_enable_sphinx docs \ |
72 |
+ 'dev-python/sphinx_rtd_theme' |
73 |
+ |
74 |
+python_test() { |
75 |
+ [[ ${EPYTHON} == python3.10 ]] && local EPYTEST_DESELECT=( |
76 |
+ # does not work in python3.10 due to the bug in ssl https://bugs.python.org/issue46067 |
77 |
+ 'tests/test_client_channel.py::test_default_ssl_context' |
78 |
+ ) |
79 |
+ epytest |
80 |
+} |
81 |
|
82 |
diff --git a/dev-python/grpclib/grpclib-0.4.3_rc2.ebuild b/dev-python/grpclib/grpclib-0.4.3_rc2.ebuild |
83 |
new file mode 100644 |
84 |
index 000000000..732b33f0d |
85 |
--- /dev/null |
86 |
+++ b/dev-python/grpclib/grpclib-0.4.3_rc2.ebuild |
87 |
@@ -0,0 +1,41 @@ |
88 |
+EAPI=8 |
89 |
+ |
90 |
+DISTUTILS_USE_PEP517=setuptools |
91 |
+PYTHON_COMPAT=( python3_{8..10} ) |
92 |
+ |
93 |
+inherit distutils-r1 |
94 |
+ |
95 |
+DESCRIPTION="Pure-Python gRPC implementation for asyncio" |
96 |
+HOMEPAGE="https://github.com/vmagamedov/grpclib" |
97 |
+if [[ ${PV} == 9999 ]]; then |
98 |
+ inherit git-r3 |
99 |
+ EGIT_REPO_URI="https://github.com/vmagamedov/grpclib" |
100 |
+else |
101 |
+ MY_PV="${PV/_rc/rc}" |
102 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
103 |
+ SRC_URI="https://github.com/vmagamedov/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
104 |
+ KEYWORDS="~amd64 ~x86" |
105 |
+fi |
106 |
+ |
107 |
+LICENSE="BSD" |
108 |
+SLOT="0" |
109 |
+ |
110 |
+RDEPEND=" |
111 |
+ >=dev-python/h2-4.1.0[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/hpack-4.0.0[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/hyperframe-6.0.1[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/multidict-6.0.2[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/grpcio-tools-1.43.0[${PYTHON_USEDEP}] |
116 |
+" |
117 |
+BDEPEND=" |
118 |
+ test? ( |
119 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
120 |
+ dev-python/async_timeout[${PYTHON_USEDEP}] |
121 |
+ dev-python/googleapis-common-protos[${PYTHON_USEDEP}] |
122 |
+ dev-python/Faker[${PYTHON_USEDEP}] |
123 |
+ ) |
124 |
+" |
125 |
+ |
126 |
+distutils_enable_tests pytest |
127 |
+distutils_enable_sphinx docs \ |
128 |
+ 'dev-python/sphinx_rtd_theme' |