Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-asyncio/, dev-python/pytest-asyncio/files/
Date: Tue, 18 May 2021 11:40:16
Message-Id: 1621337994.7a0ed69b9c073553482ad64d0c955f7189e267be.mgorny@gentoo
1 commit: 7a0ed69b9c073553482ad64d0c955f7189e267be
2 Author: Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch>
3 AuthorDate: Sat May 15 22:52:52 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 11:39:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0ed69b
7
8 dev-python/pytest-asyncio: Bump to python 3.10
9
10 Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch>
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 .../files/pytest-asyncio-0.15.1-310-test-warnings.patch | 12 ++++++++++++
14 dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild | 6 +++++-
15 2 files changed, 17 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch b/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch
18 new file mode 100644
19 index 00000000000..50f1c9f2d16
20 --- /dev/null
21 +++ b/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch
22 @@ -0,0 +1,12 @@
23 +diff --git a/setup.cfg b/setup.cfg
24 +index 0161086..047501c 100644
25 +--- a/setup.cfg
26 ++++ b/setup.cfg
27 +@@ -8,6 +8,7 @@ show_missing = true
28 + addopts = -rsx --tb=short
29 + testpaths = tests
30 + filterwarnings = error
31 ++ ignore::DeprecationWarning
32 +
33 + [metadata]
34 + # ensure LICENSE is included in wheel metadata
35
36 diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
37 index 60f1a55ba4e..eef2f9adf10 100644
38 --- a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
39 +++ b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
40 @@ -3,7 +3,7 @@
41
42 EAPI=7
43
44 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
45 +PYTHON_COMPAT=( python3_{7..10} pypy3 )
46
47 inherit distutils-r1
48
49 @@ -23,4 +23,8 @@ BDEPEND="
50 >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
51 )"
52
53 +PATCHES=(
54 + "${FILESDIR}/${P}-310-test-warnings.patch"
55 +)
56 +
57 distutils_enable_tests --install pytest