forked from pool/python-yapf
- 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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user