Accepting request 906775 from devel:languages:python
- 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/request/show/906775 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yapf?expand=0&rev=10
This commit is contained in:
commit
172f62f7b6
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 17 06:43:41 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 29 09:31:01 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Fri May 29 09:31:01 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-yapf
|
# 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
|
# 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
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-yapf
|
Name: python-yapf
|
||||||
Version: 0.30.0
|
Version: 0.31.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A formatter for Python code
|
Summary: A formatter for Python code
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Recommends: python-futures
|
Recommends: python-futures
|
||||||
@ -58,6 +58,7 @@ be reformatted.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/yapf
|
%python_clone -a %{buildroot}%{_bindir}/yapf
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/yapf-diff
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/yapftests
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/yapftests
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -73,6 +74,7 @@ be reformatted.
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst CHANGELOG
|
%doc README.rst CHANGELOG
|
||||||
%python_alternative %{_bindir}/yapf
|
%python_alternative %{_bindir}/yapf
|
||||||
|
%python_alternative %{_bindir}/yapf-diff
|
||||||
%{python_sitelib}/yapf/
|
%{python_sitelib}/yapf/
|
||||||
%{python_sitelib}/yapf-%{version}-py*.egg-info/
|
%{python_sitelib}/yapf-%{version}-py*.egg-info/
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3000abee4c28daebad55da6c85f3cd07b8062ce48e2e9943c8da1b9667d48427
|
|
||||||
size 187854
|
|
3
yapf-0.31.0.tar.gz
Normal file
3
yapf-0.31.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:408fb9a2b254c302f49db83c59f9aa0b4b0fd0ec25be3a5c51181327922ff63d
|
||||||
|
size 192584
|
Loading…
x
Reference in New Issue
Block a user