diff options
-rw-r--r-- | dev-python/mccabe/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mccabe/mccabe-0.5.3.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/mccabe/Manifest b/dev-python/mccabe/Manifest index a9299463e374..dc83c956aecc 100644 --- a/dev-python/mccabe/Manifest +++ b/dev-python/mccabe/Manifest @@ -3,3 +3,4 @@ DIST mccabe-0.3.1.tar.gz 7586 SHA256 5f7ea6fb3aa9afe146d07fd6d5cedf788747d8b0c29 DIST mccabe-0.3.tar.gz 6127 SHA256 3d8ca9bf65c5014f469180544d1dd5bb5b9df709aad6304f9c2e4370ae0a7b7c SHA512 3bb176d486de5e0d3de8db0bf923b4b03e5ad2fd82df079babd6e6551afe9077b956698ac335f23d340a16212d73c1c5ab5a3055d2788b7f81040f3cb0d1b4ee WHIRLPOOL bfa0480cca9cc082f60c20d07d6edac203c5e9144f2caf57576304dbf01c8a96b19e111f9e1abe5774a4de235729d69c3c89d4fddf8213f403568228e92f38f6 DIST mccabe-0.4.0.tar.gz 7916 SHA256 9a2b12ebd876e77c72e41ebf401cc2e7c5b566649d50105ca49822688642207b SHA512 4a7158a3a28eed0a98ae64b3a0394542f263c9b4e08fc31ad47b2317ba434b1002e13d40a9766e4e39ea798aa35e83a79b81936cebdaabdae582160f1780e1a2 WHIRLPOOL d3b1ce9613ababb86f54e392fb9a5b5e96de7226ce6a3d6fd1c72ae2985c2dfe27319851ddaf8140b3b4f92f1b44f02683b88a2237539d5495199b479b267303 DIST mccabe-0.5.2.tar.gz 8366 SHA256 3473f06c8b757bbb5cdf295099bf64032e5f7d6fe0ec2f97ee9b23cb0a435aff SHA512 08dbfadc4d270e5fe58492536a27d9008efd61c77aac817b2d77b9b4510cccb41e76e1e016ff1228ebe3ac6ea1cc6ce396601f6a692388e981ddba2549288e01 WHIRLPOOL 715242d4f242a1055b7e10abc3f03103bc221f3344682e0bdecb0e8eb7bdcd27812451c79ce68e4e3cdf8df7d514420acc31bf5aa0559ea41f17eb76a72c4b38 +DIST mccabe-0.5.3.tar.gz 8460 SHA256 16293af41e7242031afd73896fef6458f4cad38201d21e28f344fff50ae1c25e SHA512 c1985deb9c8067948430b553bf28b06e2db32c45e765b7d1733cfd4526c4829572240f809d0f661bc1ba593687d7c1596446d53bbef3a670aa1c4b3492076deb WHIRLPOOL 75414ff2a2ae82d88eb7513afa1a958a0fc13d154013e633bff42a581046c8d464dd3103aea22d73c1ba19bd89c2802f5c22e71878eaf5854da9266e0750d5b2 diff --git a/dev-python/mccabe/mccabe-0.5.3.ebuild b/dev-python/mccabe/mccabe-0.5.3.ebuild new file mode 100644 index 000000000000..4a9341208be7 --- /dev/null +++ b/dev-python/mccabe/mccabe-0.5.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="flake8 plugin: McCabe complexity checker" +HOMEPAGE="https://github.com/PyCQA/mccabe" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +LICENSE="MIT" +SLOT="0" + +RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_prepare_all() { + sed -i -e '/pytest-runner/d' setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v || die "Testing failed with ${EPYTHON}" +} |