From eded67aa44f6297b1ef828b18b186d6f38990b88 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 13 Oct 2018 14:56:39 -0700 Subject: dev-python/pylama: new package Signed-off-by: Zac Medico Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- dev-python/pylama/Manifest | 1 + dev-python/pylama/metadata.xml | 12 ++++++++++++ dev-python/pylama/pylama-7.6.5.ebuild | 36 +++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 dev-python/pylama/Manifest create mode 100644 dev-python/pylama/metadata.xml create mode 100644 dev-python/pylama/pylama-7.6.5.ebuild (limited to 'dev-python/pylama') diff --git a/dev-python/pylama/Manifest b/dev-python/pylama/Manifest new file mode 100644 index 000000000000..40d22231ecaa --- /dev/null +++ b/dev-python/pylama/Manifest @@ -0,0 +1 @@ +DIST pylama-7.6.5.tar.gz 33680 BLAKE2B a80d976a6a5e7903f3e4aa6b36777b6a938d52980232d1858bbd602d277bce4b058f8ad404e6dc6692e6950ff36d8e698ff0e3afa44c06334a6bdbe728f15cdd SHA512 0ce2438622cdb3e85fb70d4246cdcc29940181dce82a1a641f6b7900a13f09cba0f871038992019a2e1ccc720dcd6dd5e21786bd8a2df40479a34c500a80fab4 diff --git a/dev-python/pylama/metadata.xml b/dev-python/pylama/metadata.xml new file mode 100644 index 000000000000..15091e5bdcfa --- /dev/null +++ b/dev-python/pylama/metadata.xml @@ -0,0 +1,12 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + pylama + klen/pylama + + diff --git a/dev-python/pylama/pylama-7.6.5.ebuild b/dev-python/pylama/pylama-7.6.5.ebuild new file mode 100644 index 000000000000..13f07989b0dd --- /dev/null +++ b/dev-python/pylama/pylama-7.6.5.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +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 )" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/mccabe-0.5.2[${PYTHON_USEDEP}] + >=dev-python/pycodestyle-2.3.1[${PYTHON_USEDEP}] + >=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}] + >=dev-python/pyflakes-1.5.0[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + >=dev-python/eradicate-0.2[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/radon-1.4.2[${PYTHON_USEDEP}] + )" + +python_test() { + py.test -v test_pylama.py || die "tests failed with ${EPYTHON}" +} -- cgit v1.2.3-65-gdbad