forked from pool/python-yapf
- update to 0.31.0:
- Add 'BLANK_LINES_BETWEEN_TOP_LEVEL_IMPORTS_AND_VARIABLES' to support setting a custom number of blank lines between top-level imports and variable definitions. - Ignore end of line `# copybara:` directives when checking line length. - Do not scan exlcuded directories. Prior versions would scan an exluded folder then exclude its contents on a file by file basis. Preventing the folder being scanned is faster. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=19
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-yapf
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# 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
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-yapf
|
||||
Version: 0.30.0
|
||||
Version: 0.31.0
|
||||
Release: 0
|
||||
Summary: A formatter for Python code
|
||||
License: Apache-2.0
|
||||
@@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Recommends: python-futures
|
||||
@@ -58,6 +58,7 @@ be reformatted.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/yapf
|
||||
%python_clone -a %{buildroot}%{_bindir}/yapf-diff
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/yapftests
|
||||
|
||||
%check
|
||||
@@ -73,6 +74,7 @@ be reformatted.
|
||||
%license LICENSE
|
||||
%doc README.rst CHANGELOG
|
||||
%python_alternative %{_bindir}/yapf
|
||||
%python_alternative %{_bindir}/yapf-diff
|
||||
%{python_sitelib}/yapf/
|
||||
%{python_sitelib}/yapf-%{version}-py*.egg-info/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user