Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-vcs/dandi-cli/, dev-vcs/dandi-cli/files/
Date: Mon, 02 May 2022 07:54:07
Message-Id: 1651478038.1cfaf223c60f41b79d7db71c61d96e2e6f07cf23.chymera@gentoo
1 commit: 1cfaf223c60f41b79d7db71c61d96e2e6f07cf23
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Mon May 2 07:53:58 2022 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Mon May 2 07:53:58 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=1cfaf223
7
8 dev-vcs/dandi-cli: dropped old version
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.35.0.ebuild | 83 ----------------------
14 .../files/dandi-cli-0.34.1-pip-versioncheck.patch | 13 ----
15 .../files/dandi-cli-0.35.0-test_nonetwork.patch | 21 ------
16 3 files changed, 117 deletions(-)
17
18 diff --git a/dev-vcs/dandi-cli/dandi-cli-0.35.0.ebuild b/dev-vcs/dandi-cli/dandi-cli-0.35.0.ebuild
19 deleted file mode 100644
20 index e59f3ca7f..000000000
21 --- a/dev-vcs/dandi-cli/dandi-cli-0.35.0.ebuild
22 +++ /dev/null
23 @@ -1,83 +0,0 @@
24 -# Copyright 1999-2022 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=8
28 -
29 -DISTUTILS_USE_PEP517=setuptools
30 -PYTHON_COMPAT=( python3_{8..10} )
31 -
32 -inherit distutils-r1
33 -
34 -DESCRIPTION="DANDI command line client to facilitate common operations"
35 -HOMEPAGE="https://github.com/dandi/dandi-cli"
36 -SRC_URI="https://github.com/dandi/dandi-cli/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
37 -
38 -LICENSE="Apache-2.0"
39 -SLOT="0"
40 -KEYWORDS="~amd64 ~x86"
41 -IUSE="test etelemetry"
42 -
43 -RDEPEND="
44 - dev-python/appdirs[${PYTHON_USEDEP}]
45 - dev-python/click[${PYTHON_USEDEP}]
46 - dev-python/click-didyoumean[${PYTHON_USEDEP}]
47 - =dev-python/dandischema-0.5*[${PYTHON_USEDEP}]
48 - dev-python/fasteners[${PYTHON_USEDEP}]
49 - dev-python/fscacher[${PYTHON_USEDEP}]
50 - dev-python/humanize[${PYTHON_USEDEP}]
51 - dev-python/joblib[${PYTHON_USEDEP}]
52 - dev-python/keyring[${PYTHON_USEDEP}]
53 - dev-python/keyrings_alt[${PYTHON_USEDEP}]
54 - dev-python/packaging[${PYTHON_USEDEP}]
55 - dev-python/pycryptodome[${PYTHON_USEDEP}]
56 - dev-python/pydantic[${PYTHON_USEDEP}]
57 - dev-python/pynwb[${PYTHON_USEDEP}]
58 - dev-python/pyout[${PYTHON_USEDEP}]
59 - dev-python/python-dateutil[${PYTHON_USEDEP}]
60 - dev-python/requests[${PYTHON_USEDEP}]
61 - dev-python/ruamel-yaml[${PYTHON_USEDEP}]
62 - dev-python/semantic_version[${PYTHON_USEDEP}]
63 - dev-python/tenacity[${PYTHON_USEDEP}]
64 - dev-python/tqdm[${PYTHON_USEDEP}]
65 - dev-python/wheel[${PYTHON_USEDEP}]
66 -"
67 -
68 -DEPEND="
69 - test? (
70 - dev-python/anys[${PYTHON_USEDEP}]
71 - dev-python/responses[${PYTHON_USEDEP}]
72 - dev-python/pyfakefs[${PYTHON_USEDEP}]
73 - dev-python/pytest-mock[${PYTHON_USEDEP}]
74 - )
75 -"
76 -
77 -# Some tests require deep copy with git history
78 -# https://github.com/dandi/dandi-cli/issues/878#issuecomment-1021720299
79 -EPYTEST_DESELECT=(
80 - "dandi/tests/test_utils.py::test_get_instance_dandi_with_api"
81 - "dandi/tests/test_utils.py::test_get_instance_url"
82 - "dandi/tests/test_utils.py::test_get_instance_cli_version_too_old"
83 - "dandi/tests/test_utils.py::test_get_instance_bad_cli_version"
84 -)
85 -
86 -distutils_enable_tests pytest
87 -
88 -PATCHES=(
89 - "${FILESDIR}/${PN}-0.34.1-pip-versioncheck.patch"
90 - "${FILESDIR}/${PN}-0.35.0-test_nonetwork.patch"
91 -)
92 -
93 -src_prepare() {
94 - if use etelemetry; then
95 - default
96 - else
97 - eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch"
98 - default
99 - sed -i "/etelemetry/d" setup.cfg
100 - fi
101 -}
102 -
103 -python_test() {
104 - export DANDI_TESTS_NONETWORK=1
105 - epytest
106 -}
107
108 diff --git a/dev-vcs/dandi-cli/files/dandi-cli-0.34.1-pip-versioncheck.patch b/dev-vcs/dandi-cli/files/dandi-cli-0.34.1-pip-versioncheck.patch
109 deleted file mode 100644
110 index 4595390b3..000000000
111 --- a/dev-vcs/dandi-cli/files/dandi-cli-0.34.1-pip-versioncheck.patch
112 +++ /dev/null
113 @@ -1,13 +0,0 @@
114 ---- a/setup.cfg 2021-10-06 11:44:40.549337707 -0400
115 -+++ b/dsetup.cfg 2021-10-06 11:45:10.236935245 -0400
116 -@@ -30,8 +30,8 @@
117 - appdirs
118 - click
119 - click-didyoumean
120 -- dandischema ~= 0.5.1
121 -- etelemetry >= 0.2.2
122 -+ dandischema
123 -+ etelemetry
124 - fasteners
125 - fscacher
126 - # Specifying != might be what causes pip 19.3.1 first to install hdmf 1.5.1
127
128 diff --git a/dev-vcs/dandi-cli/files/dandi-cli-0.35.0-test_nonetwork.patch b/dev-vcs/dandi-cli/files/dandi-cli-0.35.0-test_nonetwork.patch
129 deleted file mode 100644
130 index 89b48b21d..000000000
131 --- a/dev-vcs/dandi-cli/files/dandi-cli-0.35.0-test_nonetwork.patch
132 +++ /dev/null
133 @@ -1,21 +0,0 @@
134 -From e5a6dd4bdc4db828ea1de2a48e96cbdb80465e86 Mon Sep 17 00:00:00 2001
135 -From: "John T. Wodder II" <git@×××××××××.org>
136 -Date: Tue, 25 Jan 2022 18:53:53 -0500
137 -Subject: [PATCH] Mark a test with missing `skipif_no_network` marker
138 -
139 ----
140 - dandi/tests/test_metadata.py | 1 +
141 - 1 file changed, 1 insertion(+)
142 -
143 -diff --git a/dandi/tests/test_metadata.py b/dandi/tests/test_metadata.py
144 -index 5896e6ef..a0a6bce1 100644
145 ---- a/dandi/tests/test_metadata.py
146 -+++ b/dandi/tests/test_metadata.py
147 -@@ -351,6 +351,7 @@ def test_parseobourl(url, value):
148 - assert parse_purlobourl(url) == value
149 -
150 -
151 -+@××××.skipif_no_network
152 - def test_species():
153 - m = {"species": "http://purl.obolibrary.org/obo/NCBITaxon_28584"}
154 - assert extract_species(m).json_dict() == {