You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
10 years ago
|
|
||
|
EAPI=5
|
||
|
PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
|
||
|
|
||
10 years ago
|
inherit distutils-r1 vcs-snapshot
|
||
10 years ago
|
|
||
10 years ago
|
DESCRIPTION="Python client for Docker"
|
||
10 years ago
|
HOMEPAGE="https://github.com/docker/docker-py"
|
||
9 years ago
|
SRC_URI="https://github.com/docker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
10 years ago
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
10 years ago
|
IUSE="doc test"
|
||
10 years ago
|
|
||
|
DEPEND="
|
||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||
9 years ago
|
doc? ( >=dev-python/mkdocs-0.14.0[${PYTHON_USEDEP}] )
|
||
10 years ago
|
test? (
|
||
9 years ago
|
~dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||
|
~dev-python/pytest-2.7.2[${PYTHON_USEDEP}]
|
||
|
~dev-python/pytest-cov-2.1.0[${PYTHON_USEDEP}]
|
||
10 years ago
|
)
|
||
10 years ago
|
"
|
||
|
RDEPEND="
|
||
10 years ago
|
>=dev-python/requests-2.5.2[${PYTHON_USEDEP}]
|
||
9 years ago
|
>=dev-python/six-1.4.0[${PYTHON_USEDEP}]
|
||
|
>=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]
|
||
10 years ago
|
"
|
||
|
|
||
10 years ago
|
python_compile_all() {
|
||
10 years ago
|
if use doc; then
|
||
9 years ago
|
mkdocs build -d 'mkdocs_site' || die "docs failed to build"
|
||
10 years ago
|
fi
|
||
10 years ago
|
}
|
||
|
|
||
10 years ago
|
python_test() {
|
||
9 years ago
|
py.test tests/unit/ | die "tests failed under ${EPYTHON}"
|
||
10 years ago
|
}
|
||
10 years ago
|
|
||
|
python_install_all() {
|
||
9 years ago
|
use doc && local HTML_DOCS=( mkdocs_site/. )
|
||
10 years ago
|
|
||
|
distutils-r1_python_install_all
|
||
|
}
|