diff --git a/python-watchdog.changes b/python-watchdog.changes index 107f300..48dfba0 100644 --- a/python-watchdog.changes +++ b/python-watchdog.changes @@ -36,6 +36,8 @@ Tue Jan 7 09:57:40 UTC 2025 - Adrian Schröter - [watchmedo] Added the __repr__() method to the HelpFormatter class. - [windows] Fixed Mypy issues. +- Switch off test coverage measurement. +- Skip test test_select_fd (gh#gorakhargosh/watchdog!1086 ?) ------------------------------------------------------------------- Thu Jun 13 15:32:08 UTC 2024 - Dirk Müller diff --git a/python-watchdog.spec b/python-watchdog.spec index 7082183..5ce2ba5 100644 --- a/python-watchdog.spec +++ b/python-watchdog.spec @@ -55,11 +55,14 @@ This package contains documentation and examples for %{name}. %endif %prep -%setup -q -n watchdog-%{version} +%autosetup -p1 -n watchdog-%{version} chmod -x README.rst # Remove all shebangs find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d' +# Remove coverage testing +sed -i '/^[[:space:]]\+--cov/d' pyproject.toml + %build %python_build %if 0%{?suse_version} > 1500 @@ -76,7 +79,8 @@ sed -i '/--cov/d' setup.cfg export LANG=en_US.UTF-8 # test_event_dispatcher randomly fails on SLE15 # test_unmount_watched_directory_filesystem requires sudo/root which is not available -%pytest -k 'not test_event_dispatcher and not test_unmount_watched_directory_filesystem' +# test_select_fd +%pytest -k 'not (test_event_dispatcher or test_unmount_watched_directory_filesystem or test_select_fd)' %post %python_install_alternative watchmedo