commit: a1139f2e5e30f8459637468ca14c96d73c995e5c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 19 12:47:19 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 19 12:49:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1139f2e
dev-python/pytest-asyncio: Fix for >=dev-python/setuptools-scm-1.2.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-asyncio/pytest-asyncio-0.26.0.ebuild | 8 ++++++++
dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild | 8 ++++++++
dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.26.0.ebuild
b/dev-python/pytest-asyncio/pytest-asyncio-0.26.0.ebuild
index 2c3d35878017..b36e38e5ace8 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-0.26.0.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-0.26.0.ebuild
@@ -31,6 +31,14 @@ BDEPEND="
EPYTEST_XDIST=1
distutils_enable_tests pytest
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # redundant, and breaking setuptools-scm >= 1.2.0
+ # https://github.com/pypa/setuptools-scm/issues/1216
+ rm setup.cfg || die
+}
+
python_test() {
local EPYTEST_DESELECT=(
# rely on precise warning counts
diff --git a/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
b/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
index fe6e9e8ad5e2..c48c1f209a9f 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
@@ -30,6 +30,14 @@ EPYTEST_PLUGIN_LOAD_VIA_ENV=1
EPYTEST_XDIST=1
distutils_enable_tests pytest
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # redundant, and breaking setuptools-scm >= 1.2.0
+ # https://github.com/pypa/setuptools-scm/issues/1216
+ rm setup.cfg || die
+}
+
python_test() {
local EPYTEST_DESELECT=(
# fail due to mismatched warning count
diff --git a/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild
b/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild
index 059598ea6915..176ab135f93e 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild
@@ -36,3 +36,11 @@ EPYTEST_DESELECT=(
tests/test_event_loop_fixture.py::test_event_loop_fixture_asyncgen_error
tests/test_event_loop_fixture.py::test_event_loop_fixture_handles_unclosed_async_gen
)
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # redundant, and breaking setuptools-scm >= 1.2.0
+ # https://github.com/pypa/setuptools-scm/issues/1216
+ rm setup.cfg || die
+}