Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/thriftrw/files/, dev-python/thriftrw/
Date: Sat, 09 Oct 2021 17:00:58
Message-Id: 1633798852.9aa9c45f635cde503bb7473990b7b9ac1c79d45e.Alessandro-Barbieri@gentoo
1 commit: 9aa9c45f635cde503bb7473990b7b9ac1c79d45e
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Oct 9 16:42:07 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Oct 9 17:00:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9aa9c45f
7
8 dev-python/thriftrw: tool:pytest
9
10 Closes: https://bugs.gentoo.org/817203
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch | 11 +++++++++++
14 dev-python/thriftrw/thriftrw-1.8.1.ebuild | 5 ++++-
15 2 files changed, 15 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch b/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch
18 new file mode 100644
19 index 000000000..5bb3774c6
20 --- /dev/null
21 +++ b/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch
22 @@ -0,0 +1,11 @@
23 +--- a/setup.cfg
24 ++++ b/setup.cfg
25 +@@ -2,7 +2,7 @@
26 + create-wheel = yes
27 + python-file-with-version = thriftrw/__init__.py
28 +
29 +-[pytest]
30 ++[tool:pytest]
31 + addopts = --tb short --benchmark-autosave --benchmark-save-data
32 +
33 + [egg_info]
34
35 diff --git a/dev-python/thriftrw/thriftrw-1.8.1.ebuild b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
36 index 7ae0e668c..cfe3df642 100644
37 --- a/dev-python/thriftrw/thriftrw-1.8.1.ebuild
38 +++ b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
39 @@ -26,6 +26,9 @@ DEPEND="
40 )
41 "
42
43 -PATCHES=( "${FILESDIR}/${P}-no-install-examples.patch" )
44 +PATCHES=(
45 + "${FILESDIR}/${P}-no-install-examples.patch"
46 + "${FILESDIR}/${P}-tool-pytest.patch"
47 +)
48
49 distutils_enable_tests pytest