diff options
-rw-r--r-- | dev-python/docker-py/Manifest | 1 | ||||
-rw-r--r-- | dev-python/docker-py/docker-py-2.3.0.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/docker-py/Manifest b/dev-python/docker-py/Manifest index 900bdce0063a..143d7db87518 100644 --- a/dev-python/docker-py/Manifest +++ b/dev-python/docker-py/Manifest @@ -2,3 +2,4 @@ DIST docker-py-1.10.6.tar.gz 122462 SHA256 dd1aa55dbe507538318e51e5303077d146d51 DIST docker-py-1.2.2.tar.gz 69685 SHA256 85284a5b1a965e01a5d0a91f9f639ad5069143a276c123198fdafc3659280b38 SHA512 bf00b19e0ab56e5c0e8459234d09722ca504ecd933bfba61cb4ab4805410f53f6ad6083f2e964ef5a6eded2ea05aa01a89c27621064386bae145c7258ed996ad WHIRLPOOL bd7ff4579f924e02d18581b1aca00790dcb84afda03e4cde70b349bfdb4ad43aa2e06da2bcbe780f6074d98f9af9b14fb9d2ab4da9265e56b73288902c9ede7a DIST docker-py-2.1.0.tar.gz 172299 SHA256 6eb64263708846390fbd204b55287b612ed6738c3fea9315c0008a027b8edfbf SHA512 053ae0110046d83be0b2b5b33ee84718f995455c650282202d49c9d6806b1d351021344b751f22d29781ab5b2fe9411849dea1da8de231659e657fc10c4d9747 WHIRLPOOL beae0995d3d9061f997cb8a7a65a5d5d18ace3cb3fabdfee6d35826141992d14f7f7b3be8bfccbbf0c4d8480282b0c878d1c5372ce73d6b7a4a5c66eb17dd8d1 DIST docker-py-2.2.1.tar.gz 174907 SHA256 b84cda631daeaad532143b439af0235923647ed30da5fc4427e6929a637af122 SHA512 9eda776d0055587e68a8933969d0b540c6439dd26fe4dfc13ee50c46ccf55294c130d625f235a74bb48bc58aff93e0371b79cfeb971588e9f7d745a3b6930dc5 WHIRLPOOL 3e0b80cd2af690ed47010bd6cdc68b01b6e4e0d294f49326e3e51d6ab38c0d0fd159fea3d1e44b1f8ab31f591b33c136064b68aa471dadd66a693105bba55a1a +DIST docker-py-2.3.0.tar.gz 177920 SHA256 56ca8acbe7f7e9cffbfc8e1a2a256ec0fbe322130b1d1ba432865c707fc9f33f SHA512 61800bfb9377abb6d59cf394902f98f51b374b3752e6c151b801d014090801559b6bb64e1da9081a2516076bbc41a47987013a1e98fa37771cf5e97f26f2737d WHIRLPOOL b5e0d89dc70b2944dbfb1cba7c324c80c0655276c5ad27e4c5590170481201248934c99f044473648dd81d4ae866ed267704b33778c9a4d5a69bcadd3acaf378 diff --git a/dev-python/docker-py/docker-py-2.3.0.ebuild b/dev-python/docker-py/docker-py-2.3.0.ebuild new file mode 100644 index 000000000000..1e772e7721ca --- /dev/null +++ b/dev-python/docker-py/docker-py-2.3.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +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" +IUSE="doc test" + +RDEPEND=" + >=dev-python/docker-pycreds-0.2.1[${PYTHON_USEDEP}] + !~dev-python/requests-2.12.2[${PYTHON_USEDEP}] + >=dev-python/requests-2.11.1[${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' 'python3_4' ) + $(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' 'python2_7' ) +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/mock-1.0.1[${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_prepare_all() { + sed -i -e "s/import pip//" -e "s/if 'docker-py'.*/if False:/" setup.py || die + distutils-r1_python_prepare_all +} + +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}" +} |