- Switch off test coverage measurement.

- Skip test test_select_fd (gh#gorakhargosh/watchdog!1086 ?)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchdog?expand=0&rev=51
This commit is contained in:
Matej Cepl 2025-01-08 10:10:02 +00:00 committed by Git OBS Bridge
parent 5162cc40b8
commit 141b79f463
2 changed files with 8 additions and 2 deletions

View File

@ -36,6 +36,8 @@ Tue Jan 7 09:57:40 UTC 2025 - Adrian Schröter <adrian@suse.de>
- [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 <dmueller@suse.com>

View File

@ -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