Accepting request 894223 from home:pgajdos:python

- use %pytest macro in %check

OBS-URL: https://build.opensuse.org/request/show/894223
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-class-newline?expand=0&rev=3
This commit is contained in:
Matej Cepl 2021-05-19 06:56:13 +00:00 committed by Git OBS Bridge
parent b329905910
commit 8aa2a68813
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 19 06:46:49 UTC 2021 - pgajdos@suse.com
- use %pytest macro in %check
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 15 21:48:40 UTC 2019 - Andreas Färber <afaerber@suse.de> Mon Jul 15 21:48:40 UTC 2019 - Andreas Färber <afaerber@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-flake8-class-newline # spec file for package python-flake8-class-newline
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,8 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@ -21,13 +22,14 @@ Version: 1.6.0
Release: 0 Release: 0
License: MIT License: MIT
Summary: Flake8 lint for newline after class definitions Summary: Flake8 lint for newline after class definitions
Url: https://github.com/AlexanderVanEck/flake8-class-newline URL: https://github.com/AlexanderVanEck/flake8-class-newline
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/f/flake8-class-newline/flake8-class-newline-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/f/flake8-class-newline/flake8-class-newline-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module flake8} BuildRequires: %{python_module flake8}
BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
BuildRequires: fdupes BuildRequires: fdupes
Requires: python-flake8 Requires: python-flake8
@ -49,7 +51,7 @@ Flake8 Extension to lint for a method newline after a Class definition
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %pytest
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE