From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A56DB138330 for ; Tue, 6 Sep 2016 11:49:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C387E0851; Tue, 6 Sep 2016 11:49:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27A45E0851 for ; Tue, 6 Sep 2016 11:49:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7993B34058A for ; Tue, 6 Sep 2016 11:49:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5FEF52471 for ; Tue, 6 Sep 2016 11:49:48 +0000 (UTC) From: "Tobias Klausmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tobias Klausmann" Message-ID: <1473162521.63b8828cea0cd0ef0cd0579f7d0a8220b0b61352.klausman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycodestyle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pycodestyle/Manifest dev-python/pycodestyle/metadata.xml dev-python/pycodestyle/pycodestyle-2.0.0.ebuild X-VCS-Directories: dev-python/pycodestyle/ X-VCS-Committer: klausman X-VCS-Committer-Name: Tobias Klausmann X-VCS-Revision: 63b8828cea0cd0ef0cd0579f7d0a8220b0b61352 X-VCS-Branch: master Date: Tue, 6 Sep 2016 11:49:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 12881813-947b-41dd-a84d-a6fe4c8d05ae X-Archives-Hash: a2bbc7cf54b69b4cd25de2303743b7de commit: 63b8828cea0cd0ef0cd0579f7d0a8220b0b61352 Author: Tobias Klausmann gentoo org> AuthorDate: Tue Sep 6 11:48:41 2016 +0000 Commit: Tobias Klausmann gentoo org> CommitDate: Tue Sep 6 11:48:41 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63b8828c dev-python/pycodestyle: Initial addition to the tree This is the successor project to pep8 and will be needed for the upcoming bump of flake8. dev-python/pycodestyle/Manifest | 1 + dev-python/pycodestyle/metadata.xml | 9 ++++++ dev-python/pycodestyle/pycodestyle-2.0.0.ebuild | 38 +++++++++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/dev-python/pycodestyle/Manifest b/dev-python/pycodestyle/Manifest new file mode 100644 index 00000000..8ad2207 --- /dev/null +++ b/dev-python/pycodestyle/Manifest @@ -0,0 +1 @@ +DIST pycodestyle-2.0.0.tar.gz 81701 SHA256 37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7 SHA512 c003a75bb8873d8ec09cbaf7391c75ebd4739eeab518bbea03c8b2cdc18839773190352166ded78d32992adb56895ee1502003bca11b2d63676c10facb879ac8 WHIRLPOOL 3f162936ea03c8bcd2ba7adbcb77c3d8e44549090875719c888a9fbd86bb9cbf16d4378ffc1c2f28050253520aa86753172816429bc530bc074a2f8fd3e88613 diff --git a/dev-python/pycodestyle/metadata.xml b/dev-python/pycodestyle/metadata.xml new file mode 100644 index 00000000..639c1bc --- /dev/null +++ b/dev-python/pycodestyle/metadata.xml @@ -0,0 +1,9 @@ + + + + + klausman@gentoo.org + Tobias Klausmann + + + diff --git a/dev-python/pycodestyle/pycodestyle-2.0.0.ebuild b/dev-python/pycodestyle/pycodestyle-2.0.0.ebuild new file mode 100644 index 00000000..5edf905 --- /dev/null +++ b/dev-python/pycodestyle/pycodestyle-2.0.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Python style guide checker (fka pep8)" +HOMEPAGE="https://pypi.python.org/pypi/pycodestyle" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --statistics pycodestyle.py || die + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --testsuite=testsuite || die + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py --doctest -v || die + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +}