forked from pool/python-cssselect2
Accepting request 679281 from home:jayvdb:noflake8
- Remove unnecessary build dependencies on pytest plugins, by invoking pytest directly avoiding setup.py checking test deps, and removing addopts from setup.cfg OBS-URL: https://build.opensuse.org/request/show/679281 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssselect2?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
3afc1c0b13
commit
d7af80ee76
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-cssselect2
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -29,10 +29,6 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-flake8}
|
||||
BuildRequires: %{python_module pytest-isort}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module tinycss2}
|
||||
# /SECTION
|
||||
@@ -52,6 +48,7 @@ cssselect.
|
||||
|
||||
%prep
|
||||
%setup -q -n cssselect2-%{version}
|
||||
sed -i '/addopts/d' setup.cfg
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -62,7 +59,7 @@ cssselect.
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_exec setup.py test
|
||||
%python_exec -m pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES README.rst
|
||||
|
||||
Reference in New Issue
Block a user