diff --git a/python-yapf.changes b/python-yapf.changes index 6d3bcae..4664473 100644 --- a/python-yapf.changes +++ b/python-yapf.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Jul 17 06:43:41 UTC 2021 - Dirk Müller + +- 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 diff --git a/python-yapf.spec b/python-yapf.spec index 22a1f62..0c39cf5 100644 --- a/python-yapf.spec +++ b/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 @@ -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/ diff --git a/yapf-0.30.0.tar.gz b/yapf-0.30.0.tar.gz deleted file mode 100644 index 003b681..0000000 --- a/yapf-0.30.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3000abee4c28daebad55da6c85f3cd07b8062ce48e2e9943c8da1b9667d48427 -size 187854 diff --git a/yapf-0.31.0.tar.gz b/yapf-0.31.0.tar.gz new file mode 100644 index 0000000..339aa11 --- /dev/null +++ b/yapf-0.31.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:408fb9a2b254c302f49db83c59f9aa0b4b0fd0ec25be3a5c51181327922ff63d +size 192584