Skip to content

Commit

Permalink
Update python-yapf to version 0.31.0 / rev 10 via SR 906775
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/906775
by user dirkmueller + dimstar_suse
- 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.
  • Loading branch information
dirkmueller authored and bmwiedemann committed Jul 21, 2021
1 parent 1c57262 commit 72f0855
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 4 deletions.
Binary file modified packages/p/python-yapf/.files
Binary file not shown.
15 changes: 15 additions & 0 deletions packages/p/python-yapf/.rev
Expand Up @@ -77,4 +77,19 @@
<comment></comment>
<requestid>810185</requestid>
</revision>
<revision rev="10" vrev="1">
<srcmd5>e21a10d5b5bd1ae8538814ae55bab4aa</srcmd5>
<version>0.31.0</version>
<time>1626887131</time>
<user>dimstar_suse</user>
<comment>- 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.</comment>
<requestid>906775</requestid>
</revision>
</revisionlist>
12 changes: 12 additions & 0 deletions packages/p/python-yapf/python-yapf.changes
@@ -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>

Expand Down
8 changes: 5 additions & 3 deletions packages/p/python-yapf/python-yapf.spec
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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/

Expand Down
1 change: 0 additions & 1 deletion packages/p/python-yapf/yapf-0.30.0.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/p/python-yapf/yapf-0.31.0.tar.gz

0 comments on commit 72f0855

Please sign in to comment.