summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-10-01 10:55:51 -0700
committerZac Medico <zmedico@gentoo.org>2018-10-01 11:10:43 -0700
commit39cf4109c3cf9b47d5afa694d128323edbdbd090 (patch)
tree2cf724a01c8da60d2af7946327181bf4a459d20e /dev-python
parentdev-python/jinja2_pluralize: new package (diff)
downloadgentoo-39cf4109c3cf9b47d5afa694d128323edbdbd090.tar.gz
gentoo-39cf4109c3cf9b47d5afa694d128323edbdbd090.tar.bz2
gentoo-39cf4109c3cf9b47d5afa694d128323edbdbd090.zip
dev-python/diff-cover: new package
Signed-off-by: Zac Medico <zmedico@gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.10
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/diff-cover/Manifest1
-rw-r--r--dev-python/diff-cover/diff-cover-1.0.4.ebuild37
-rw-r--r--dev-python/diff-cover/metadata.xml12
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/diff-cover/Manifest b/dev-python/diff-cover/Manifest
new file mode 100644
index 000000000000..bf2d36b91534
--- /dev/null
+++ b/dev-python/diff-cover/Manifest
@@ -0,0 +1 @@
+DIST diff-cover-1.0.4.tar.gz 73907 BLAKE2B 81562c30533739f950e52703ce235b214f66932f806a47b1ab245b69bba8ef46d4333924ddf2ba4ca6b70a7df85ae071805a4fac7181711495f46540c4a20301 SHA512 aa5646c5d097e2b3ace5807bde007c9d8ebcf99578dee2aff1174aaafbdb9777c4794a8e9ddd4dc6edb5af7f1afc812fce4410db87d0bab4159f044489eabb5b
diff --git a/dev-python/diff-cover/diff-cover-1.0.4.ebuild b/dev-python/diff-cover/diff-cover-1.0.4.ebuild
new file mode 100644
index 000000000000..dfca39bedb15
--- /dev/null
+++ b/dev-python/diff-cover/diff-cover-1.0.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
+
+inherit distutils-r1
+
+DESCRIPTION="Automatically find diff lines that need test coverage"
+HOMEPAGE="https://github.com/Bachmann1234/diff-cover"
+SRC_URI="https://github.com/Bachmann1234/diff-cover/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/jinja-2.7.1[${PYTHON_USEDEP}]
+ dev-python/jinja2_pluralize[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/flake8[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ <dev-python/pycodestyle-2.4.0[${PYTHON_USEDEP}]
+ dev-python/pyflakes[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ esetup.py test || die "tests failed with ${EPYTHON}"
+}
diff --git a/dev-python/diff-cover/metadata.xml b/dev-python/diff-cover/metadata.xml
new file mode 100644
index 000000000000..f185cd57cab7
--- /dev/null
+++ b/dev-python/diff-cover/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">diff_cover</remote-id>
+ <remote-id type="github">Bachmann1234/diff-cover</remote-id>
+ </upstream>
+</pkgmetadata>