1 |
commit: c7a13341fbc904dfb399f542009138bea12def11 |
2 |
Author: Antonín Říha <antonin.riha <AT> protonmail <DOT> com> |
3 |
AuthorDate: Tue May 10 22:43:19 2022 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Tue May 10 22:43:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c7a13341 |
7 |
|
8 |
dev-python/python-betterproto: new ebuild |
9 |
|
10 |
Signed-off-by: Antonín Říha <antonin.riha <AT> protonmail.com> |
11 |
|
12 |
dev-python/python-betterproto/Manifest | 1 + |
13 |
dev-python/python-betterproto/metadata.xml | 13 ++++++ |
14 |
.../python-betterproto-2.0.0_beta4.ebuild | 53 ++++++++++++++++++++++ |
15 |
.../python-betterproto-9999.ebuild | 53 ++++++++++++++++++++++ |
16 |
4 files changed, 120 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/python-betterproto/Manifest b/dev-python/python-betterproto/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..07be9d4d8 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/python-betterproto/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST python-betterproto-2.0.0_beta4.tar.gz 137744 BLAKE2B 55cde21cca516ae935d8ff99303e3dcf78d952c470eaac2f91b5fa1dc20069e0ad150a0b59518d450c897547a3b3025d9ad683294adca5be6d66f06ba8034615 SHA512 10fc514e7a6d1ab87dd44e00d75d8f48752fa1ece26ccc671eeac502164aee2b8e4a30ec908e4abbb4b1c6671c72fc982764d74ccd0ac0f099d3533dcde64352 |
25 |
|
26 |
diff --git a/dev-python/python-betterproto/metadata.xml b/dev-python/python-betterproto/metadata.xml |
27 |
new file mode 100644 |
28 |
index 000000000..aa17874d0 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/python-betterproto/metadata.xml |
31 |
@@ -0,0 +1,13 @@ |
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>antonin.riha@××××××××××.com</email> |
37 |
+ <name>Antonín Říha</name> |
38 |
+ </maintainer> |
39 |
+ <upstream> |
40 |
+ <bugs-to>https://github.com/danielgtaylor/python-betterproto/issues</bugs-to> |
41 |
+ <remote-id type="pypi">betterproto</remote-id> |
42 |
+ <remote-id type="github">danielgtaylor/python-betterproto</remote-id> |
43 |
+ </upstream> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild |
47 |
new file mode 100644 |
48 |
index 000000000..83e12e19e |
49 |
--- /dev/null |
50 |
+++ b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild |
51 |
@@ -0,0 +1,53 @@ |
52 |
+# Copyright 1999-2022 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=8 |
56 |
+ |
57 |
+DISTUTILS_USE_PEP517=poetry |
58 |
+PYTHON_COMPAT=( python3_{8..10} ) |
59 |
+ |
60 |
+inherit distutils-r1 optfeature |
61 |
+ |
62 |
+DESCRIPTION="Better Protobuf / gRPC Support for Python" |
63 |
+HOMEPAGE="https://github.com/danielgtaylor/python-betterproto" |
64 |
+if [[ ${PV} == 9999 ]]; then |
65 |
+ inherit git-r3 |
66 |
+ EGIT_REPO_URI="https://github.com/danielgtaylor/python-betterproto" |
67 |
+else |
68 |
+ MY_PV="${PV/_beta/b}" |
69 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
70 |
+ SRC_URI="https://github.com/danielgtaylor/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
71 |
+ KEYWORDS="~amd64 ~x86" |
72 |
+fi |
73 |
+ |
74 |
+LICENSE="MIT" |
75 |
+SLOT="0" |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ >=dev-python/grpclib-0.4.1[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] |
80 |
+" |
81 |
+BDEPEND=" |
82 |
+ test? ( |
83 |
+ >=dev-python/black-19.3[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/isort-5.10.1[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/grpcio-tools-1.40.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/pytest-mock-3.1.1[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/pytest-asyncio-0.12.0[${PYTHON_USEDEP}] |
88 |
+ ) |
89 |
+" |
90 |
+ |
91 |
+distutils_enable_tests pytest |
92 |
+distutils_enable_sphinx docs \ |
93 |
+ '>=dev-python/sphinx_rtd_theme-0.5.0' |
94 |
+ |
95 |
+python_test() { |
96 |
+ "${EPYTHON}" -m tests.generate -v |
97 |
+ epytest |
98 |
+} |
99 |
+ |
100 |
+pkg_postinst() { |
101 |
+ optfeature "protoc compilation support" dev-python/black |
102 |
+ optfeature "protoc compilation support" dev-python/isort |
103 |
+ optfeature "protoc compilation support" dev-python/grpcio-tools |
104 |
+} |
105 |
|
106 |
diff --git a/dev-python/python-betterproto/python-betterproto-9999.ebuild b/dev-python/python-betterproto/python-betterproto-9999.ebuild |
107 |
new file mode 100644 |
108 |
index 000000000..30b9bb2cb |
109 |
--- /dev/null |
110 |
+++ b/dev-python/python-betterproto/python-betterproto-9999.ebuild |
111 |
@@ -0,0 +1,53 @@ |
112 |
+# Copyright 1999-2022 Gentoo Authors |
113 |
+# Distributed under the terms of the GNU General Public License v2 |
114 |
+ |
115 |
+EAPI=8 |
116 |
+ |
117 |
+DISTUTILS_USE_PEP517=poetry |
118 |
+PYTHON_COMPAT=( python3_{8..10} ) |
119 |
+ |
120 |
+inherit distutils-r1 optfeature |
121 |
+ |
122 |
+DESCRIPTION="Better Protobuf / gRPC Support for Python" |
123 |
+HOMEPAGE="https://github.com/danielgtaylor/python-betterproto" |
124 |
+if [[ ${PV} == 9999 ]]; then |
125 |
+ inherit git-r3 |
126 |
+ EGIT_REPO_URI="https://github.com/danielgtaylor/python-betterproto" |
127 |
+else |
128 |
+ MY_PV="${PV/_beta/b}" |
129 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
130 |
+ SRC_URI="https://github.com/danielgtaylor/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
131 |
+ KEYWORDS="~amd64 ~arm64 ~loong ~mips ~x86" |
132 |
+fi |
133 |
+ |
134 |
+LICENSE="MIT" |
135 |
+SLOT="0" |
136 |
+ |
137 |
+RDEPEND=" |
138 |
+ >=dev-python/grpclib-0.4.1[${PYTHON_USEDEP}] |
139 |
+ >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] |
140 |
+" |
141 |
+BDEPEND=" |
142 |
+ test? ( |
143 |
+ >=dev-python/black-19.3[${PYTHON_USEDEP}] |
144 |
+ >=dev-python/isort-5.10.1[${PYTHON_USEDEP}] |
145 |
+ >=dev-python/grpcio-tools-1.40.0[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/pytest-mock-3.1.1[${PYTHON_USEDEP}] |
147 |
+ >=dev-python/pytest-asyncio-0.12.0[${PYTHON_USEDEP}] |
148 |
+ ) |
149 |
+" |
150 |
+ |
151 |
+distutils_enable_tests pytest |
152 |
+distutils_enable_sphinx docs \ |
153 |
+ '>=dev-python/sphinx_rtd_theme-0.5.0' |
154 |
+ |
155 |
+python_test() { |
156 |
+ "${EPYTHON}" -m tests.generate -v |
157 |
+ epytest |
158 |
+} |
159 |
+ |
160 |
+pkg_postinst() { |
161 |
+ optfeature "protoc compilation support" dev-python/black |
162 |
+ optfeature "protoc compilation support" dev-python/isort |
163 |
+ optfeature "protoc compilation support" dev-python/grpcio-tools |
164 |
+} |