From 168cb255eafb0d8708ba3e70ead8a7e55b8ddfeddd2b9a6e7da15ec6c0e94c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 11 Feb 2019 10:43:40 +0000 Subject: [PATCH 1/2] - Make sure we really really execute tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-flake8?expand=0&rev=4 --- python-pytest-flake8.changes | 5 +++++ python-pytest-flake8.spec | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/python-pytest-flake8.changes b/python-pytest-flake8.changes index b25a92c..a245768 100644 --- a/python-pytest-flake8.changes +++ b/python-pytest-flake8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 11 10:43:25 UTC 2019 - Tomáš Chvátal + +- Make sure we really really execute tests + ------------------------------------------------------------------- Wed Feb 6 08:41:05 UTC 2019 - alarrosa@suse.com diff --git a/python-pytest-flake8.spec b/python-pytest-flake8.spec index e511ff1..c2712a0 100644 --- a/python-pytest-flake8.spec +++ b/python-pytest-flake8.spec @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-pytest-flake8 Version: 1.0.4 Release: 0 @@ -27,16 +26,14 @@ Group: Development/Languages/Python URL: https://github.com/tholo/pytest-flake8 Source: https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest-flake8-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module flake8 >= 3.0} +BuildRequires: %{python_module pytest >= 2.8} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-flake8 >= 3.0 Requires: python-pytest >= 2.8 BuildArch: noarch -%if %{with test} -BuildRequires: %{python_module flake8 >= 3.0} -BuildRequires: %{python_module pytest >= 2.8} -%endif %python_subpackages %description @@ -52,10 +49,8 @@ Plugin for py.test for efficiently checking PEP8 compliance. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} %files %{python_files} %license LICENSE From 727fc3f3a806f34772b7918bbb8b796c70240368050f430848b4b2702de6c8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Feb 2019 12:52:07 +0000 Subject: [PATCH 2/2] - Remove unused devel dependency - Update requirements to match reality OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-flake8?expand=0&rev=5 --- python-pytest-flake8.changes | 6 ++++++ python-pytest-flake8.spec | 11 +++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python-pytest-flake8.changes b/python-pytest-flake8.changes index a245768..0debb1c 100644 --- a/python-pytest-flake8.changes +++ b/python-pytest-flake8.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 14 12:51:40 UTC 2019 - Tomáš Chvátal + +- Remove unused devel dependency +- Update requirements to match reality + ------------------------------------------------------------------- Mon Feb 11 10:43:25 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-flake8.spec b/python-pytest-flake8.spec index c2712a0..d6a2b87 100644 --- a/python-pytest-flake8.spec +++ b/python-pytest-flake8.spec @@ -25,14 +25,13 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/tholo/pytest-flake8 Source: https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest-flake8-%{version}.tar.gz -BuildRequires: %{python_module devel} -BuildRequires: %{python_module flake8 >= 3.0} -BuildRequires: %{python_module pytest >= 2.8} +BuildRequires: %{python_module flake8 >= 3.5} +BuildRequires: %{python_module pytest >= 3.5} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-flake8 >= 3.0 -Requires: python-pytest >= 2.8 +Requires: python-flake8 >= 3.5 +Requires: python-pytest >= 3.5 BuildArch: noarch %python_subpackages @@ -50,7 +49,7 @@ Plugin for py.test for efficiently checking PEP8 compliance. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %files %{python_files} %license LICENSE