15
0
Files
python-flake8-quotes/python-flake8-quotes.spec
Dirk Mueller 29f92aa683 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
2019-05-21 15:18:06 +00:00

65 lines
1.8 KiB
RPMSpec

#
# spec file for package python-flake8-quotes
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-flake8-quotes
Version: 2.0.1
Release: 0
Summary: Flake8 lint for quotes
License: MIT
Group: Development/Languages/Python
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
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
Flake8 Extension to lint for quotes.
%prep
%setup -q -n flake8-quotes-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
# Tests require access to stdin
%pytest -s -k "not test_stdin" test
%endif
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog