1 |
commit: 8fd1c67a64012976b3cfecf7e744fb791d28d1a2 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 27 05:25:25 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 27 05:43:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fd1c67a |
7 |
|
8 |
dev-python/pytest-flakes: add 4.0.3, enable py3.10 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-flakes/Manifest | 1 + |
13 |
.../files/pytest-flakes-4.0.3-fix-py3.10.patch | 17 +++++++++++++++ |
14 |
.../pytest-flakes/pytest-flakes-4.0.3.ebuild | 25 ++++++++++++++++++++++ |
15 |
3 files changed, 43 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-flakes/Manifest b/dev-python/pytest-flakes/Manifest |
18 |
index 7e34bbf744c..c0f281a3b50 100644 |
19 |
--- a/dev-python/pytest-flakes/Manifest |
20 |
+++ b/dev-python/pytest-flakes/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pytest-flakes-4.0.2.tar.gz 7225 BLAKE2B 3a5ec59e3df90b6bf90daf5cf4abdf2946852a8e62a98ed08e5ba93c2e3f9e93699b2a4b571df45edac83e4c1791a5828b0bcca2a26a37b71f01d81bf3f0342f SHA512 bb1fc432e2494367849acedecba80495ede34c18dcf3ada09ef3dec8567d55f8dd6ba427bc3d9e47cfe3c0bb2aba80576612282d5a71858ccb45bce458f8656c |
23 |
+DIST pytest-flakes-4.0.3.tar.gz 7312 BLAKE2B cf62d7e11a0521592325492c76e67cd51384b31d8a6191f10940230014c9a8797b3603e24664c022add5cec18ff7c3b558cd7507af47e8c90a9e90499f39e583 SHA512 ca63d68063cf48789d86dee3707b3ea7c5076fc1f636e17f408ad6f444303fb3a701af8d1e464d49af745e350272bffe8596853a52c01baa0bdb0b6b0c0bb303 |
24 |
|
25 |
diff --git a/dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch b/dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..35b4809c865 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-flakes/files/pytest-flakes-4.0.3-fix-py3.10.patch |
30 |
@@ -0,0 +1,17 @@ |
31 |
+From: Arthur Zamarin <arthurzam@g.o> |
32 |
+Date: Fri, 27 Aug 2021 08:23:16 +0300 |
33 |
+Subject: [PATCH] test_syntax_error: fix for python 3.10 |
34 |
+ |
35 |
+Signed-off-by: Arthur Zamarin <arthurzam@g.o> |
36 |
+--- a/test_flakes.py |
37 |
++++ b/test_flakes.py |
38 |
+@@ -20,7 +20,8 @@ for x in [] |
39 |
+ pass |
40 |
+ """) |
41 |
+ result = testdir.runpytest("--flakes", "--ignore", testdir.tmpdir) |
42 |
+- assert "1: invalid syntax" in result.stdout.str() |
43 |
++ assert ("1: invalid syntax" in result.stdout.str() or |
44 |
++ "1: expected ':'" in result.stdout.str()) |
45 |
+ assert 'passed' not in result.stdout.str() |
46 |
+ |
47 |
+ |
48 |
|
49 |
diff --git a/dev-python/pytest-flakes/pytest-flakes-4.0.3.ebuild b/dev-python/pytest-flakes/pytest-flakes-4.0.3.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..d3a52d73420 |
52 |
--- /dev/null |
53 |
+++ b/dev-python/pytest-flakes/pytest-flakes-4.0.3.ebuild |
54 |
@@ -0,0 +1,25 @@ |
55 |
+# Copyright 1999-2021 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=7 |
59 |
+ |
60 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+DESCRIPTION="Collection of small Python functions & classes" |
64 |
+HOMEPAGE="https://pypi.org/project/pytest-flakes/" |
65 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="BSD" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+ |
71 |
+RDEPEND=" |
72 |
+ dev-python/pyflakes[${PYTHON_USEDEP}] |
73 |
+ dev-python/pytest[${PYTHON_USEDEP}]" |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}/${P}-fix-py3.10.patch" |
77 |
+) |
78 |
+ |
79 |
+distutils_enable_tests pytest |