diff options
-rw-r--r-- | dev-python/tappy/Manifest | 1 | ||||
-rw-r--r-- | dev-python/tappy/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/tappy/tappy-2.4.ebuild | 36 |
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/tappy/Manifest b/dev-python/tappy/Manifest new file mode 100644 index 000000000000..002a652cb68a --- /dev/null +++ b/dev-python/tappy/Manifest @@ -0,0 +1 @@ +DIST tap.py-2.4.tar.gz 145440 BLAKE2B 1c6effe086c50cb8b11355db0439207330446a245c42420a948e1c3ff8caf917d9a76ea00f231199a5bd79e7396bcd2a904b764ffa1db611c57947274095a0b9 SHA512 7c843c40f0029bb122fdafec0f5416164b77fac69142c2308a6d815f2f409cddb33c5a08547409e278f06036e21cb2a53cbd3263c23f59c6618c12c201b8209c diff --git a/dev-python/tappy/metadata.xml b/dev-python/tappy/metadata.xml new file mode 100644 index 000000000000..2cf31a2dbdc0 --- /dev/null +++ b/dev-python/tappy/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <use> + <flag name='yaml'>Pull dependencies needed to support YAML + blocks associated with test results.</flag> + </use> + <upstream> + <remote-id type="github">python-tap/tappy</remote-id> + <remote-id type="pypi">tap.py</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/tappy/tappy-2.4.ebuild b/dev-python/tappy/tappy-2.4.ebuild new file mode 100644 index 000000000000..511030a45d85 --- /dev/null +++ b/dev-python/tappy/tappy-2.4.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) +inherit distutils-r1 + +MY_PN=tap.py +DESCRIPTION="Test Anything Protocol (TAP) tools" +HOMEPAGE="https://github.com/python-tap/tappy https://pypi.org/project/tap.py/" +SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test yaml" +RESTRICT="!test? ( test )" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + yaml? ( + dev-python/more-itertools[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/more-itertools[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + virtual/python-unittest-mock[${PYTHON_USEDEP}] + )" + +S=${WORKDIR}/${MY_PN}-${PV} + +python_test() { + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" +} |