- Fix the test run with new pytest
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mccabe?expand=0&rev=18
This commit is contained in:
parent
bf99556c75
commit
8ce87fd154
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 09:10:58 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Fix the test run with new pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 6 14:03:34 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-mccabe
|
||||
#
|
||||
# Copyright (c) 2017 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
|
||||
@ -12,7 +12,7 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
@ -23,12 +23,12 @@ Release: 0
|
||||
Summary: McCabe checker, plugin for flake8
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/flintwork/mccabe
|
||||
Source: https://pypi.io/packages/source/m/mccabe/mccabe-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
URL: https://github.com/flintwork/mccabe
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mccabe/mccabe-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -38,19 +38,22 @@ This module provides a plugin for flake8, the Python code checker.
|
||||
|
||||
%prep
|
||||
%setup -q -n mccabe-%{version}
|
||||
# do not require pytest-runner for setup
|
||||
sed -i 's:pytest-runner::' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec %{_bindir}/py.test
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user