commit:     aa09f71c879fe132b8148b7ce2e500d8914094da
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 11 13:35:16 2021 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Jun 11 13:40:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa09f71c

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 <AT> gentoo.org>

 dev-python/pytest-verbose-parametrize/Manifest     |  1 +
 ...verbose-parametrize-1.7.0_collections-abc.patch |  8 +++++
 dev-python/pytest-verbose-parametrize/metadata.xml | 13 ++++++++
 .../pytest-verbose-parametrize-1.7.0.ebuild        | 35 ++++++++++++++++++++++
 4 files changed, 57 insertions(+)

diff --git a/dev-python/pytest-verbose-parametrize/Manifest 
b/dev-python/pytest-verbose-parametrize/Manifest
new file mode 100644
index 00000000000..c5d68a72892
--- /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 00000000000..f4b0720c360
--- /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 00000000000..3f5893e2c50
--- /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>[email protected]</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 00000000000..eca528e9161
--- /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

Reply via email to