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 78453138350 for ; Sat, 4 Apr 2020 06:18:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5E4BE0B5D; Sat, 4 Apr 2020 06:18:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7EB08E0B5D for ; Sat, 4 Apr 2020 06:18:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6B3D434F0C7 for ; Sat, 4 Apr 2020 06:18:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E948198 for ; Sat, 4 Apr 2020 06:18:49 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1585981117.5a60ee36af706f59fb398fb8d9dc77c0294d8d0a.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pylama/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pylama/Manifest dev-python/pylama/pylama-7.7.1.ebuild X-VCS-Directories: dev-python/pylama/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 5a60ee36af706f59fb398fb8d9dc77c0294d8d0a X-VCS-Branch: master Date: Sat, 4 Apr 2020 06:18:49 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7fc0386a-6dd8-4d2b-b150-233d2285927c X-Archives-Hash: 2241f7e174604f1c16667cc1b279d52b commit: 5a60ee36af706f59fb398fb8d9dc77c0294d8d0a Author: Nils Freydank posteo de> AuthorDate: Wed Mar 25 15:54:13 2020 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Apr 4 06:18:37 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a60ee36 dev-python/pylama: Bump to 7.7.1 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Nils Freydank posteo.de> Signed-off-by: Zac Medico gentoo.org> dev-python/pylama/Manifest | 1 + dev-python/pylama/pylama-7.7.1.ebuild | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-python/pylama/Manifest b/dev-python/pylama/Manifest index 40d22231eca..3725fe8f84e 100644 --- a/dev-python/pylama/Manifest +++ b/dev-python/pylama/Manifest @@ -1 +1,2 @@ DIST pylama-7.6.5.tar.gz 33680 BLAKE2B a80d976a6a5e7903f3e4aa6b36777b6a938d52980232d1858bbd602d277bce4b058f8ad404e6dc6692e6950ff36d8e698ff0e3afa44c06334a6bdbe728f15cdd SHA512 0ce2438622cdb3e85fb70d4246cdcc29940181dce82a1a641f6b7900a13f09cba0f871038992019a2e1ccc720dcd6dd5e21786bd8a2df40479a34c500a80fab4 +DIST pylama-7.7.1.tar.gz 34740 BLAKE2B a4bd5aed40c2c4e7bdb9f9968030f0954f0309cff80567b2252ee9576fdb4598714286bda63c22676789d4919662430ef2729089faa70b5cb590784eb47ef1f0 SHA512 298fabffcdf38e3e868e3965de87a0e761bc9dfcfe33320b53057c4e05598bcc22045481ec16ccb8df27f49ea41d6fef82b69fe7327905f93ce74d9350682cf0 diff --git a/dev-python/pylama/pylama-7.7.1.ebuild b/dev-python/pylama/pylama-7.7.1.ebuild new file mode 100644 index 00000000000..76978aea548 --- /dev/null +++ b/dev-python/pylama/pylama-7.7.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS="rdepend" + +inherit distutils-r1 + +DESCRIPTION="Code audit tool for python" +HOMEPAGE="https://github.com/klen/pylama" +SRC_URI="https://github.com/klen/pylama/archive/${PV}.tar.gz -> ${P}.tar.gz" +# pypi tarball excludes unit tests +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND=" + >=dev-python/mccabe-0.5.2[${PYTHON_USEDEP}] + dev-python/pycodestyle[${PYTHON_USEDEP}] + dev-python/pydocstyle[${PYTHON_USEDEP}] + dev-python/pyflakes[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/eradicate[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/radon[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + sed -e "s|exclude=\['plugins'\]|exclude=['plugins', 'tests']|" -i setup.py || die + sed -e 's|^\(def\) \(test_ignore_select\)|\1 _\2|' -i tests/test_config.py || die + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v tests || die "Tests failed with ${EPYTHON}" +}