From 83f64b7f7959422ceb4f3bb10fc07d44430f700f26af382b980b74b57b78d1c5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 May 2021 10:02:27 +0000 Subject: [PATCH] Accepting request 894226 from home:pgajdos:python - use %pytest macro OBS-URL: https://build.opensuse.org/request/show/894226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-deprecated?expand=0&rev=3 --- python-flake8-deprecated.changes | 5 +++++ python-flake8-deprecated.spec | 21 +++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/python-flake8-deprecated.changes b/python-flake8-deprecated.changes index 63bd049..bd68d48 100644 --- a/python-flake8-deprecated.changes +++ b/python-flake8-deprecated.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 19 07:00:15 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + ------------------------------------------------------------------- Mon Jul 15 22:05:44 UTC 2019 - Andreas Färber diff --git a/python-flake8-deprecated.spec b/python-flake8-deprecated.spec index 2437ce4..bdf7c8b 100644 --- a/python-flake8-deprecated.spec +++ b/python-flake8-deprecated.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8-deprecated # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,27 +12,28 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-flake8-deprecated Version: 1.3 Release: 0 -License: GPL-2.0-only Summary: Flake8 deprecations plugin -Url: https://github.com/gforcada/flake8-deprecated +License: GPL-2.0-only Group: Development/Languages/Python +URL: https://github.com/gforcada/flake8-deprecated Source: https://files.pythonhosted.org/packages/source/f/flake8-deprecated/flake8-deprecated-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} -# SECTION test requirements -BuildRequires: %{python_module flake8 >= 3.0.0} -# /SECTION BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-flake8 >= 3.0.0 BuildArch: noarch - +# SECTION test requirements +BuildRequires: %{python_module flake8 >= 3.0.0} +BuildRequires: %{python_module pytest} +# /SECTION %python_subpackages %description @@ -50,7 +51,7 @@ they should be replaced with. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest run_tests.py %files %{python_files} %license LICENSE LICENSE.rst