From cda211321f0200146a214a3edd6ea2d64dfb05f1 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 5 Aug 2024 20:23:39 +0000 Subject: Adding metadata --- dev-python/pycodestyle/pycodestyle-2.12.1.ebuild | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dev-python/pycodestyle/pycodestyle-2.12.1.ebuild (limited to 'dev-python/pycodestyle/pycodestyle-2.12.1.ebuild') diff --git a/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild b/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild new file mode 100644 index 000000000000..99da23fdd3cf --- /dev/null +++ b/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020-2024 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Python style guide checker (fka pep8)" +HOMEPAGE="https://pypi.org/project/pycodestyle/" +SRC_URI="https://github.com/PyCQA/pycodestyle/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --statistics pycodestyle.py || die + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --testsuite=testsuite || die + PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py --doctest -v || die + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} -- cgit v1.3