From 6b47b1aac94dc720759ecfd025c3b35a510f89b10f2f773782858403d5637d65 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 28 Oct 2024 10:16:44 +0000 Subject: [PATCH] Accepting request 1218421 from home:yeey:OpenWebUI - Enable sle15_python_module_pythons. - Disable test_utils_load_pkg_resource_fallback test case because of pkg_resource and setuptools incompatibility. OBS-URL: https://build.opensuse.org/request/show/1218421 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fake-useragent?expand=0&rev=22 --- python-fake-useragent.changes | 7 +++++++ python-fake-useragent.spec | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-fake-useragent.changes b/python-fake-useragent.changes index 3646514..cbddee6 100644 --- a/python-fake-useragent.changes +++ b/python-fake-useragent.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Sep 26 18:44:11 UTC 2024 - Guang Yee + +- Enable sle15_python_module_pythons. +- Disable test_utils_load_pkg_resource_fallback test case because + of pkg_resource and setuptools incompatibility. + ------------------------------------------------------------------- Mon Mar 18 10:39:45 UTC 2024 - Dirk Müller diff --git a/python-fake-useragent.spec b/python-fake-useragent.spec index 571b816..644ca74 100644 --- a/python-fake-useragent.spec +++ b/python-fake-useragent.spec @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} %define skip_python2 1 Name: python-fake-useragent Version: 1.5.1 @@ -54,7 +54,10 @@ rm pytest.ini %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# NOTE: disable "test_utils_load_pkg_resource_fallback" test case as it is +# testing using pkg_resource, which conflicts with setuptools. +# See https://github.com/pypa/setuptools/issues/4487 +%pytest -k "(not test_utils_load_pkg_resource_fallback)" %files %{python_files} %license LICENSE