From 09fa1d94ceb333367b9cbaca31545bd359c8c77a Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Oct 08 2021 15:46:01 +0000 Subject: remove pytest-cov build dependency Simplify the build process by removing the code coverage library. This makes it easier to package watchdog for EPEL 9. pytest-cov requires python-pytest-xdist -> python-gevent -> libuv-devel and libev-devel, and those two -devel packages are not available in the RHEL 9 composes. --- diff --git a/python-watchdog.spec b/python-watchdog.spec index 7aed82f..20ba9b9 100644 --- a/python-watchdog.spec +++ b/python-watchdog.spec @@ -21,7 +21,6 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest -BuildRequires: python3-pytest-cov BuildRequires: python3-pytest-rerunfailures BuildRequires: python3-pytest-timeout BuildRequires: python3-PyYAML >= 3.09 @@ -37,6 +36,8 @@ find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d' chmod -x README.rst # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info +# Remove pytest-cov dependency +sed -i -e /--cov=/d -e /--cov-report=/d setup.cfg %build %py3_build