forked from pool/python-flake8-quotes
Accepting request 704445 from home:mcalabkova:branches:devel:languages:python
- Update to version 2.0.1
* We automatically encourage avoiding escaping quotes as per
PEP 8. To disable this, use --no-avoid-escape (can be used
in configuration file via avoid-escape).
* Add note about warning.
OBS-URL: https://build.opensuse.org/request/show/704445
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-quotes?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-flake8-quotes
|
||||
#
|
||||
# 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
|
||||
@@ -17,25 +17,24 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Tests require access to stdin
|
||||
%bcond_with test
|
||||
%bcond_without test
|
||||
Name: python-flake8-quotes
|
||||
Version: 1.0.0
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: Flake8 lint for quotes
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://github.com/zheller/flake8-quotes/
|
||||
URL: http://github.com/zheller/flake8-quotes/
|
||||
Source: https://files.pythonhosted.org/packages/source/f/flake8-quotes/flake8-quotes-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module flake8}
|
||||
%endif
|
||||
Requires: python-flake8
|
||||
Requires: python-flake8 >= 3.3.0
|
||||
BuildArch: noarch
|
||||
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module flake8 >= 3.3.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -53,11 +52,11 @@ Flake8 Extension to lint for quotes.
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
# Tests require access to stdin
|
||||
%pytest -s -k "not test_stdin" test
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user