1 |
commit: 17b74679f9aef73bcd9eb3db3d0c4797c7d76d9a |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Tue Mar 29 00:48:01 2022 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Mar 29 00:48:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=17b74679 |
7 |
|
8 |
dev-python/dandischema: new package (DANDI stack) |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
12 |
|
13 |
dev-python/dandischema/dandischema-0.4.3.ebuild | 46 ++++++++++++++++++++++ |
14 |
dev-python/dandischema/dandischema-0.5.1.ebuild | 42 ++++++++++++++++++++ |
15 |
dev-python/dandischema/dandischema-0.5.3.ebuild | 42 ++++++++++++++++++++ |
16 |
dev-python/dandischema/dandischema-0.6.0.ebuild | 42 ++++++++++++++++++++ |
17 |
.../files/dandischema-0.3.4-coverage.patch | 11 ++++++ |
18 |
.../files/dandischema-0.3.4-versioningit.patch | 10 +++++ |
19 |
dev-python/dandischema/metadata.xml | 26 ++++++++++++ |
20 |
7 files changed, 219 insertions(+) |
21 |
|
22 |
diff --git a/dev-python/dandischema/dandischema-0.4.3.ebuild b/dev-python/dandischema/dandischema-0.4.3.ebuild |
23 |
new file mode 100644 |
24 |
index 000000000..18584a8d4 |
25 |
--- /dev/null |
26 |
+++ b/dev-python/dandischema/dandischema-0.4.3.ebuild |
27 |
@@ -0,0 +1,46 @@ |
28 |
+# Copyright 1999-2022 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=8 |
32 |
+ |
33 |
+PYTHON_COMPAT=( python3_{8..10} ) |
34 |
+inherit distutils-r1 |
35 |
+ |
36 |
+DESCRIPTION="Schemata for DANDI archive project" |
37 |
+HOMEPAGE="https://github.com/dandi/dandischema" |
38 |
+SRC_URI="https://github.com/dandi/dandischema/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="Apache-2.0" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+IUSE="test" |
44 |
+RESTRICT="!test? ( test )" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
48 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
49 |
+ dev-python/pydantic[${PYTHON_USEDEP}] |
50 |
+ dev-python/python-email-validator[${PYTHON_USEDEP}] |
51 |
+ dev-python/requests[${PYTHON_USEDEP}] |
52 |
+" |
53 |
+DEPEND=" |
54 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
55 |
+" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}/${PN}-0.3.4-coverage.patch" |
59 |
+ "${FILESDIR}/${PN}-0.3.4-versioningit.patch" |
60 |
+) |
61 |
+ |
62 |
+src_configure() { |
63 |
+ echo "__version__ = '${PV}'" >> dandischema/_version.py |
64 |
+} |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+python_test() { |
69 |
+ export DANDI_TESTS_NONETWORK=1 |
70 |
+ pushd dandischema || die |
71 |
+ epytest tests |
72 |
+ popd |
73 |
+} |
74 |
|
75 |
diff --git a/dev-python/dandischema/dandischema-0.5.1.ebuild b/dev-python/dandischema/dandischema-0.5.1.ebuild |
76 |
new file mode 100644 |
77 |
index 000000000..e261a7540 |
78 |
--- /dev/null |
79 |
+++ b/dev-python/dandischema/dandischema-0.5.1.ebuild |
80 |
@@ -0,0 +1,42 @@ |
81 |
+# Copyright 1999-2022 Gentoo Authors |
82 |
+# Distributed under the terms of the GNU General Public License v2 |
83 |
+ |
84 |
+EAPI=8 |
85 |
+ |
86 |
+DISTUTILS_USE_PEP517=setuptools |
87 |
+PYTHON_COMPAT=( python3_{8..10} ) |
88 |
+ |
89 |
+inherit distutils-r1 |
90 |
+ |
91 |
+DESCRIPTION="Schemata for DANDI archive project" |
92 |
+HOMEPAGE="https://github.com/dandi/dandischema" |
93 |
+SRC_URI="https://github.com/dandi/dandischema/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
94 |
+ |
95 |
+LICENSE="Apache-2.0" |
96 |
+SLOT="0" |
97 |
+KEYWORDS="~amd64 ~x86" |
98 |
+ |
99 |
+RDEPEND=" |
100 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
101 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
102 |
+ dev-python/pydantic[${PYTHON_USEDEP}] |
103 |
+ dev-python/python-email-validator[${PYTHON_USEDEP}] |
104 |
+ dev-python/requests[${PYTHON_USEDEP}] |
105 |
+" |
106 |
+ |
107 |
+PATCHES=( |
108 |
+ "${FILESDIR}/${PN}-0.3.4-coverage.patch" |
109 |
+) |
110 |
+ |
111 |
+src_configure() { |
112 |
+ echo "__version__ = '${PV}'" >> dandischema/_version.py |
113 |
+} |
114 |
+ |
115 |
+distutils_enable_tests pytest |
116 |
+ |
117 |
+python_test() { |
118 |
+ export DANDI_TESTS_NONETWORK=1 |
119 |
+ pushd dandischema || die |
120 |
+ epytest tests |
121 |
+ popd |
122 |
+} |
123 |
|
124 |
diff --git a/dev-python/dandischema/dandischema-0.5.3.ebuild b/dev-python/dandischema/dandischema-0.5.3.ebuild |
125 |
new file mode 100644 |
126 |
index 000000000..e261a7540 |
127 |
--- /dev/null |
128 |
+++ b/dev-python/dandischema/dandischema-0.5.3.ebuild |
129 |
@@ -0,0 +1,42 @@ |
130 |
+# Copyright 1999-2022 Gentoo Authors |
131 |
+# Distributed under the terms of the GNU General Public License v2 |
132 |
+ |
133 |
+EAPI=8 |
134 |
+ |
135 |
+DISTUTILS_USE_PEP517=setuptools |
136 |
+PYTHON_COMPAT=( python3_{8..10} ) |
137 |
+ |
138 |
+inherit distutils-r1 |
139 |
+ |
140 |
+DESCRIPTION="Schemata for DANDI archive project" |
141 |
+HOMEPAGE="https://github.com/dandi/dandischema" |
142 |
+SRC_URI="https://github.com/dandi/dandischema/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
143 |
+ |
144 |
+LICENSE="Apache-2.0" |
145 |
+SLOT="0" |
146 |
+KEYWORDS="~amd64 ~x86" |
147 |
+ |
148 |
+RDEPEND=" |
149 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
150 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
151 |
+ dev-python/pydantic[${PYTHON_USEDEP}] |
152 |
+ dev-python/python-email-validator[${PYTHON_USEDEP}] |
153 |
+ dev-python/requests[${PYTHON_USEDEP}] |
154 |
+" |
155 |
+ |
156 |
+PATCHES=( |
157 |
+ "${FILESDIR}/${PN}-0.3.4-coverage.patch" |
158 |
+) |
159 |
+ |
160 |
+src_configure() { |
161 |
+ echo "__version__ = '${PV}'" >> dandischema/_version.py |
162 |
+} |
163 |
+ |
164 |
+distutils_enable_tests pytest |
165 |
+ |
166 |
+python_test() { |
167 |
+ export DANDI_TESTS_NONETWORK=1 |
168 |
+ pushd dandischema || die |
169 |
+ epytest tests |
170 |
+ popd |
171 |
+} |
172 |
|
173 |
diff --git a/dev-python/dandischema/dandischema-0.6.0.ebuild b/dev-python/dandischema/dandischema-0.6.0.ebuild |
174 |
new file mode 100644 |
175 |
index 000000000..e261a7540 |
176 |
--- /dev/null |
177 |
+++ b/dev-python/dandischema/dandischema-0.6.0.ebuild |
178 |
@@ -0,0 +1,42 @@ |
179 |
+# Copyright 1999-2022 Gentoo Authors |
180 |
+# Distributed under the terms of the GNU General Public License v2 |
181 |
+ |
182 |
+EAPI=8 |
183 |
+ |
184 |
+DISTUTILS_USE_PEP517=setuptools |
185 |
+PYTHON_COMPAT=( python3_{8..10} ) |
186 |
+ |
187 |
+inherit distutils-r1 |
188 |
+ |
189 |
+DESCRIPTION="Schemata for DANDI archive project" |
190 |
+HOMEPAGE="https://github.com/dandi/dandischema" |
191 |
+SRC_URI="https://github.com/dandi/dandischema/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
192 |
+ |
193 |
+LICENSE="Apache-2.0" |
194 |
+SLOT="0" |
195 |
+KEYWORDS="~amd64 ~x86" |
196 |
+ |
197 |
+RDEPEND=" |
198 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
199 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
200 |
+ dev-python/pydantic[${PYTHON_USEDEP}] |
201 |
+ dev-python/python-email-validator[${PYTHON_USEDEP}] |
202 |
+ dev-python/requests[${PYTHON_USEDEP}] |
203 |
+" |
204 |
+ |
205 |
+PATCHES=( |
206 |
+ "${FILESDIR}/${PN}-0.3.4-coverage.patch" |
207 |
+) |
208 |
+ |
209 |
+src_configure() { |
210 |
+ echo "__version__ = '${PV}'" >> dandischema/_version.py |
211 |
+} |
212 |
+ |
213 |
+distutils_enable_tests pytest |
214 |
+ |
215 |
+python_test() { |
216 |
+ export DANDI_TESTS_NONETWORK=1 |
217 |
+ pushd dandischema || die |
218 |
+ epytest tests |
219 |
+ popd |
220 |
+} |
221 |
|
222 |
diff --git a/dev-python/dandischema/files/dandischema-0.3.4-coverage.patch b/dev-python/dandischema/files/dandischema-0.3.4-coverage.patch |
223 |
new file mode 100644 |
224 |
index 000000000..a9c7b6c2b |
225 |
--- /dev/null |
226 |
+++ b/dev-python/dandischema/files/dandischema-0.3.4-coverage.patch |
227 |
@@ -0,0 +1,11 @@ |
228 |
+--- a/tox.ini 2021-09-22 19:31:20.534576095 -0400 |
229 |
++++ b/tox.ini 2021-09-26 16:11:30.080164191 -0400 |
230 |
+@@ -17,7 +17,7 @@ |
231 |
+ flake8 --config=setup.cfg {posargs} dandischema setup.py |
232 |
+ |
233 |
+ [pytest] |
234 |
+-addopts = --cov=dandischema --tb=short --durations=10 |
235 |
++addopts = --tb=short --durations=10 |
236 |
+ filterwarnings = error |
237 |
+ |
238 |
+ [coverage:run] |
239 |
|
240 |
diff --git a/dev-python/dandischema/files/dandischema-0.3.4-versioningit.patch b/dev-python/dandischema/files/dandischema-0.3.4-versioningit.patch |
241 |
new file mode 100644 |
242 |
index 000000000..589091756 |
243 |
--- /dev/null |
244 |
+++ b/dev-python/dandischema/files/dandischema-0.3.4-versioningit.patch |
245 |
@@ -0,0 +1,10 @@ |
246 |
+--- a/setup.py 2021-09-22 19:31:20.533576086 -0400 |
247 |
++++ b/setup.py 2021-09-23 07:42:02.856983656 -0400 |
248 |
+@@ -21,7 +21,7 @@ |
249 |
+ |
250 |
+ # Give setuptools a hint to complain if it's too old a version |
251 |
+ # Should match pyproject.toml |
252 |
+-SETUP_REQUIRES = ["setuptools >= 42.0.0", "versioningit ~= 0.1.0"] |
253 |
++SETUP_REQUIRES = ["setuptools >= 42.0.0"] |
254 |
+ # This enables setuptools to install wheel on-the-fly |
255 |
+ SETUP_REQUIRES += ["wheel"] if "bdist_wheel" in sys.argv else [] |
256 |
|
257 |
diff --git a/dev-python/dandischema/metadata.xml b/dev-python/dandischema/metadata.xml |
258 |
new file mode 100644 |
259 |
index 000000000..eb1e64a4f |
260 |
--- /dev/null |
261 |
+++ b/dev-python/dandischema/metadata.xml |
262 |
@@ -0,0 +1,26 @@ |
263 |
+<?xml version='1.0' encoding='UTF-8'?> |
264 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
265 |
+<pkgmetadata> |
266 |
+ <maintainer type="person"> |
267 |
+ <email>gentoo@×××××××.eu</email> |
268 |
+ <name>Horea Christian</name> |
269 |
+ </maintainer> |
270 |
+ <maintainer type="project"> |
271 |
+ <email>sci@g.o</email> |
272 |
+ <name>Gentoo Science Project</name> |
273 |
+ </maintainer> |
274 |
+ <longdescription lang="en"> |
275 |
+ A Python library for maintaining and managing DANDI metadata schemata. |
276 |
+ The library helps create and validate DANDI schema-compliant metadata |
277 |
+ for Dandisets and assets. Every Dandiset and associated asset has a |
278 |
+ metadata object that can be retrieved using the DANDI API. This |
279 |
+ library uses Pydantic to implement all the metadata classes. Schemas |
280 |
+ are generated on schema modifications and placed into this repository. |
281 |
+ Dandischema generates JSON schema definitions and also an associated |
282 |
+ context.json file for JSON-LD compliance of the metadata models. |
283 |
+ </longdescription> |
284 |
+ <upstream> |
285 |
+ <remote-id type="github">dandi/dandischema</remote-id> |
286 |
+ <remote-id type="pypi">dandischema</remote-id> |
287 |
+ </upstream> |
288 |
+</pkgmetadata> |