From d7af80ee76e83c957a8742ed3b2768e20bd0516ff0da7cc17cb82ff9c96f9d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 Feb 2019 16:35:18 +0000 Subject: [PATCH 1/2] 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 --- python-cssselect2.changes | 7 +++++++ python-cssselect2.spec | 9 +++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/python-cssselect2.changes b/python-cssselect2.changes index cda8b52..6eb372a 100644 --- a/python-cssselect2.changes +++ b/python-cssselect2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 26 12:19:15 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-cssselect2.spec b/python-cssselect2.spec index c13a747..0519dae 100644 --- a/python-cssselect2.spec +++ b/python-cssselect2.spec @@ -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 From dcba1dbd65af1e66ca9c602df067b536ff356fa04550b090a96e1cc0a8542b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 Feb 2019 13:06:52 +0000 Subject: [PATCH 2/2] - Fix the build again OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssselect2?expand=0&rev=8 --- python-cssselect2.changes | 5 +++++ python-cssselect2.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-cssselect2.changes b/python-cssselect2.changes index 6eb372a..b70466b 100644 --- a/python-cssselect2.changes +++ b/python-cssselect2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 27 13:06:42 UTC 2019 - Tomáš Chvátal + +- Fix the build again + ------------------------------------------------------------------- Tue Feb 26 12:19:15 UTC 2019 - John Vandenberg diff --git a/python-cssselect2.spec b/python-cssselect2.spec index 0519dae..50cd77f 100644 --- a/python-cssselect2.spec +++ b/python-cssselect2.spec @@ -59,7 +59,7 @@ sed -i '/addopts/d' setup.cfg %check export LANG=en_US.UTF-8 -%python_exec -m pytest +%python_exec -m pytest cssselect2/tests %files %{python_files} %doc CHANGES README.rst