1 |
commit: 7bcf8e8fe0cc8f767d0aa5708741a67893c770d9 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Mon May 2 07:59:06 2022 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Mon May 2 07:59:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7bcf8e8f |
7 |
|
8 |
dev-vcs/dandi-cli: version bump |
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-vcs/dandi-cli/dandi-cli-0.39.4.ebuild | 86 +++++++++++++++++++++++++++++++ |
14 |
1 file changed, 86 insertions(+) |
15 |
|
16 |
diff --git a/dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild b/dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..1f68c40bf |
19 |
--- /dev/null |
20 |
+++ b/dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild |
21 |
@@ -0,0 +1,86 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="DANDI command line client to facilitate common operations" |
32 |
+HOMEPAGE="https://github.com/dandi/dandi-cli" |
33 |
+SRC_URI="https://github.com/dandi/dandi-cli/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="Apache-2.0" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="test etelemetry" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ dev-python/appdirs[${PYTHON_USEDEP}] |
42 |
+ dev-python/click[${PYTHON_USEDEP}] |
43 |
+ dev-python/click-didyoumean[${PYTHON_USEDEP}] |
44 |
+ ~dev-python/dandi-schema-0.6.0[${PYTHON_USEDEP}] |
45 |
+ dev-python/fasteners[${PYTHON_USEDEP}] |
46 |
+ dev-python/fscacher[${PYTHON_USEDEP}] |
47 |
+ dev-python/humanize[${PYTHON_USEDEP}] |
48 |
+ dev-python/interleave[${PYTHON_USEDEP}] |
49 |
+ dev-python/joblib[${PYTHON_USEDEP}] |
50 |
+ dev-python/keyring[${PYTHON_USEDEP}] |
51 |
+ dev-python/keyrings_alt[${PYTHON_USEDEP}] |
52 |
+ dev-python/nwbinspector[${PYTHON_USEDEP}] |
53 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
54 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}] |
56 |
+ dev-python/pynwb[${PYTHON_USEDEP}] |
57 |
+ dev-python/pyout[${PYTHON_USEDEP}] |
58 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
59 |
+ dev-python/requests[${PYTHON_USEDEP}] |
60 |
+ dev-python/ruamel-yaml[${PYTHON_USEDEP}] |
61 |
+ dev-python/semantic_version[${PYTHON_USEDEP}] |
62 |
+ dev-python/tenacity[${PYTHON_USEDEP}] |
63 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
64 |
+ dev-python/zarr[${PYTHON_USEDEP}] |
65 |
+" |
66 |
+ |
67 |
+DEPEND=" |
68 |
+ test? ( |
69 |
+ dev-python/anys[${PYTHON_USEDEP}] |
70 |
+ dev-python/responses[${PYTHON_USEDEP}] |
71 |
+ dev-python/pyfakefs[${PYTHON_USEDEP}] |
72 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
73 |
+ media-libs/opencv[ffmpeg,${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+" |
76 |
+# Upstream might be amenable to dropping opencv: |
77 |
+# https://github.com/dandi/dandi-cli/issues/944 |
78 |
+ |
79 |
+# Some tests require deep copy with git history |
80 |
+# https://github.com/dandi/dandi-cli/issues/878#issuecomment-1021720299 |
81 |
+EPYTEST_DESELECT=( |
82 |
+ "dandi/tests/test_utils.py::test_get_instance_dandi_with_api" |
83 |
+ "dandi/tests/test_utils.py::test_get_instance_url" |
84 |
+ "dandi/tests/test_utils.py::test_get_instance_cli_version_too_old" |
85 |
+ "dandi/tests/test_utils.py::test_get_instance_bad_cli_version" |
86 |
+) |
87 |
+ |
88 |
+distutils_enable_tests pytest |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}/${PN}-0.37.0-pip-versioncheck.patch" |
92 |
+) |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ if use etelemetry; then |
96 |
+ default |
97 |
+ else |
98 |
+ eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch" |
99 |
+ default |
100 |
+ sed -i "/etelemetry/d" setup.cfg |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+python_test() { |
105 |
+ export DANDI_TESTS_NONETWORK=1 |
106 |
+ epytest |
107 |
+} |