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:
Tomáš Chvátal 2019-02-26 16:35:18 +00:00 committed by Git OBS Bridge
parent 3afc1c0b13
commit d7af80ee76
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 26 12:19:15 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Remove unnecessary build dependencies on pytest plugins, by
invoking pytest directly avoiding setup.py checking test deps,
and removing addopts from setup.cfg
-------------------------------------------------------------------
Tue Dec 4 12:47:03 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

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