diff options
author | Tobias Klausmann <klausman@gentoo.org> | 2016-09-06 13:56:02 +0200 |
---|---|---|
committer | Tobias Klausmann <klausman@gentoo.org> | 2016-09-06 13:56:02 +0200 |
commit | b6d547eeeac2ffcf92fb483e15a9c0a07e1290b7 (patch) | |
tree | 8197f27403f79e53d6185f97eca71b97ed77cfdf /dev-python/mccabe | |
parent | 63b8828cea0cd0ef0cd0579f7d0a8220b0b61352 (diff) | |
download | gentoo-b6d547eeeac2ffcf92fb483e15a9c0a07e1290b7.tar.gz gentoo-b6d547eeeac2ffcf92fb483e15a9c0a07e1290b7.tar.xz |
dev-python/{mccabe,flake8}: Version bump and fixes
This version of flake8 now depends on the recently-added pycodestyle.
Also, I changed the way the test suite is run to avoid a name collision.
Diffstat (limited to 'dev-python/mccabe')
-rw-r--r-- | dev-python/mccabe/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mccabe/mccabe-0.5.2.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/mccabe/Manifest b/dev-python/mccabe/Manifest index d0cd90999e1..a9299463e37 100644 --- a/dev-python/mccabe/Manifest +++ b/dev-python/mccabe/Manifest @@ -2,3 +2,4 @@ DIST mccabe-0.2.1.tar.gz 5031 SHA256 5a2a170e47de5593a6abfae1e9542bd2c3924ac62bb DIST mccabe-0.3.1.tar.gz 7586 SHA256 5f7ea6fb3aa9afe146d07fd6d5cedf788747d8b0c29e44732453c2b2db1e3d16 SHA512 83a5cb389343628b8a464f8f17452f116557735ed0a5f40411fe06f63af1f7c5ac4501fce2617a22fc7fb8395918deda2afba39728c1e72713930f14dddf08f9 WHIRLPOOL 2f8354395d9c291377ec8cac9f7911ffdeaf348f37ab7a0b3a87fb10ec0490e4e398963c02989de5240d54e1e4c34945fe15ad60c0b8605d5b8367f6efe7e72b 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 diff --git a/dev-python/mccabe/mccabe-0.5.2.ebuild b/dev-python/mccabe/mccabe-0.5.2.ebuild new file mode 100644 index 00000000000..343258f3401 --- /dev/null +++ b/dev-python/mccabe/mccabe-0.5.2.ebuild @@ -0,0 +1,31 @@ +# 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} ) + +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}" +} |