mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 09:26:58 +02:00
dev-python/pylint: Sync with gentoo
It's from gentoo commit 835d89072eb5bb67e4967bc5b32bec67d21c2d9a.
This commit is contained in:
parent
e75eb385b1
commit
02e6e2ee41
@ -1,5 +1,4 @@
|
||||
DIST pylint-1.4.4.tar.gz 342461 SHA256 0561af4d6bd4fa9e8e02f3997fe93684f7187c57bcef9db8c2ea9fb0d7d2f022 SHA512 bcbf5439628a071055cea441455f6c0fe0cbfae2617c473bc376b880421f17f78653901d7cf49950653436a0991a3bafbc2df15744ff24a3b059de53e518b331 WHIRLPOOL 9b8f5384691f5e762bfd7313691783e0b1a9148effec0b29f2e538f587dfa03f57413817589f8fc3f152c05330b7f39c8ede27720ff6ad12496f9101d824fedf
|
||||
DIST pylint-1.5.6.tar.gz 425251 SHA256 303bdd755048feec2c1fe1ea16e8f4306636f02845510ff3d5922ae2d6fe35cc SHA512 569a747a0d2c4f60ff2c16af6117f501fa1a9a6546fcc1228909b23024e2bc05951985acf56249919b67b11f161cb1855321115ad9fd7a7c409b71faa5dd8278 WHIRLPOOL 286e32ae39dfc3ce8d13efb9e9acec98db698f742bf399ccd6d7e053a2bdb1b7ea30b36a10a65fa4867bb6316da08c1181c5f0f0f39b0a920ddc3cf60e85f462
|
||||
DIST pylint-1.6.5.tar.gz 465578 SHA256 a673984a8dd78e4a8b8cfdee5359a1309d833cf38405008f4a249994a8456719 SHA512 2fac352dc752b37f1ce4f7fefe5afbbc880d7e6c38f164d1c50734716af1dd6fe31f7d41e145a8256837d5a63b1989efec40c169fc14840cf8eb4e18d9bb2410 WHIRLPOOL 55201c238f9a6ba473d038ea1739bfb9b1e8183685bf5630405d436df1a0843642a354af698d1b585752c53e270fc4bd2d4d56d509c5d7acf5271a8fd1447eb3
|
||||
DIST pylint-1.7.1.tar.gz 489108 SHA256 8b4a7ab6cf5062e40e2763c0b4a596020abada1d7304e369578b522e46a6264a SHA512 e0efbaad3ca3205a2e2e1e4bc444e635540db12e139e008ff2ca8b454dd117488e767f070126074389d6d82c17622da747b9a948711225246877fed69ac81148 WHIRLPOOL 0f041bce357b68d2bd48fd51d6dc3cf7336a51160cf96771bfea059835e9ee1f535d0a19fc5876308040d5d16ef113b464a90b21d4109f11a77ef65da29425a5
|
||||
DIST pylint-1.7.2.tar.gz 488628 SHA256 ea6afb93a9ed810cf52ff3838eb3a15e2bf6a81b80de0eaede1ce442caa5ca69 SHA512 268f141f017fa4df6024596bcf1dfb32a578e9459864e2ace8c2725c8f5e117e0b01d9d745f1632bb43102a01f7075dc3fb69b839b79371f7df47740a56fc1cb WHIRLPOOL afe7fea97b32669012d85bf3797a8fb93b93c42f41ebd244c8c783245c5b3674fcbbb9ce43eff2110e74ad4d87f92bbf7877dbd7fd471b4b16595536efe5254c
|
||||
DIST pylint-2.8.2.gh.tar.gz 734667 BLAKE2B 1525273298f39163de4db7946a749768cb9bcf7e11f89791944ccb5fb8d0918eedfc80d5e559d33934d468dd5781d4cb4921b9407daf2842613a8e3ba7d134e0 SHA512 7023603668f540ecc0b35f3289377855c4c0df01e04a9af255f5c8031f568f6b76508bb3a7f0aba8e76a86b63eae423908c30f47258d6dee46bb23320c952701
|
||||
DIST pylint-2.9.0.gh.tar.gz 768301 BLAKE2B a86ccb83d3155acee0165dc7b0095f5b7741c62e7b1f127349eef643cd1d0513ed2f5aaa89d78728806f03b08645ed1579aafb073d649e928d4c415e50dc8a49 SHA512 b524a3d3241702c1fc34ca9ee38815d02e7f4572d8ff3c132141ac7d9c7ff59f88995b92ccfcf18fd57e04be8f24571ef0ab99e6b4ce615f0f6957022d1d1467
|
||||
DIST pylint-2.9.1.gh.tar.gz 769124 BLAKE2B feabb520c22722df73471e87e05f22f0fb937113c9d02e39bf4e2554479c58a5044afe565c107e9478d868284b8875fec65b976633dddb4bc9d7748b35640218 SHA512 7aea388c6e62fd53e6775a4732da87269f3df22f995241621eb9b8d72c8573b6a4fa9545b1553db91f09eee013bd695e075d69c35436b05623576f13f1317cb6
|
||||
DIST pylint-2.9.3.gh.tar.gz 770364 BLAKE2B 3892286ffbd79b417c6decba44bce97f45192299ac8e2ec0e24770b2dd6cf1c28bac790626a478d47a6124ec0470ea9fc0d4230c5a1e807532852844445bb95a SHA512 45c037b970b66254b54a4810a5609dc098b5493d409826333e6a75f9ff0fc02921162711d88c45fd2f437e6521f639c33b25b714830a977c501612ee497501bb
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/doc/conf.py b/doc/conf.py
|
||||
index 906f0315..caca0c0c 100644
|
||||
--- a/doc/conf.py
|
||||
+++ b/doc/conf.py
|
||||
@@ -100,7 +100,7 @@ pygments_style = "sphinx"
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
-html_theme = "python_docs_theme"
|
||||
+html_theme = "nature"
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
@ -1,19 +1,22 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">Pylint is a Python source code analyzer which looks for programming
|
||||
errors, helps enforcing a coding standard and sniffs for some code
|
||||
smells (as defined in Martin Fowler's Refactoring book).
|
||||
Pylint can be seen as another PyChecker since nearly all tests you can
|
||||
do with PyChecker can also be done with Pylint. However, Pylint offers
|
||||
some more features, like checking length of lines of code, checking if
|
||||
variable names are well-formed according to your coding standard, or
|
||||
checking if declared interfaces are truly implemented, and much more.
|
||||
Additionally, it is possible to write plugins to add your own checks.</longdescription>
|
||||
<longdescription lang="en">
|
||||
Pylint is a Python source code analyzer which looks for programming errors,
|
||||
helps enforcing a coding standard and sniffs for some code smells (as
|
||||
defined in Martin Fowler's Refactoring book). Pylint can be seen as
|
||||
another PyChecker since nearly all tests you can do with PyChecker can also
|
||||
be done with Pylint. However, Pylint offers some more features, like
|
||||
checking length of lines of code, checking if variable names are
|
||||
well-formed according to your coding standard, or checking if declared
|
||||
interfaces are truly implemented, and much more. Additionally, it is
|
||||
possible to write plugins to add your own checks.
|
||||
</longdescription>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pylint</remote-id>
|
||||
<remote-id type="github">pycqa/pylint</remote-id>
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
RESTRICT="test" # needs pygtk
|
||||
|
||||
DESCRIPTION="Python code static checker"
|
||||
HOMEPAGE="http://www.logilab.org/project/pylint https://pypi.python.org/pypi/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/logilab-common-0.53.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-1.3.6[${PYTHON_USEDEP}]
|
||||
<dev-python/astroid-1.4[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND} )"
|
||||
|
||||
# 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() {
|
||||
# Test suite appears not to work under Python 3.
|
||||
# https://bitbucket.org/logilab/pylint/issue/240/
|
||||
local msg="Test suite broken with ${EPYTHON}"
|
||||
if python_is_python3; then
|
||||
einfo "${msg}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
pytest || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
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.
|
||||
elog "pylint-gui script requires dev-lang/python with \"tk\" USE flag enabled."
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} 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]
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} 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 ~x86"
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/astroid-1.4.5[${PYTHON_USEDEP}]
|
||||
<dev-python/astroid-1.5.0[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
dev-python/mccabe
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]
|
||||
dev-python/configparser[${PYTHON_USEDEP}]' python2_7)"
|
||||
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() {
|
||||
${EPYTHON} \
|
||||
-m unittest discover \
|
||||
-s pylint/test/ -p "*test_*".py \
|
||||
--verbose || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
doman man/{pylint,pyreverse}.1
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
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]
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} 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/six[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
dev-python/mccabe"
|
||||
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() {
|
||||
${EPYTHON} \
|
||||
-m unittest discover \
|
||||
-s pylint/test/ -p "*test_*".py \
|
||||
--verbose || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
doman man/{pylint,pyreverse}.1
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
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]
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} 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 ~x86"
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/astroid-1.5.1[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
dev-python/mccabe[${PYTHON_USEDEP}]
|
||||
virtual/python-singledispatch[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]
|
||||
dev-python/configparser[${PYTHON_USEDEP}]' -2)"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# remove unused dep
|
||||
sed -i -e '/pytest-runner/d' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
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() {
|
||||
py.test -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
doman man/{pylint,pyreverse}.1
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
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]'
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} 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 ~arm64 ~ia64 ~ppc ~x86 ~amd64-linux"
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/astroid-1.5.1[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
dev-python/mccabe[${PYTHON_USEDEP}]
|
||||
virtual/python-singledispatch[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]
|
||||
dev-python/configparser[${PYTHON_USEDEP}]' -2)"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# remove unused dep
|
||||
sed -i -e '/pytest-runner/d' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
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() {
|
||||
py.test -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
doman man/{pylint,pyreverse}.1
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
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]'
|
||||
}
|
67
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.8.2.ebuild
vendored
Normal file
67
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.8.2.ebuild
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python code static checker"
|
||||
HOMEPAGE="https://www.logilab.org/project/pylint
|
||||
https://pypi.org/project/pylint/
|
||||
https://github.com/pycqa/pylint/"
|
||||
SRC_URI="
|
||||
https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/astroid-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-2.5.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/mccabe-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc --no-autodoc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
|
||||
python_test() {
|
||||
local skipped_tests=(
|
||||
# No need to run the benchmarks
|
||||
tests/benchmark/test_baseline_benchmarks.py
|
||||
# Fails when graphviz is installed (?!)
|
||||
tests/test_import_graph.py::test_missing_graphviz
|
||||
# TODO
|
||||
'tests/lint/unittest_expand_modules.py::test_expand_modules[files_or_modules1-expected1]'
|
||||
)
|
||||
# Specify the test directory explicitly to avoid import file mismatches
|
||||
epytest tests ${skipped_tests[@]/#/--deselect }
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples ; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
61
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.9.0.ebuild
vendored
Normal file
61
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.9.0.ebuild
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python code static checker"
|
||||
HOMEPAGE="https://www.logilab.org/project/pylint
|
||||
https://pypi.org/project/pylint/
|
||||
https://github.com/pycqa/pylint/"
|
||||
SRC_URI="
|
||||
https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/astroid-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-2.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/mccabe-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc --no-autodoc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local skipped_tests=(
|
||||
# No need to run the benchmarks
|
||||
tests/benchmark/test_baseline_benchmarks.py
|
||||
# Fails when graphviz is installed (?!)
|
||||
# tests/test_import_graph.py::test_missing_graphviz
|
||||
# TODO
|
||||
# 'tests/lint/unittest_expand_modules.py::test_expand_modules[files_or_modules1-expected1]'
|
||||
)
|
||||
# Specify the test directory explicitly to avoid import file mismatches
|
||||
epytest tests ${skipped_tests[@]/#/--deselect }
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples ; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
57
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.9.1.ebuild
vendored
Normal file
57
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.9.1.ebuild
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python code static checker"
|
||||
HOMEPAGE="https://www.logilab.org/project/pylint
|
||||
https://pypi.org/project/pylint/
|
||||
https://github.com/pycqa/pylint/"
|
||||
SRC_URI="
|
||||
https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/astroid-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-2.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/mccabe-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc --no-autodoc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local skipped_tests=(
|
||||
# No need to run the benchmarks
|
||||
tests/benchmark/test_baseline_benchmarks.py
|
||||
)
|
||||
# Specify the test directory explicitly to avoid import file mismatches
|
||||
epytest tests ${skipped_tests[@]/#/--deselect }
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples ; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
57
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.9.3.ebuild
vendored
Normal file
57
sdk_container/src/third_party/portage-stable/dev-python/pylint/pylint-2.9.3.ebuild
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python code static checker"
|
||||
HOMEPAGE="https://www.logilab.org/project/pylint
|
||||
https://pypi.org/project/pylint/
|
||||
https://github.com/pycqa/pylint/"
|
||||
SRC_URI="
|
||||
https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/astroid-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-2.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/mccabe-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc --no-autodoc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local skipped_tests=(
|
||||
# No need to run the benchmarks
|
||||
tests/benchmark/test_baseline_benchmarks.py
|
||||
)
|
||||
# Specify the test directory explicitly to avoid import file mismatches
|
||||
epytest tests ${skipped_tests[@]/#/--deselect }
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples ; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
Loading…
Reference in New Issue
Block a user