From b30211b28ee411b83cd1f76ab872a5812a63b1426c4d6d101cd819057a5a324a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 4 Jun 2022 11:48:13 +0000 Subject: [PATCH] - Update to 0.32.0: - Look at the 'pyproject.toml' file to see if it contains ignore file information for YAPF. - New entry point `yapf_api.FormatTree` for formatting lib2to3 concrete syntax trees. - Change tests to support "pytest". - Reformat so that "flake8" is happy. - Clean up the FormatToken interface to limit how much it relies upon the pytree node object. - Rename "unwrapped_line" module to "logical_line." - Rename "UnwrappedLine" class to "LogicalLine." - Added pyproject extra to install toml package as an optional dependency. - Enable `BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF` knob for "pep8" style, so method definitions inside a class are surrounded by a single blank line as prescribed by PEP8. - Fixed the '...' token to be spaced after a colon. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=20 --- python-yapf.changes | 20 ++++++++++++++++++++ python-yapf.spec | 8 ++++---- yapf-0.31.0.tar.gz | 3 --- yapf-0.32.0.tar.gz | 3 +++ 4 files changed, 27 insertions(+), 7 deletions(-) delete mode 100644 yapf-0.31.0.tar.gz create mode 100644 yapf-0.32.0.tar.gz diff --git a/python-yapf.changes b/python-yapf.changes index 4664473..f9c7181 100644 --- a/python-yapf.changes +++ b/python-yapf.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Sat Jun 4 11:45:36 UTC 2022 - Matej Cepl + +- Update to 0.32.0: + - Look at the 'pyproject.toml' file to see if it contains ignore file information + for YAPF. + - New entry point `yapf_api.FormatTree` for formatting lib2to3 concrete + syntax trees. + - Change tests to support "pytest". + - Reformat so that "flake8" is happy. + - Clean up the FormatToken interface to limit how much it relies upon the + pytree node object. + - Rename "unwrapped_line" module to "logical_line." + - Rename "UnwrappedLine" class to "LogicalLine." + - Added pyproject extra to install toml package as an optional dependency. + - Enable `BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF` knob for "pep8" style, so + method definitions inside a class are surrounded by a single blank line as + prescribed by PEP8. + - Fixed the '...' token to be spaced after a colon. + ------------------------------------------------------------------- Sat Jul 17 06:43:41 UTC 2021 - Dirk Müller diff --git a/python-yapf.spec b/python-yapf.spec index 0c39cf5..308a865 100644 --- a/python-yapf.spec +++ b/python-yapf.spec @@ -1,7 +1,7 @@ # # spec file for package python-yapf # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 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.31.0 +Version: 0.32.0 Release: 0 Summary: A formatter for Python code License: Apache-2.0 @@ -65,10 +65,10 @@ be reformatted. %pytest --capture=no %post -%python_install_alternative yapf +%python_install_alternative yapf yapf-diff %postun -%python_uninstall_alternative yapf +%python_uninstall_alternative yapf yapf-diff %files %{python_files} %license LICENSE diff --git a/yapf-0.31.0.tar.gz b/yapf-0.31.0.tar.gz deleted file mode 100644 index 339aa11..0000000 --- a/yapf-0.31.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:408fb9a2b254c302f49db83c59f9aa0b4b0fd0ec25be3a5c51181327922ff63d -size 192584 diff --git a/yapf-0.32.0.tar.gz b/yapf-0.32.0.tar.gz new file mode 100644 index 0000000..85bf01f --- /dev/null +++ b/yapf-0.32.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3f5085d37ef7e3e004c4ba9f9b3e40c54ff1901cd111f05145ae313a7c67d1b +size 194820