1 |
commit: 75464915fc7431e173764ebf602143a8d5b12e7e |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Fri Nov 4 13:39:16 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 4 14:10:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=75464915 |
7 |
|
8 |
dev-python/fastavro: add 1.7.0, drop old |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/fastavro/Manifest | 3 +- |
13 |
dev-python/fastavro/fastavro-1.5.1.ebuild | 47 ------------------------ |
14 |
dev-python/fastavro/fastavro-1.5.2.ebuild | 47 ------------------------ |
15 |
dev-python/fastavro/fastavro-1.7.0.ebuild | 60 +++++++++++++++++++++++++++++++ |
16 |
4 files changed, 61 insertions(+), 96 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/fastavro/Manifest b/dev-python/fastavro/Manifest |
19 |
index 5edfe9d9f..b85054b0a 100644 |
20 |
--- a/dev-python/fastavro/Manifest |
21 |
+++ b/dev-python/fastavro/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST fastavro-1.5.1.tar.gz 761574 BLAKE2B fd520edaf533120022cbe6f3cabe5919c952b43bd4d131bb2aacbaded6fbda4d60e8610c12850310c28ac0fc5696301f4ef725c8369057dff9c73b9b35653ada SHA512 6fa2169d4cc26c2176e61da159129e6456296d99bce2d973916d6a0f071feec7b930f985167d7e1e3e0939ec2a5ff387f67e221ff6f52523015af99d4823bf1e |
24 |
-DIST fastavro-1.5.2.tar.gz 761565 BLAKE2B 16e4408fa85ee2703a66cb9e8d125a651d879c69475e3137f95283ed974a3b158f0fc7a67de660db06731d45b7952d04b510a08d472fc5a7d86fe5e57a9d264b SHA512 9885291f9ed15da05ee1fc816a95b6fcb269a6c5814efa9f94188c39e5bb0b31dd5afc1c76ae10268a4e128306d66f60c2087d5c0335c1e918e477fabe7f6cf0 |
25 |
+DIST fastavro-1.7.0.tar.gz 787676 BLAKE2B 8cbf382a2ef727b2daf35c15dd6790f080bc579f0ae85bf35c036c55ff8347b86ab5d1becd5b5951fa30fdd299ea7c2ba677798b50d23743ac20fbf488c36d4a SHA512 132f347c7d257edd76660925a8c6d13b04ff009ba7d5a4719eb59fd5d7f88fd62c3120ba7aeea1da905027f02a0851ffd05a1ef29900ad20dd9ac2b9c1eb38f9 |
26 |
|
27 |
diff --git a/dev-python/fastavro/fastavro-1.5.1.ebuild b/dev-python/fastavro/fastavro-1.5.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 2802e6c4d..000000000 |
30 |
--- a/dev-python/fastavro/fastavro-1.5.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,47 +0,0 @@ |
33 |
-# Copyright 1999-2022 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=8 |
37 |
- |
38 |
-DISTUTILS_USE_PEP517=setuptools |
39 |
-# https://github.com/fastavro/fastavro/issues/558 |
40 |
-EPYTEST_DESELECT=( |
41 |
- tests/test_fastavro.py::test_cython_python |
42 |
- tests/test_main_cli.py::test_cli_record_output |
43 |
- tests/test_main_cli.py::test_cli_stream_input |
44 |
- tests/test_main_cli.py::test_cli_arg_metadata |
45 |
- tests/test_main_cli.py::test_cli_arg_schema |
46 |
- tests/test_main_cli.py::test_cli_arg_codecs |
47 |
-) |
48 |
-PYTHON_COMPAT=( python3_{8..10} ) |
49 |
- |
50 |
-inherit distutils-r1 |
51 |
- |
52 |
-DESCRIPTION="Fast Avro for Python" |
53 |
-HOMEPAGE=" |
54 |
- https://github.com/fastavro/fastavro |
55 |
- https://pypi.org/project/fastavro/ |
56 |
-" |
57 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
58 |
- |
59 |
-LICENSE="MIT" |
60 |
-SLOT="0" |
61 |
-KEYWORDS="~amd64" |
62 |
- |
63 |
-RDEPEND="" |
64 |
-DEPEND=" |
65 |
- ${RDEPEND} |
66 |
- dev-python/cython[${PYTHON_USEDEP}] |
67 |
- dev-python/wheel[${PYTHON_USEDEP}] |
68 |
-" |
69 |
-BDEPEND=" |
70 |
- test? ( |
71 |
- dev-python/numpy[${PYTHON_USEDEP}] |
72 |
- dev-python/pandas[${PYTHON_USEDEP}] |
73 |
- dev-python/snappy[${PYTHON_USEDEP}] |
74 |
- dev-python/zstandard[${PYTHON_USEDEP}] |
75 |
- dev-python/lz4[${PYTHON_USEDEP}] |
76 |
- ) |
77 |
-" |
78 |
- |
79 |
-distutils_enable_tests pytest |
80 |
|
81 |
diff --git a/dev-python/fastavro/fastavro-1.5.2.ebuild b/dev-python/fastavro/fastavro-1.5.2.ebuild |
82 |
deleted file mode 100644 |
83 |
index 2802e6c4d..000000000 |
84 |
--- a/dev-python/fastavro/fastavro-1.5.2.ebuild |
85 |
+++ /dev/null |
86 |
@@ -1,47 +0,0 @@ |
87 |
-# Copyright 1999-2022 Gentoo Authors |
88 |
-# Distributed under the terms of the GNU General Public License v2 |
89 |
- |
90 |
-EAPI=8 |
91 |
- |
92 |
-DISTUTILS_USE_PEP517=setuptools |
93 |
-# https://github.com/fastavro/fastavro/issues/558 |
94 |
-EPYTEST_DESELECT=( |
95 |
- tests/test_fastavro.py::test_cython_python |
96 |
- tests/test_main_cli.py::test_cli_record_output |
97 |
- tests/test_main_cli.py::test_cli_stream_input |
98 |
- tests/test_main_cli.py::test_cli_arg_metadata |
99 |
- tests/test_main_cli.py::test_cli_arg_schema |
100 |
- tests/test_main_cli.py::test_cli_arg_codecs |
101 |
-) |
102 |
-PYTHON_COMPAT=( python3_{8..10} ) |
103 |
- |
104 |
-inherit distutils-r1 |
105 |
- |
106 |
-DESCRIPTION="Fast Avro for Python" |
107 |
-HOMEPAGE=" |
108 |
- https://github.com/fastavro/fastavro |
109 |
- https://pypi.org/project/fastavro/ |
110 |
-" |
111 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
112 |
- |
113 |
-LICENSE="MIT" |
114 |
-SLOT="0" |
115 |
-KEYWORDS="~amd64" |
116 |
- |
117 |
-RDEPEND="" |
118 |
-DEPEND=" |
119 |
- ${RDEPEND} |
120 |
- dev-python/cython[${PYTHON_USEDEP}] |
121 |
- dev-python/wheel[${PYTHON_USEDEP}] |
122 |
-" |
123 |
-BDEPEND=" |
124 |
- test? ( |
125 |
- dev-python/numpy[${PYTHON_USEDEP}] |
126 |
- dev-python/pandas[${PYTHON_USEDEP}] |
127 |
- dev-python/snappy[${PYTHON_USEDEP}] |
128 |
- dev-python/zstandard[${PYTHON_USEDEP}] |
129 |
- dev-python/lz4[${PYTHON_USEDEP}] |
130 |
- ) |
131 |
-" |
132 |
- |
133 |
-distutils_enable_tests pytest |
134 |
|
135 |
diff --git a/dev-python/fastavro/fastavro-1.7.0.ebuild b/dev-python/fastavro/fastavro-1.7.0.ebuild |
136 |
new file mode 100644 |
137 |
index 000000000..267627439 |
138 |
--- /dev/null |
139 |
+++ b/dev-python/fastavro/fastavro-1.7.0.ebuild |
140 |
@@ -0,0 +1,60 @@ |
141 |
+# Copyright 1999-2022 Gentoo Authors |
142 |
+# Distributed under the terms of the GNU General Public License v2 |
143 |
+ |
144 |
+EAPI=8 |
145 |
+ |
146 |
+PYTHON_COMPAT=( python3_{8..11} ) |
147 |
+DISTUTILS_USE_PEP517=setuptools |
148 |
+inherit distutils-r1 optfeature |
149 |
+ |
150 |
+DESCRIPTION="Fast read/write of AVRO files" |
151 |
+HOMEPAGE=" |
152 |
+ https://github.com/fastavro/fastavro |
153 |
+ https://pypi.org/project/fastavro/ |
154 |
+" |
155 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
156 |
+TEST_S="${S}_test" |
157 |
+ |
158 |
+LICENSE="MIT" |
159 |
+SLOT="0" |
160 |
+KEYWORDS="~amd64" |
161 |
+ |
162 |
+BDEPEND=" |
163 |
+ dev-python/cython[${PYTHON_USEDEP}] |
164 |
+ test? ( |
165 |
+ dev-python/lz4[${PYTHON_USEDEP}] |
166 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
167 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
168 |
+ dev-python/python-zstandard[${PYTHON_USEDEP}] |
169 |
+ dev-python/snappy[${PYTHON_USEDEP}] |
170 |
+ ) |
171 |
+" |
172 |
+ |
173 |
+EPYTEST_DESELECT=( |
174 |
+ # TypeError |
175 |
+ tests/test_fastavro.py::test_regular_vs_ordered_dict_record_typeerror |
176 |
+) |
177 |
+ |
178 |
+distutils_enable_tests pytest |
179 |
+ |
180 |
+distutils_enable_sphinx docs \ |
181 |
+ dev-python/sphinx_rtd_theme |
182 |
+ |
183 |
+src_unpack() { |
184 |
+ default |
185 |
+ |
186 |
+ cp -a "${S}" "${TEST_S}" || die |
187 |
+ rm -r "${TEST_S}"/fastavro/* || die |
188 |
+ cp {"${S}","${TEST_S}"}/fastavro/__main__.py || die |
189 |
+} |
190 |
+ |
191 |
+python_test() { |
192 |
+ cd "${TEST_S}" || die |
193 |
+ epytest |
194 |
+} |
195 |
+ |
196 |
+pkg_postinst() { |
197 |
+ optfeature "lz4 support" dev-python/lz4 |
198 |
+ optfeature "snappy support" dev-python/snappy |
199 |
+ optfeature "zstd support" dev-python/python-zstandard |
200 |
+} |