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..6c1a811 100644 --- a/python-fake-useragent.spec +++ b/python-fake-useragent.spec @@ -16,8 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-fake-useragent Version: 1.5.1 Release: 0 @@ -54,11 +53,16 @@ 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 %doc README.md -%{python_sitelib}/fake[-_]useragent*/ +#{python_sitelib}/fake[-_]useragent*/ +%{python_sitelib}/fake_useragent +%{python_sitelib}/fake_useragent-%{version}.dist-info %changelog