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