diff options
author | Sam James <sam@gentoo.org> | 2021-01-22 19:33:37 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-01-22 19:36:14 +0000 |
commit | 143bb4cb09bb03b85cf82058234372ce73dc17bd (patch) | |
tree | 0fb5d6317337d5b78e637570ce83abda867b981d /dev-python/libcloud | |
parent | dev-python/libnacl: add github remote-id (diff) | |
download | gentoo-143bb4cb09bb03b85cf82058234372ce73dc17bd.tar.gz gentoo-143bb4cb09bb03b85cf82058234372ce73dc17bd.tar.bz2 gentoo-143bb4cb09bb03b85cf82058234372ce73dc17bd.zip |
dev-python/libcloud: bump to 3.3.0
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/libcloud')
-rw-r--r-- | dev-python/libcloud/Manifest | 1 | ||||
-rw-r--r-- | dev-python/libcloud/libcloud-3.3.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/libcloud/Manifest b/dev-python/libcloud/Manifest index 3211df6fc1b6..6b9df7a9af42 100644 --- a/dev-python/libcloud/Manifest +++ b/dev-python/libcloud/Manifest @@ -1 +1,2 @@ DIST apache-libcloud-3.1.0.tar.bz2 1613381 BLAKE2B afc607a76ff3cd24961cfaf916b5813cd59e84d523f9a642bb8222d889abb44d6357d230b001ae03a0b021160384d6c6d8420e85825aa8d84f7619e900c4c9b0 SHA512 ef2fc4754281adc336d656d3a707710feae0f6c22f33156830dd0b299d06fbf9b890817f68192106320944f851265c39f175b5fae5f85053706ec2f0ccd04bf1 +DIST apache-libcloud-3.3.0.tar.bz2 1811722 BLAKE2B bfdacdda6bb39b3782915d71db6d736caa8a1d57c5120dac9020a1c4923ab08bf8983916fcac15723139b073858efdf178aa797dd592d7534a0b6ff35f8fc5ae SHA512 286ddd79b14633ceb59e1a4b015760a1e525b0282f3039f16c2fa4de940005da5fbde1b8262027103ca91c9653baed22d61dd136ddcc2b6886687ad8b27f3ea8 diff --git a/dev-python/libcloud/libcloud-3.3.0.ebuild b/dev-python/libcloud/libcloud-3.3.0.ebuild new file mode 100644 index 000000000000..d1580f8c9439 --- /dev/null +++ b/dev-python/libcloud/libcloud-3.3.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_REQ_USE="ssl(+)" + +inherit distutils-r1 + +DESCRIPTION="Unified Interface to the Cloud - python support libs" +HOMEPAGE="https://libcloud.apache.org/" +SRC_URI="mirror://apache/${PN}/apache-${P}.tar.bz2" +S="${WORKDIR}/apache-${P}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND=">=dev-python/requests-2.5.0[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +BDEPEND+=" + test? ( + >=dev-python/cryptography-2.6.1[${PYTHON_USEDEP}] + dev-python/lockfile[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/requests-mock[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + if use examples; then + mkdir examples || die + mv example_*.py examples || die + fi + + # needed for tests + cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die + + # Needs network access + sed -i -e "s/test_list_nodes_invalid_region(self):/_&/" \ + libcloud/test/compute/test_ovh.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + use examples && dodoc -r examples + distutils-r1_python_install_all +} |