Sync from SUSE:SLFO:Main python-yapf revision f27ef2ffa9ad71a03d1fe4eeb97229a6

This commit is contained in:
Adrian Schröter 2024-06-30 14:24:09 +02:00
parent 99ef6518a2
commit 601883dcad
4 changed files with 35 additions and 12 deletions

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon Mar 11 05:47:17 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add missing {Build,}Requires on tomli and importlib-metadata.
-------------------------------------------------------------------
Mon Nov 27 20:10:52 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.40.2:
* The verification module has been removed. NOTE: this changes
the public APIs by removing the "verify" parameter.
* Changed FORCE_MULTILINE_DICT to override
SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES.
* Adopt pyproject.toml (PEP 517) for build system
* Do not treat variables named `match` as the match keyword.
* Fix SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED for one-item
argument lists.
* Fix trailing backslash-newline on Windows when using stdin.
-------------------------------------------------------------------
Thu Sep 7 11:12:31 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-yapf
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,22 +18,26 @@
%{?sle15_python_module_pythons}
Name: python-yapf
Version: 0.40.1
Version: 0.40.2
Release: 0
Summary: A formatter for Python code
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/google/yapf
Source: https://files.pythonhosted.org/packages/source/y/yapf/yapf-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module platformdirs}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-importlib-metadata
Requires: python-platformdirs
Requires: python-tomli
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython2
Recommends: python-futures
@ -54,10 +58,10 @@ be reformatted.
%setup -q -n yapf-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/yapf
@ -75,11 +79,11 @@ be reformatted.
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG
%doc README.md CHANGELOG.md
%python_alternative %{_bindir}/yapf
%python_alternative %{_bindir}/yapf-diff
%{python_sitelib}/yapf/
%{python_sitelib}/yapf_third_party/
%{python_sitelib}/yapf-%{version}-py*.egg-info/
%{python_sitelib}/yapf-%{version}.dist-info
%changelog

BIN
yapf-0.40.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
yapf-0.40.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.