#4 remove pytest-cov build dependency
Opened 2 years ago by ktdreyer. Modified 2 years ago
rpms/ ktdreyer/python-watchdog rm-pytest-cov  into  rawhide

file modified
+2 -1
@@ -21,7 +21,6 @@ 

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

  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

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 those two -devel packages are not available in the RHEL 9 composes.

rebased onto 5268298

2 years ago

rebased onto 08004b6

2 years ago

rebased onto 09fa1d9

2 years ago
Metadata