diff options
author | Tim Harder <radhermit@gentoo.org> | 2017-08-23 06:04:45 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2017-08-23 06:07:36 -0400 |
commit | a17b47c220493542cfd4eb284eadefd10db80841 (patch) | |
tree | 872265ffb08323f4489ddc89af11912606049e09 | |
parent | dev-python/pyflakes: version bump to 1.6.0 (diff) | |
download | gentoo-a17b47c220493542cfd4eb284eadefd10db80841.tar.gz gentoo-a17b47c220493542cfd4eb284eadefd10db80841.tar.bz2 gentoo-a17b47c220493542cfd4eb284eadefd10db80841.zip |
dev-python/flake8: version bump to 3.4.1
-rw-r--r-- | dev-python/flake8/Manifest | 1 | ||||
-rw-r--r-- | dev-python/flake8/flake8-3.4.1.ebuild | 51 | ||||
-rw-r--r-- | dev-python/flake8/metadata.xml | 2 |
3 files changed, 53 insertions, 1 deletions
diff --git a/dev-python/flake8/Manifest b/dev-python/flake8/Manifest index c0ecd86c5cd0..ad2e72977627 100644 --- a/dev-python/flake8/Manifest +++ b/dev-python/flake8/Manifest @@ -3,3 +3,4 @@ DIST flake8-2.1.0.tar.gz 25010 SHA256 098ab7991067c08cfaa4716de20066d90f66dbc715 DIST flake8-2.2.5.tar.gz 28333 SHA256 285e8bd730c0b6fdfbe23c32d2936bffba401f23cab132e8722c68be80d6f182 SHA512 fe5e06d3a7699e3f348181108f1ab3ee9eb1f2b0422de582a172d3a4aed42a5cf839ef8a5b5b113da1e0c3c2b53ed7b43af1ca24314ea842d0d3d3735eba1dee WHIRLPOOL 6c1e737a760876d410fd116bf2b8104f932b6751b5970096ddadcead5937fba21772fb28c1addf8026eda5ec573eb07cd920e46fb711d79f46de559d229c8705 DIST flake8-2.5.4.tar.gz 81663 SHA256 cc1e58179f6cf10524c7bfdd378f5536d0a61497688517791639a5ecc867492f SHA512 31cbec556fc41361ac464d2547275e319ab663c907a4a8644113a2288a9f349bcfbec85197b6dfa13a7db9e82419f01e0f2abc84a347e133c144ea137e0daa28 WHIRLPOOL 2547b78092b1a85edd2a0d03d9e0bc31e7d3b7cb3958cf5dea9947377851a69d5c37f64c0d65a5d7e88ab9573597729adbe07ae758b0510e455b26bf62292f47 DIST flake8-3.3.0.tar.gz 134345 SHA256 b907a26dcf5580753d8f80f1be0ec1d5c45b719f7bac441120793d1a70b03f12 SHA512 53b3116765f9031c96a0442954f324fe3edaf63aff21f7cf340e47e724250928d6d9786473d2680b695969ef979a8bb6d4d2b39f1598b075dcace1b221a4c099 WHIRLPOOL 1a0f7e228cbfdde18957c43377fd5c07a280628ca75138e76ec295e5567c153e454543e534496ec9217e7ca0389208ae143c3396ca3798b65b0f2ce1d72bd68b +DIST flake8-3.4.1.tar.gz 137066 SHA256 c20044779ff848f67f89c56a0e4624c04298cd476e25253ac0c36f910a1a11d8 SHA512 42df8fa0cf6f4bb4f3e52143028dee14d51a645aef19a0bab05000fef577e5bea3cc29f961acb0c98d92b76e635fdd2f0d689e23663a6c14d435d0410be94c87 WHIRLPOOL 95be7a58b817d4a7b112104b6f561d3fd30837be6430582856aca6c56d3aff247ec2ae3f3dfc05e29c4ae5b4f0ef0a24a778b30e7813b90234c37c6956970a05 diff --git a/dev-python/flake8/flake8-3.4.1.ebuild b/dev-python/flake8/flake8-3.4.1.ebuild new file mode 100644 index 000000000000..f3111cc499fd --- /dev/null +++ b/dev-python/flake8/flake8-3.4.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="A wrapper around PyFlakes, pep8 & mccabe" +HOMEPAGE="https://gitlab.com/pycqa/flake8 https://pypi.python.org/pypi/flake8" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" + +# requires.txt inc. mccabe however that creates a circular dep +RDEPEND=" + >=dev-python/pyflakes-1.5.0[${PYTHON_USEDEP}] + <dev-python/pyflakes-1.6.0[${PYTHON_USEDEP}] + >=dev-python/pycodestyle-2.0.0[${PYTHON_USEDEP}] + <dev-python/pycodestyle-2.4.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'python2*' 'pypy*' ) + $(python_gen_cond_dep 'dev-python/configparser[${PYTHON_USEDEP}]' 'python2*' pypy ) +" +PDEPEND=" + >=dev-python/mccabe-0.6.0[${PYTHON_USEDEP}] + <dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${PDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Flake8 falsely assumes it needs pytest-runner unconditionally and will + # try to install it, causing sandbox violations. + sed -i -e "/setup_requires=\['pytest-runner'\],/d" setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/flake8/metadata.xml b/dev-python/flake8/metadata.xml index 89a46b901c48..ef6942e1e79d 100644 --- a/dev-python/flake8/metadata.xml +++ b/dev-python/flake8/metadata.xml @@ -7,6 +7,6 @@ </maintainer> <upstream> <remote-id type="pypi">flake8</remote-id> - <remote-id type="bitbucket">tarek/flake8</remote-id> + <remote-id type="gitlab">pycqa/flake8</remote-id> </upstream> </pkgmetadata> |