diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-29 10:45:41 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-30 20:59:00 +0300 |
commit | f1534cf8022730a0fb4d1eb5106a5d80dbe28650 (patch) | |
tree | 99cfad7c567c46a17a76abd5de8a8a502e20f2d6 /dev-python/python-novaclient | |
parent | dev-python/python-swiftclient: add 3.12.0, enable py3.9, clean tests (diff) | |
download | gentoo-f1534cf8022730a0fb4d1eb5106a5d80dbe28650.tar.gz gentoo-f1534cf8022730a0fb4d1eb5106a5d80dbe28650.tar.bz2 gentoo-f1534cf8022730a0fb4d1eb5106a5d80dbe28650.zip |
dev-python/python-novaclient: add 17.6.0, py3.9, enable tests
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/python-novaclient')
-rw-r--r-- | dev-python/python-novaclient/Manifest | 1 | ||||
-rw-r--r-- | dev-python/python-novaclient/python-novaclient-17.6.0.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/python-novaclient/Manifest b/dev-python/python-novaclient/Manifest index 875b6689e709..2f6b2ec72ca6 100644 --- a/dev-python/python-novaclient/Manifest +++ b/dev-python/python-novaclient/Manifest @@ -1 +1,2 @@ DIST python-novaclient-17.2.1.tar.gz 323330 BLAKE2B a7dd4a7b134c09945c3549ce014060c95da07d9125d5b24e7c99369c33538cfe56cee9f90c17a1d8025ac74969af950dcdcf8b3f87197cbd099e84cca857e23a SHA512 d1a9966f7da80e0884a451b3b014c45a1b4057dbdf0d8bcd23665eee55b6f15872e8e1d2b79b3cdbfc78f51800ffa3536cf0ab4e30eebf3878ffc007c52913cd +DIST python-novaclient-17.6.0.tar.gz 335297 BLAKE2B 24fcc869e71ef4ca382d6a684f5823331c49e84bced80e5f3e0a5e00efeeffc6cc6e554b7d97c571085dddcdd9bc6145442c5b7100bc9e833cb5bf883d860ba7 SHA512 54cc617e2698cdf50697b35153489f6fe64e84416d05987b7c60ed78241299631a0c03d893c462ad2f93788a5fc1336082acb5d22317d5733e9c033a91b1c34f diff --git a/dev-python/python-novaclient/python-novaclient-17.6.0.ebuild b/dev-python/python-novaclient/python-novaclient-17.6.0.ebuild new file mode 100644 index 000000000000..37fa0db2258c --- /dev/null +++ b/dev-python/python-novaclient/python-novaclient-17.6.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit distutils-r1 + +DESCRIPTION="A client for the OpenStack Nova API" +HOMEPAGE="https://github.com/openstack/python-novaclient" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + >=dev-python/keystoneauth-3.5.0[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] + >dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] + >=dev-python/prettytable-0.7.2[${PYTHON_USEDEP}] + >dev-python/requests-2.12.2[${PYTHON_USEDEP}] + >=dev-python/stevedore-2.0.1[${PYTHON_USEDEP}] +" +BDEPEND=" + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + test? ( + dev-python/bandit[${PYTHON_USEDEP}] + dev-python/ddt[${PYTHON_USEDEP}] + dev-python/fixtures[${PYTHON_USEDEP}] + dev-python/python-keystoneclient[${PYTHON_USEDEP}] + dev-python/python-cinderclient[${PYTHON_USEDEP}] + dev-python/python-glanceclient[${PYTHON_USEDEP}] + dev-python/python-neutronclient[${PYTHON_USEDEP}] + dev-python/requests-mock[${PYTHON_USEDEP}] + dev-python/openstacksdk[${PYTHON_USEDEP}] + dev-python/testscenarios[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + dev-python/tempest[${PYTHON_USEDEP}] + )" + +distutils_enable_tests unittest + +src_prepare() { + sed -e 's/test_osprofiler/_&/' -i novaclient/tests/unit/test_shell.py || die + distutils-r1_src_prepare +} + +python_test() { + # functional tests require cloud instance access + eunittest -b novaclient/tests/unit +} |