commit: 7a0ed69b9c073553482ad64d0c955f7189e267be
Author: Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch>
AuthorDate: Sat May 15 22:52:52 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 18 11:39:54 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0ed69b
dev-python/pytest-asyncio: Bump to python 3.10
Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../files/pytest-asyncio-0.15.1-310-test-warnings.patch | 12 ++++++++++++
dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild | 6 +++++-
2 files changed, 17 insertions(+), 1 deletion(-)
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
new file mode 100644
index 00000000000..50f1c9f2d16
--- /dev/null
+++
b/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.cfg b/setup.cfg
+index 0161086..047501c 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -8,6 +8,7 @@ show_missing = true
+ addopts = -rsx --tb=short
+ testpaths = tests
+ filterwarnings = error
++ ignore::DeprecationWarning
+
+ [metadata]
+ # ensure LICENSE is included in wheel metadata
diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
index 60f1a55ba4e..eef2f9adf10 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7..9} pypy3 )
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
@@ -23,4 +23,8 @@ BDEPEND="
>=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
)"
+PATCHES=(
+ "${FILESDIR}/${P}-310-test-warnings.patch"
+)
+
distutils_enable_tests --install pytest