dev-python/parver: Take to python@
authorMichał Górny <mgorny@gentoo.org>
Mon, 27 Apr 2020 06:02:28 +0000 (08:02 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 27 Apr 2020 07:18:23 +0000 (09:18 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/parver/files/parver-0.3-test.patch [new file with mode: 0644]
dev-python/parver/metadata.xml
dev-python/parver/parver-0.3.ebuild

diff --git a/dev-python/parver/files/parver-0.3-test.patch b/dev-python/parver/files/parver-0.3-test.patch
new file mode 100644 (file)
index 0000000..f062b31
--- /dev/null
@@ -0,0 +1,34 @@
+From 83c64f08ea95e40b3fa208c2743b8eaba3296a63 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Mon, 27 Apr 2020 08:25:18 +0200
+Subject: [PATCH] Suppress too_slow on test_parse_hypothesis
+
+The generator is apparently too slow on busy systems, so suppress
+the health check to avoid a test failure.
+---
+ tests/test_parse.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_parse.py b/tests/test_parse.py
+index 6d58379..43494e3 100644
+--- a/tests/test_parse.py
++++ b/tests/test_parse.py
+@@ -2,13 +2,14 @@
+ from __future__ import absolute_import, division, print_function
+ import pytest
+-from hypothesis import assume, given
++from hypothesis import assume, given, settings, HealthCheck
+ from parver import ParseError, Version
+ from .strategies import version_string, whitespace
++@settings(suppress_health_check=[HealthCheck.too_slow])
+ @given(whitespace, version_string(), whitespace)
+ def test_parse_hypothesis(prefix, version, suffix):
+     Version.parse(prefix + version + suffix)
+-- 
+2.26.2
+
index a6935c9d0853042a015edd4e09689c63ca7b3991..85a7736752b3e9e616b7031421c6a78fbc2b3839 100644 (file)
@@ -1,11 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-       <!-- maintainer-needed -->
+       <maintainer type="project">
+               <email>python@gentoo.org</email>
+               <name>Python</name>
+       </maintainer>
        <upstream>
                <remote-id type="github">RazerM/parver</remote-id>
                <doc>https://parver.readthedocs.io/en/latest/</doc>
                <bugs-to>https://github.com/RazerM/parver/issues</bugs-to>
        </upstream>
 </pkgmetadata>
-
index 0b21ac219bb8b64cab74afd4feb2c8bd7550fd5a..d2af95d88e83d6017445fd3c07d5e7a7b6a0f548 100644 (file)
@@ -29,6 +29,11 @@ DEPEND="
 
 distutils_enable_tests pytest
 
+PATCHES=(
+       # https://github.com/RazerM/parver/pull/6
+       "${FILESDIR}"/${P}-test.patch
+)
+
 src_prepare() {
        # unlock dependencies
        sed -i -e 's:~=:>=:g' setup.py || die