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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AF58513835A for ; Wed, 23 Jun 2021 10:09:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E145AE08C8; Wed, 23 Jun 2021 10:09:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA636E08C8 for ; Wed, 23 Jun 2021 10:09:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B654F33BEA8 for ; Wed, 23 Jun 2021 10:09:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 334B97B7 for ; Wed, 23 Jun 2021 10:09:42 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1624442858.2efaefc909376f33e4bca7dbf7e24b190f5c16a4.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/keystoneauth/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/keystoneauth/keystoneauth-4.2.1-r1.ebuild X-VCS-Directories: dev-python/keystoneauth/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2efaefc909376f33e4bca7dbf7e24b190f5c16a4 X-VCS-Branch: master Date: Wed, 23 Jun 2021 10:09:42 +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: abe17078-ebfe-4849-b043-84de531b95f4 X-Archives-Hash: 45d2cb98c0675b6919da1cc0cebf1023 commit: 2efaefc909376f33e4bca7dbf7e24b190f5c16a4 Author: Michał Górny gentoo org> AuthorDate: Wed Jun 23 09:57:21 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jun 23 10:07:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2efaefc9 dev-python/keystoneauth: Enable tests Signed-off-by: Michał Górny gentoo.org> .../keystoneauth/keystoneauth-4.2.1-r1.ebuild | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/dev-python/keystoneauth/keystoneauth-4.2.1-r1.ebuild b/dev-python/keystoneauth/keystoneauth-4.2.1-r1.ebuild new file mode 100644 index 00000000000..9e4dfcbc879 --- /dev/null +++ b/dev-python/keystoneauth/keystoneauth-4.2.1-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_8 ) +inherit distutils-r1 + +DESCRIPTION="This package contains tools for authenticating to an OpenStack-based cloud." +HOMEPAGE="https://github.com/openstack/keystoneauth" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}1/${PN}1-${PV}.tar.gz" +S="${WORKDIR}/${PN}1-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" + +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + !~dev-python/pbr-2.1.0" +RDEPEND="${CDEPEND} + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] + >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] + >=dev-python/os-service-types-1.2.0[${PYTHON_USEDEP}]" +BDEPEND="${CDEPEND} + test? ( + >=dev-python/betamax-0.7.0[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + dev-python/hacking[${PYTHON_USEDEP}] + >=dev-python/lxml-4.2.0[${PYTHON_USEDEP}] + >=dev-python/oauthlib-0.6.2[${PYTHON_USEDEP}] + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.12[${PYTHON_USEDEP}] + >=dev-python/requests-kerberos-0.8.0[${PYTHON_USEDEP}] + >=dev-python/requests-mock-1.2.0[${PYTHON_USEDEP}] + >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] + )" + +distutils_enable_tests unittest + +src_prepare() { + # relies on specific test runner name + sed -i -e 's:run\.py:unittest_or_fail.py:' \ + keystoneauth1/tests/unit/test_session.py || die + distutils-r1_src_prepare +} + +python_test() { + eunittest -b +}