diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-10-13 14:56:39 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-10-13 15:35:16 -0700 |
commit | eded67aa44f6297b1ef828b18b186d6f38990b88 (patch) | |
tree | db62995ce50599cd172b84a0d678a3801f63855d /dev-python/pylama | |
parent | dev-python/eradicate: new package (diff) | |
download | gentoo-eded67aa44f6297b1ef828b18b186d6f38990b88.tar.gz gentoo-eded67aa44f6297b1ef828b18b186d6f38990b88.tar.bz2 gentoo-eded67aa44f6297b1ef828b18b186d6f38990b88.zip |
dev-python/pylama: new package
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-python/pylama')
-rw-r--r-- | dev-python/pylama/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pylama/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pylama/pylama-7.6.5.ebuild | 36 |
3 files changed, 49 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <remote-id type="pypi">pylama</remote-id> + <remote-id type="github">klen/pylama</remote-id> + </upstream> +</pkgmetadata> 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}" +} |