From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3927158003 for ; Mon, 2 May 2022 07:59:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E63A5E0BAA; Mon, 2 May 2022 07:59:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C998AE0BAA for ; Mon, 2 May 2022 07:59:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8FDFF34115A for ; Mon, 2 May 2022 07:59:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D7831E for ; Mon, 2 May 2022 07:59:11 +0000 (UTC) From: "Horea Christian" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horea Christian" Message-ID: <1651478346.7bcf8e8fe0cc8f767d0aa5708741a67893c770d9.chymera@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-vcs/dandi-cli/ X-VCS-Repository: proj/sci X-VCS-Files: dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild X-VCS-Directories: dev-vcs/dandi-cli/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: 7bcf8e8fe0cc8f767d0aa5708741a67893c770d9 X-VCS-Branch: master Date: Mon, 2 May 2022 07:59:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 51ddd103-a950-411c-ae1b-c9c372ceff15 X-Archives-Hash: 8110d4b9e47151fe82c2e1b884fa35ba commit: 7bcf8e8fe0cc8f767d0aa5708741a67893c770d9 Author: Horea Christian chymera eu> AuthorDate: Mon May 2 07:59:06 2022 +0000 Commit: Horea Christian gmail com> CommitDate: Mon May 2 07:59:06 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7bcf8e8f dev-vcs/dandi-cli: version bump Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Horea Christian chymera.eu> dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild | 86 +++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild b/dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild new file mode 100644 index 000000000..1f68c40bf --- /dev/null +++ b/dev-vcs/dandi-cli/dandi-cli-0.39.4.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="DANDI command line client to facilitate common operations" +HOMEPAGE="https://github.com/dandi/dandi-cli" +SRC_URI="https://github.com/dandi/dandi-cli/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test etelemetry" + +RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + dev-python/click-didyoumean[${PYTHON_USEDEP}] + ~dev-python/dandi-schema-0.6.0[${PYTHON_USEDEP}] + dev-python/fasteners[${PYTHON_USEDEP}] + dev-python/fscacher[${PYTHON_USEDEP}] + dev-python/humanize[${PYTHON_USEDEP}] + dev-python/interleave[${PYTHON_USEDEP}] + dev-python/joblib[${PYTHON_USEDEP}] + dev-python/keyring[${PYTHON_USEDEP}] + dev-python/keyrings_alt[${PYTHON_USEDEP}] + dev-python/nwbinspector[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pycryptodome[${PYTHON_USEDEP}] + >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}] + dev-python/pynwb[${PYTHON_USEDEP}] + dev-python/pyout[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + dev-python/semantic_version[${PYTHON_USEDEP}] + dev-python/tenacity[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + dev-python/zarr[${PYTHON_USEDEP}] +" + +DEPEND=" + test? ( + dev-python/anys[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/pyfakefs[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + media-libs/opencv[ffmpeg,${PYTHON_USEDEP}] + ) +" +# Upstream might be amenable to dropping opencv: +# https://github.com/dandi/dandi-cli/issues/944 + +# Some tests require deep copy with git history +# https://github.com/dandi/dandi-cli/issues/878#issuecomment-1021720299 +EPYTEST_DESELECT=( + "dandi/tests/test_utils.py::test_get_instance_dandi_with_api" + "dandi/tests/test_utils.py::test_get_instance_url" + "dandi/tests/test_utils.py::test_get_instance_cli_version_too_old" + "dandi/tests/test_utils.py::test_get_instance_bad_cli_version" +) + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/${PN}-0.37.0-pip-versioncheck.patch" +) + +src_prepare() { + if use etelemetry; then + default + else + eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch" + default + sed -i "/etelemetry/d" setup.cfg + fi +} + +python_test() { + export DANDI_TESTS_NONETWORK=1 + epytest +}