diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-04-04 20:49:16 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-04-04 20:49:16 +0200 |
commit | d0b6555ad31bba3795eee06e2a04a6c8abd1192d (patch) | |
tree | 814768cc91a5df4751ed7f9ee89e812725d863af /dev-python | |
parent | dev-lang/gdl: fix bad syntax preventing USE flag switches (diff) | |
download | gentoo-d0b6555ad31bba3795eee06e2a04a6c8abd1192d.tar.gz gentoo-d0b6555ad31bba3795eee06e2a04a6c8abd1192d.tar.bz2 gentoo-d0b6555ad31bba3795eee06e2a04a6c8abd1192d.zip |
dev-python/pylint: Restrict dep on astroid
Gentoo-Bug: #579034
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pylint/pylint-1.5.5-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/pylint/pylint-1.5.5-r1.ebuild b/dev-python/pylint/pylint-1.5.5-r1.ebuild new file mode 100644 index 000000000000..3a9da81a22f7 --- /dev/null +++ b/dev-python/pylint/pylint-1.5.5-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} pypy ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 eutils + +DESCRIPTION="Python code static checker" +HOMEPAGE=" + http://www.logilab.org/project/pylint + https://pypi.python.org/pypi/pylint + https://github.com/pycqa/pylint" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc examples test" + +RDEPEND=" + >=dev-python/astroid-1.4.5[${PYTHON_USEDEP}] + <dev-python/astroid-1.5.0[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( ${RDEPEND} )" + +RESTRICT="test" # multiple failures + +# Usual. Requ'd for impl specific failures in test phase +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + # selection of straight html triggers a trivial annoying bug, we skirt it + use doc && PYTHONPATH="${S}" emake -e -C doc singlehtml +} + +python_test() { + ${PYTHON} \ + -m unittest discover \ + -s pylint/test/ -p "*test_*".py \ + --verbose || die +} + +python_install_all() { + doman man/{pylint,pyreverse}.1 + use examples && local EXAMPLES=( examples/. ) + use doc && local HTML_DOCS=( doc/_build/singlehtml/. ) + distutils-r1_python_install_all +} + +pkg_postinst() { + # Optional dependency on "tk" USE flag would break support for Jython. + optfeature "pylint-gui script requires dev-lang/python with \"tk\" USE flag enabled." dev-lang/python[tk] +} |