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.
53 lines
1.3 KiB
53 lines
1.3 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
9 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
|
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
MY_PN="${PN/-/.}"
|
||
|
DESCRIPTION="Additional functions used by other projects by developer jaraco"
|
||
|
HOMEPAGE="https://github.com/jaraco/jaraco.functools"
|
||
|
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
IUSE="doc test"
|
||
9 years ago
|
|
||
8 years ago
|
RDEPEND="
|
||
|
dev-python/more-itertools[${PYTHON_USEDEP}]
|
||
|
dev-python/six[${PYTHON_USEDEP}]
|
||
9 years ago
|
$(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)
|
||
|
"
|
||
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||
|
>=dev-python/setuptools_scm-1.9[${PYTHON_USEDEP}]
|
||
8 years ago
|
doc? (
|
||
|
dev-python/sphinx[${PYTHON_USEDEP}]
|
||
|
dev-python/rst-linker[${PYTHON_USEDEP}]
|
||
|
)
|
||
9 years ago
|
test? (
|
||
|
${RDEPEND}
|
||
|
>=dev-python/pytest-2.8[${PYTHON_USEDEP}]
|
||
|
dev-python/pytest-runner[${PYTHON_USEDEP}]
|
||
9 years ago
|
dev-python/backports-unittest-mock[${PYTHON_USEDEP}]
|
||
9 years ago
|
)
|
||
|
"
|
||
|
|
||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||
|
|
||
8 years ago
|
python_compile_all() {
|
||
|
use doc && esetup.py build_sphinx
|
||
9 years ago
|
}
|
||
|
|
||
|
python_test() {
|
||
|
PYTHONPATH=. py.test || die "tests failed with ${EPYTHON}"
|
||
|
}
|
||
8 years ago
|
|
||
|
python_install_all() {
|
||
|
use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
|
||
|
distutils-r1_python_install_all
|
||
|
}
|