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