From d336e8e629cafbcb5b97dcc3ea3083d4e799c0d2 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Tue, 5 Nov 2019 14:47:45 -0500 Subject: [PATCH] Adding coverage build dep and reenabling flake8 --- python-portend.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-portend.spec b/python-portend.spec index d2903f4..ea2c9b8 100644 --- a/python-portend.spec +++ b/python-portend.spec @@ -22,6 +22,7 @@ Summary: portend documentation BuildRequires: python3-devel BuildRequires: python3dist(jaraco.functools) BuildRequires: python3dist(pytest) >= 3.5 +BuildRequires: python3dist(pytest-cov) BuildRequires: python3dist(pytest-flake8) #BuildRequires: python3dist(pytest-sugar) >= 0.9.1 BuildRequires: python3dist(setuptools) @@ -48,10 +49,6 @@ Documentation for portend %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info -# disable flake8 in the tests, need a newer version of pytest-flake8 -# https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2 -# AttributeError: 'Application' object has no attribute 'make_notifier' -sed -i 's/ --flake8//' pytest.ini # black is apparently not a valid option? sed -i 's/ --black//' pytest.ini @@ -87,6 +84,8 @@ LANG=C.utf-8 %{__python3} -m pytest --ignore=build %changelog * Tue Nov 05 2019 Dan Radez - 2.6-1 - update to 2.6 +- reenable flake8 +- add coverage build dep * Thu Oct 03 2019 Miro HronĨok - 2.5-4 - Rebuilt for Python 3.8.0rc1 (#1748018)