|
|
|
@ -24,7 +24,6 @@ BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3dist(jaraco.functools)
|
|
|
|
|
BuildRequires: python3dist(pytest) >= 3.4
|
|
|
|
|
BuildRequires: python3dist(pytest-cov)
|
|
|
|
|
%{?fedora:BuildRequires: python3dist(pytest-flake8)}
|
|
|
|
|
#BuildRequires: python3dist(pytest-sugar) >= 0.9.1
|
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
|
BuildRequires: python3dist(setuptools-scm) >= 1.15
|
|
|
|
@ -54,6 +53,11 @@ rm -rf %{pypi_name}.egg-info
|
|
|
|
|
# black is apparently not a valid option?
|
|
|
|
|
sed -i 's/ --black//' pytest.ini
|
|
|
|
|
|
|
|
|
|
# Don't run the linter as part of tests
|
|
|
|
|
sed -i '/^addopts=--flake8$/d' pyproject.toml
|
|
|
|
|
sed -i '/pytest-flake8/d' setup.cfg
|
|
|
|
|
rm .flake8
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|