diff options
author | Sebastian Pipping <sping@gentoo.org> | 2020-01-13 19:19:20 +0100 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2020-01-13 19:24:01 +0100 |
commit | abb1cee2b80995e42cb0a8f0a71040fffb18f63a (patch) | |
tree | 2da232253845b45114fbe9f7da6c9bf9c7ee8474 /dev-python/docker-py | |
parent | x11-libs/cairo: Port to EAPI=7 (diff) | |
download | gentoo-abb1cee2b80995e42cb0a8f0a71040fffb18f63a.tar.gz gentoo-abb1cee2b80995e42cb0a8f0a71040fffb18f63a.tar.bz2 gentoo-abb1cee2b80995e42cb0a8f0a71040fffb18f63a.zip |
dev-python/docker-py: 4.1.0 + EAPI 7
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Diffstat (limited to 'dev-python/docker-py')
-rw-r--r-- | dev-python/docker-py/Manifest | 1 | ||||
-rw-r--r-- | dev-python/docker-py/docker-py-4.1.0.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/docker-py/Manifest b/dev-python/docker-py/Manifest index 8cf9cdec8151..11ea3c8e59f1 100644 --- a/dev-python/docker-py/Manifest +++ b/dev-python/docker-py/Manifest @@ -2,3 +2,4 @@ DIST docker-py-2.7.0.tar.gz 196369 BLAKE2B dd181dbf32f5afda06e748cb49f15d5fc6ff4 DIST docker-py-3.6.0.tar.gz 213435 BLAKE2B 28301a508ef346373f8ac4033b697a71092c4162ba1be81bc69c513d1de700326a4e8ffcb1c015e20516aa1a09d31162d54182985eea3dc1dc23d6e79ef28fea SHA512 b32acb2585995c3c5bdef95ea4bbb6bcadba3b9fca81a3e637dc294b5dbd3823ee6c98236c4bb197373a96feafcaae665b9c64b805abd52e1ae27aa42079278d DIST docker-py-3.7.1.tar.gz 220882 BLAKE2B a7547d2989b3fc2dfc38dfffb909508b7a5b3f8ee6b0fc874a73d0cdfaa17fe28c971f5a226893a41d893e75b1b2e4c74da806996e85b097b3a85b2d8dadcfcb SHA512 0a89c5fc05423d913b1029390318d9cd4ca54a3b4df1e9a9f459e27fa114fd7b03047ff95f3ea2ef6bb2cb48c5f6fe712da11c940249d3b253aa3fe74b8b1c98 DIST docker-py-3.7.3.tar.gz 221311 BLAKE2B 6bdfc5cd53fccec6e060d08ebde845d373f961a8a418e3bfbeac79e736f64aa07807a4f2074d243765d10c0e4cc87c672d039cdefe4223ec1b33b56cf4ea31a9 SHA512 d3217361617f12e841bfa443c7ab4b44ca5f7ead8b40834919aad9043220efa7611a8bd18cbec6adc4d98f2551bfb169535e1eec904b90425648093c0d6a1722 +DIST docker-py-4.1.0.tar.gz 229336 BLAKE2B 8a2e0333e0e90399c0c4267c5b5205f3639077384e882e920a613e2d30d7ee915bdd549ec89a4c0e34646edbc6dea450ce63e45cf9cbc1efe0e26ff6ea5961db SHA512 25e236bd5b429846ed45f26a303af02bb679c526f45f188d8df74d79fcab116b41e52e3a85642babff94127ae977dab6cc93e53bb78aab7be038190e161d25be diff --git a/dev-python/docker-py/docker-py-4.1.0.ebuild b/dev-python/docker-py/docker-py-4.1.0.ebuild new file mode 100644 index 000000000000..ae65b322d32a --- /dev/null +++ b/dev-python/docker-py/docker-py-4.1.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{2_7,3_{6,7}} ) + +inherit distutils-r1 + +DESCRIPTION="Python client for Docker" +HOMEPAGE="https://github.com/docker/docker-py" +SRC_URI="https://github.com/docker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + !~dev-python/requests-2.18.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] + >=dev-python/six-1.4.0[${PYTHON_USEDEP}] + >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/backports-ssl-match-hostname-3.5[${PYTHON_USEDEP}]' 'python2_7' ) + $(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' 'python2_7' ) +" +DEPEND=" + test? ( + ${RDEPEND} + >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] + >=dev-python/paramiko-2.4.2[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + >=dev-python/pytest-2.9.1[${PYTHON_USEDEP}] + ) + doc? ( + dev-python/recommonmark[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.4.6[${PYTHON_USEDEP}] + ) +" + +python_compile_all() { + if use doc; then + sphinx-build docs html || die "docs failed to build" + HTML_DOCS=( html/. ) + fi +} + +python_test() { + py.test tests/unit/ || die "tests failed under ${EPYTHON}" +} |