diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-06-11 14:35:16 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-06-11 14:40:02 +0100 |
commit | aa09f71c879fe132b8148b7ce2e500d8914094da (patch) | |
tree | 6a0d47afe09ec3b92008a33460413cbe6a9bc230 /dev-python/pytest-verbose-parametrize | |
parent | dev-python/cerberus: tag as ALLARCH in metadata (diff) | |
download | gentoo-aa09f71c879fe132b8148b7ce2e500d8914094da.tar.gz gentoo-aa09f71c879fe132b8148b7ce2e500d8914094da.tar.bz2 gentoo-aa09f71c879fe132b8148b7ce2e500d8914094da.zip |
dev-python/pytest-verbose-parametrize: initial import
The test suite doesn't work properly (even when run manually) but fails
in exactly the same way for all three supported Python implementations.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/pytest-verbose-parametrize')
4 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/pytest-verbose-parametrize/Manifest b/dev-python/pytest-verbose-parametrize/Manifest new file mode 100644 index 000000000000..c5d68a728927 --- /dev/null +++ b/dev-python/pytest-verbose-parametrize/Manifest @@ -0,0 +1 @@ +DIST pytest-verbose-parametrize-1.7.0.tar.gz 12301 BLAKE2B 908d8c9d82861783931dc25c6b522e13f252e4b04e01a2f6a0e646cd63720816242ef143041abf0aa6b67fb574d5f84d05029edd11e589728b0e5b63f92f898e SHA512 ac81cdf002d60b4af916c4beb4c832c9c39dc9dcfa3eea7385b093f9ea18391cbf968a4e908abdb23523a7cb1e294dce2017083414e61eef6762f157319e2cf4 diff --git a/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch b/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch new file mode 100644 index 000000000000..f4b0720c3600 --- /dev/null +++ b/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch @@ -0,0 +1,8 @@ +--- a/pytest_verbose_parametrize.py ++++ b/pytest_verbose_parametrize.py +@@ -1,4 +1,4 @@ +-from collections import Iterable ++from collections.abc import Iterable + from six import string_types, text_type + + diff --git a/dev-python/pytest-verbose-parametrize/metadata.xml b/dev-python/pytest-verbose-parametrize/metadata.xml new file mode 100644 index 000000000000..3f5893e2c50b --- /dev/null +++ b/dev-python/pytest-verbose-parametrize/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="github">man-group/pytest-plugins</remote-id> + <remote-id type="pypi">pytest-verbose-parametrize</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0.ebuild b/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0.ebuild new file mode 100644 index 000000000000..eca528e91615 --- /dev/null +++ b/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="More descriptive parametrized-test IDs for py.test" +HOMEPAGE="https://github.com/man-group/pytest-plugins https://pypi.org/project/pytest-verbose-parametrize/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +# The test suite is borked, some of the tests are extremely sensitive to Python +# verbosity level whereas others act differently depending on whether the package +# has previously been installed or not. +RESTRICT="test" + +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +BDEPEND="test? ( + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-virtualenv[${PYTHON_USEDEP}] +)" + +PATCHES=( + "${FILESDIR}"/${PN}-1.7.0_collections-abc.patch +) + +distutils_enable_tests pytest |