diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/pylint | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/pylint')
-rw-r--r-- | dev-python/pylint/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pylint/files/pylint-0.26.0-gtktest.patch | 32 | ||||
-rw-r--r-- | dev-python/pylint/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/pylint/pylint-0.25.2.ebuild | 55 | ||||
-rw-r--r-- | dev-python/pylint/pylint-1.4.0.ebuild | 60 | ||||
-rw-r--r-- | dev-python/pylint/pylint-1.4.1.ebuild | 60 | ||||
-rw-r--r-- | dev-python/pylint/pylint-1.4.3.ebuild | 60 | ||||
-rw-r--r-- | dev-python/pylint/pylint-1.4.4.ebuild | 60 |
8 files changed, 349 insertions, 0 deletions
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest new file mode 100644 index 000000000000..5ce8409977d3 --- /dev/null +++ b/dev-python/pylint/Manifest @@ -0,0 +1,5 @@ +DIST pylint-0.25.2.tar.gz 214769 SHA256 08c2a0ccf2d715cdc9a2a0478200c54aac5b4f6d521e10c5b27db65d5787ff07 SHA512 eea1a783ca52623fa2a026fe82939b8a5920b3b6be21b808388bb9336ba85aeded157198a436fcf3ab8735df6cfcf94c352b695db1131490dda2e26305be68d0 WHIRLPOOL b6a4595e14a350c9156ebb6fce3c9c35ada304f0c33659c55266534c4539f871102dfb6c601bd4e0b4a067a5695da28dcefda7e911d7d11325f4672b38dc7ecd +DIST pylint-1.4.0.tar.gz 331577 SHA256 816646b9d5fd0c33f9e3b009953c46727d22bec3e880712d69b39b1b630fa3ca SHA512 b221390076c337a9ef14ef848cfa911f4d0217d7a39a0b0ebc2b556974a33d44381e15746c117ef4b7dcd87acca45f07894aa2db4cf3fe2b70228d570b89725c WHIRLPOOL d71264f76c9c49e22b8943705b0169548d9c69413527583ec95613eb9d5419e6175169cc25c791de94588617f6ac567668036192317fdcc5020511fddab99f78 +DIST pylint-1.4.1.tar.gz 338636 SHA256 3e383060edd432cbbd0e8bd686f5facfe918047ffe1bb401ab5897cb6ee0f030 SHA512 019405c16ef731f83c12e2b0a7f4b3fc2e17f35df50a18dbbc084ed14450a070e689850b8d7761e2fba0d2a8f6c70ef06709de5b96e59af7da9cc6cc412bbf25 WHIRLPOOL ae88953c5c43960438abf87e3c730afda220afae697cc6fc985372ddf8b0f94c018850800f6001e93e6748eee25e59e1ded2211935f3e45b55f04833acd40fb0 +DIST pylint-1.4.3.tar.gz 342509 SHA256 1dce8c143a5aa15e0638887c2b395e2e823223c63ebaf8d5f432a99e44b29f60 SHA512 63af8c72496b88db967c61d5be2b974fca053a45425ea8b5898e941be135d26c8c004b91b8b3a98337c0c5af4f5a530afbf091d7c5ecfa36bfa36aef9f843a95 WHIRLPOOL 17b08712a00c01468ca466f2f83386275a304ab7a2c8a1d223eeda8e9fd4cc4753796a354250accad9f9fcbd0aaba3562ebc794af880e49889ee1b5b2d295d0c +DIST pylint-1.4.4.tar.gz 342461 SHA256 0561af4d6bd4fa9e8e02f3997fe93684f7187c57bcef9db8c2ea9fb0d7d2f022 SHA512 bcbf5439628a071055cea441455f6c0fe0cbfae2617c473bc376b880421f17f78653901d7cf49950653436a0991a3bafbc2df15744ff24a3b059de53e518b331 WHIRLPOOL 9b8f5384691f5e762bfd7313691783e0b1a9148effec0b29f2e538f587dfa03f57413817589f8fc3f152c05330b7f39c8ede27720ff6ad12496f9101d824fedf diff --git a/dev-python/pylint/files/pylint-0.26.0-gtktest.patch b/dev-python/pylint/files/pylint-0.26.0-gtktest.patch new file mode 100644 index 000000000000..c7e8ca39e621 --- /dev/null +++ b/dev-python/pylint/files/pylint-0.26.0-gtktest.patch @@ -0,0 +1,32 @@ +test_gtk_import can't connect to an X, decided by consensus to skip due to onerous +overhead required by virtualx eclass to see it pass. +diff -ur pylint-0.26.0.orig/test/test_regr.py pylint-0.26.0/test/test_regr.py +--- test/test_regr.py 2012-07-18 14:34:04.000000000 +0800 ++++ test/test_regr.py 2013-01-08 06:11:08.846289350 +0800 +@@ -75,16 +75,16 @@ + sys.path.pop(0) + os.chdir(cwd) + +- def test_gtk_import(self): +- try: +- import gtk +- except ImportError: +- self.skipTest('test skipped: gtk is not available') +- except RuntimeError: # RuntimeError when missing display +- self.skipTest('no display, can\'t run this test') +- linter.check(join(REGR_DATA, 'pygtk_import.py')) +- got = linter.reporter.finalize().strip() +- self.assertEqual(got, '') ++# def test_gtk_import(self): ++# try: ++# import gtk ++# except ImportError: ++# self.skipTest('test skipped: gtk is not available') ++# except RuntimeError: # RuntimeError when missing display ++# self.skipTest('no display, can\'t run this test') ++# linter.check(join(REGR_DATA, 'pygtk_import.py')) ++# got = linter.reporter.finalize().strip() ++# self.assertEqual(got, '') + + def test_numarray_inference(self): + try: diff --git a/dev-python/pylint/metadata.xml b/dev-python/pylint/metadata.xml new file mode 100644 index 000000000000..a108538b650b --- /dev/null +++ b/dev-python/pylint/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <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> + <upstream> + <remote-id type="pypi">pylint</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pylint/pylint-0.25.2.ebuild b/dev-python/pylint/pylint-0.25.2.ebuild new file mode 100644 index 000000000000..132a626e3c7c --- /dev/null +++ b/dev-python/pylint/pylint-0.25.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Python code static checker" +HOMEPAGE="http://www.logilab.org/project/pylint http://pypi.python.org/pypi/pylint" +SRC_URI="ftp://ftp.logilab.org/pub/${PN}/${P}.tar.gz 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="examples" + +# Versions specified in __pkginfo__.py. +RDEPEND=">=dev-python/logilab-common-0.53.0[${PYTHON_USEDEP}] + >=dev-python/astng-0.24.3[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +DISTUTILS_IN_SOURCE_BUILD=1 + +PATCHES=( "${FILESDIR}"/${PN}-0.26.0-gtktest.patch ) + +python_test() { + # Test suite broken with Python 3 + local msg="Test suite broken with ${EPYTHON}" + if [[ "${EPYTHON}" == python3* ]]; then + einfo "${msg}" + else + # https://bitbucket.org/logilab/pylint/issue/11/apparent-regression-in-testsuite-pylint + # This 'issue' became' declared fixed by accident for version 0.27.0 despite being made citing 0.28.0 + pytest || die "Tests failed under ${EPYTHON}" + fi +} + +python_install_all() { + distutils-r1_python_install_all + doman man/{pylint,pyreverse}.1 + + if use examples; then + docinto examples + dodoc examples/* + fi +} + +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." +} diff --git a/dev-python/pylint/pylint-1.4.0.ebuild b/dev-python/pylint/pylint-1.4.0.ebuild new file mode 100644 index 000000000000..bebe3317fa29 --- /dev/null +++ b/dev-python/pylint/pylint-1.4.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 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} pypy ) + +inherit distutils-r1 + +RESTRICT="test" # needs pygtk + +DESCRIPTION="Python code static checker" +HOMEPAGE="http://www.logilab.org/project/pylint http://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[${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 && emake -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." +} diff --git a/dev-python/pylint/pylint-1.4.1.ebuild b/dev-python/pylint/pylint-1.4.1.ebuild new file mode 100644 index 000000000000..258e6ef271fb --- /dev/null +++ b/dev-python/pylint/pylint-1.4.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 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} pypy ) + +inherit distutils-r1 + +RESTRICT="test" # needs pygtk + +DESCRIPTION="Python code static checker" +HOMEPAGE="http://www.logilab.org/project/pylint http://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.3[${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 && emake -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." +} diff --git a/dev-python/pylint/pylint-1.4.3.ebuild b/dev-python/pylint/pylint-1.4.3.ebuild new file mode 100644 index 000000000000..cd28321348a6 --- /dev/null +++ b/dev-python/pylint/pylint-1.4.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 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} pypy ) + +inherit distutils-r1 + +RESTRICT="test" # needs pygtk + +DESCRIPTION="Python code static checker" +HOMEPAGE="http://www.logilab.org/project/pylint http://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/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 && emake -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." +} diff --git a/dev-python/pylint/pylint-1.4.4.ebuild b/dev-python/pylint/pylint-1.4.4.ebuild new file mode 100644 index 000000000000..f62ca2c8ccd8 --- /dev/null +++ b/dev-python/pylint/pylint-1.4.4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 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} pypy ) + +inherit distutils-r1 + +RESTRICT="test" # needs pygtk + +DESCRIPTION="Python code static checker" +HOMEPAGE="http://www.logilab.org/project/pylint http://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/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." +} |