From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/pylama/Manifest | 1 + dev-python/pylama/metadata.xml | 13 ++++++++++ dev-python/pylama/pylama-7.7.1.ebuild | 47 +++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 dev-python/pylama/Manifest create mode 100644 dev-python/pylama/metadata.xml create mode 100644 dev-python/pylama/pylama-7.7.1.ebuild (limited to 'dev-python/pylama') diff --git a/dev-python/pylama/Manifest b/dev-python/pylama/Manifest new file mode 100644 index 000000000000..6964008e2ec4 --- /dev/null +++ b/dev-python/pylama/Manifest @@ -0,0 +1 @@ +DIST pylama-7.7.1.tar.gz 34740 BLAKE2B a4bd5aed40c2c4e7bdb9f9968030f0954f0309cff80567b2252ee9576fdb4598714286bda63c22676789d4919662430ef2729089faa70b5cb590784eb47ef1f0 SHA512 298fabffcdf38e3e868e3965de87a0e761bc9dfcfe33320b53057c4e05598bcc22045481ec16ccb8df27f49ea41d6fef82b69fe7327905f93ce74d9350682cf0 diff --git a/dev-python/pylama/metadata.xml b/dev-python/pylama/metadata.xml new file mode 100644 index 000000000000..f3fc52ec9acb --- /dev/null +++ b/dev-python/pylama/metadata.xml @@ -0,0 +1,13 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + pylama + klen/pylama + + gentoo-staging + diff --git a/dev-python/pylama/pylama-7.7.1.ebuild b/dev-python/pylama/pylama-7.7.1.ebuild new file mode 100644 index 000000000000..76978aea548b --- /dev/null +++ b/dev-python/pylama/pylama-7.7.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS="rdepend" + +inherit distutils-r1 + +DESCRIPTION="Code audit tool for python" +HOMEPAGE="https://github.com/klen/pylama" +SRC_URI="https://github.com/klen/pylama/archive/${PV}.tar.gz -> ${P}.tar.gz" +# pypi tarball excludes unit tests +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND=" + >=dev-python/mccabe-0.5.2[${PYTHON_USEDEP}] + dev-python/pycodestyle[${PYTHON_USEDEP}] + dev-python/pydocstyle[${PYTHON_USEDEP}] + dev-python/pyflakes[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/eradicate[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/radon[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + sed -e "s|exclude=\['plugins'\]|exclude=['plugins', 'tests']|" -i setup.py || die + sed -e 's|^\(def\) \(test_ignore_select\)|\1 _\2|' -i tests/test_config.py || die + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v tests || die "Tests failed with ${EPYTHON}" +} -- cgit v1.3