Accepting request 679803 from devel:languages:python
- Fix the build again - 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/679803 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cssselect2?expand=0&rev=3
This commit is contained in:
commit
4d4c9fff71
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 27 13:06:42 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Fix the build again
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@ -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 cssselect2/tests
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES README.rst
|
||||
|
Loading…
Reference in New Issue
Block a user