diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-10-11 08:20:48 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-10-11 09:56:41 +0200 |
commit | 56fbbfe3b17356bc78ab5bb6744c0137b20cdbac (patch) | |
tree | bd2694a494e1732a343cd47d603b4654a9b33730 /dev-python/pycodestyle/pycodestyle-2.8.0.ebuild | |
parent | dev-python/flake8: Bump to 4.0.0 (diff) | |
download | gentoo-56fbbfe3b17356bc78ab5bb6744c0137b20cdbac.tar.gz gentoo-56fbbfe3b17356bc78ab5bb6744c0137b20cdbac.tar.bz2 gentoo-56fbbfe3b17356bc78ab5bb6744c0137b20cdbac.zip |
dev-python/pycodestyle: Bump to 2.8.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pycodestyle/pycodestyle-2.8.0.ebuild')
-rw-r--r-- | dev-python/pycodestyle/pycodestyle-2.8.0.ebuild | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-python/pycodestyle/pycodestyle-2.8.0.ebuild b/dev-python/pycodestyle/pycodestyle-2.8.0.ebuild new file mode 100644 index 000000000000..6396cfc0e67b --- /dev/null +++ b/dev-python/pycodestyle/pycodestyle-2.8.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( pypy3 python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Python style guide checker (fka pep8)" +HOMEPAGE="https://pypi.org/project/pycodestyle/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +distutils_enable_sphinx docs + +python_test() { + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --statistics pycodestyle.py || die + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --max-doc-length=72 --testsuite=testsuite || die + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py --doctest -v || die +} |