diff --git a/python-yapf.changes b/python-yapf.changes index 6ccd77d..e7aeebb 100644 --- a/python-yapf.changes +++ b/python-yapf.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Mon Mar 11 05:47:17 UTC 2024 - Steve Kowalik + +- Add missing {Build,}Requires on tomli and importlib-metadata. + +------------------------------------------------------------------- +Mon Nov 27 20:10:52 UTC 2023 - Dirk Müller + +- 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 diff --git a/python-yapf.spec b/python-yapf.spec index f7d4bb5..5ff013e 100644 --- a/python-yapf.spec +++ b/python-yapf.spec @@ -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 diff --git a/yapf-0.40.1.tar.gz b/yapf-0.40.1.tar.gz deleted file mode 100644 index 209f59a..0000000 --- a/yapf-0.40.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:958587eb5c8ec6c860119a9c25d02addf30a44f75aa152a4220d30e56a98037c -size 247509 diff --git a/yapf-0.40.2.tar.gz b/yapf-0.40.2.tar.gz new file mode 100644 index 0000000..14073eb --- /dev/null +++ b/yapf-0.40.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4dab8a5ed7134e26d57c1647c7483afb3f136878b579062b786c9ba16b94637b +size 252068