diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-02 11:03:02 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-02 11:03:02 +0200 |
commit | b3e5d7fbdf5e5cba3463154954dd78379f31c614 (patch) | |
tree | 2219adeeabff95d45951505ff2d75408e9897ae8 /dev-python | |
parent | dev-python/pytest-catchlog: Remove py2.7 (diff) | |
download | gentoo-b3e5d7fbdf5e5cba3463154954dd78379f31c614.tar.gz gentoo-b3e5d7fbdf5e5cba3463154954dd78379f31c614.tar.bz2 gentoo-b3e5d7fbdf5e5cba3463154954dd78379f31c614.zip |
dev-python/pep8: Recombine impls into a single ebuild
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pep8/pep8-1.7.1-r1.ebuild | 28 | ||||
-rw-r--r-- | dev-python/pep8/pep8-1.7.1.ebuild | 27 |
2 files changed, 9 insertions, 46 deletions
diff --git a/dev-python/pep8/pep8-1.7.1-r1.ebuild b/dev-python/pep8/pep8-1.7.1-r1.ebuild deleted file mode 100644 index 66396c091a91..000000000000 --- a/dev-python/pep8/pep8-1.7.1-r1.ebuild +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{7,8} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Python style guide checker" -HOMEPAGE="https://github.com/PyCQA/pep8 https://pypi.org/project/pep8/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme -distutils_enable_tests pytest - -python_prepare_all() { - # AssertionError: 7 is not false : 7 failure(s) - sed -i -e 's:test_checkers_testsuite:_&:' \ - testsuite/test_all.py || die - - distutils-r1_python_prepare_all -} diff --git a/dev-python/pep8/pep8-1.7.1.ebuild b/dev-python/pep8/pep8-1.7.1.ebuild index c7f91c06a173..b8c60182e655 100644 --- a/dev-python/pep8/pep8-1.7.1.ebuild +++ b/dev-python/pep8/pep8-1.7.1.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{6,7} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) inherit distutils-r1 @@ -15,23 +15,14 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="doc" -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +distutils_enable_tests pytest -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - PYTHONPATH="${S}" "${PYTHON}" pep8.py -v --statistics pep8.py || die - PYTHONPATH="${S}" "${PYTHON}" pep8.py -v --testsuite=testsuite || die - PYTHONPATH="${S}" "${PYTHON}" pep8.py --doctest -v || die - esetup.py test -} +python_prepare_all() { + # AssertionError: 7 is not false : 7 failure(s) + sed -i -e 's:test_checkers_testsuite:_&:' \ + testsuite/test_all.py || die -python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all + distutils-r1_python_prepare_all } |