diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-07-24 12:26:27 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-07-24 14:19:51 +0200 |
commit | 0c866a5083f2c58ec9b0181933a8a0c8e0786354 (patch) | |
tree | 8db04aa1509dc5a6f15ecc1d20f2d6bb36e343b6 /dev-python/tappy | |
parent | app-emulation/containerd: Propagate ~arm64 keyword from snapshots (diff) | |
download | gentoo-0c866a5083f2c58ec9b0181933a8a0c8e0786354.tar.gz gentoo-0c866a5083f2c58ec9b0181933a8a0c8e0786354.tar.bz2 gentoo-0c866a5083f2c58ec9b0181933a8a0c8e0786354.zip |
dev-python/tappy: Add new package, v2.4
Add the Python package for 'Test Anything Protocol (TAP) tools'.
This is needed for tests of dev-python/dbus-python.
Diffstat (limited to 'dev-python/tappy')
-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}" +} |