From 87b943793a452a65a2a534dc40f81fb0b894f7942f329e15bac4895605637190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 29 May 2020 11:00:49 +0000 Subject: [PATCH] Accepting request 810164 from home:mcalabkova:branches:devel:languages:python - update to 0.30.0 * Added `SPACES_AROUND_LIST_DELIMITERS`, `SPACES_AROUND_DICT_DELIMITERS`, and `SPACES_AROUND_TUPLE_DELIMITERS` to add spaces after the opening and before the closing delimiters for lists, dicts, and tuples. * Adds `FORCE_MULTILINE_DICT` knob to ensure dictionaries always split, even when shorter than the max line length. * New knob `SPACE_INSIDE_BRACKETS` to add spaces inside brackets, braces, and parentheses. * New knob `SPACES_AROUND_SUBSCRIPT_COLON` to add spaces around the subscript / slice operator. * Renamed "chromium" style to "yapf". Chromium will now use PEP-8 directly. * `CONTINUATION_ALIGN_STYLE` with `FIXED` or `VALIGN-RIGHT` now works with space indentation. * Don't over-indent a parameter list when not needed. But make sure it is properly indented so that it doesn't collide with the lines afterwards. * Don't split between two-word comparison operators: "is not", "not in", etc. - Replace nose with pytest * not WLOG, some tests get skipped because of capturing stdin OBS-URL: https://build.opensuse.org/request/show/810164 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=17 --- python-yapf.changes | 22 ++++++++++++++++++++++ python-yapf.spec | 6 +++--- yapf-0.29.0.tar.gz | 3 --- yapf-0.30.0.tar.gz | 3 +++ 4 files changed, 28 insertions(+), 6 deletions(-) delete mode 100644 yapf-0.29.0.tar.gz create mode 100644 yapf-0.30.0.tar.gz diff --git a/python-yapf.changes b/python-yapf.changes index ee70098..6d3bcae 100644 --- a/python-yapf.changes +++ b/python-yapf.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Fri May 29 09:31:01 UTC 2020 - Marketa Calabkova + +- update to 0.30.0 + * Added `SPACES_AROUND_LIST_DELIMITERS`, `SPACES_AROUND_DICT_DELIMITERS`, + and `SPACES_AROUND_TUPLE_DELIMITERS` to add spaces after the opening + and before the closing delimiters for lists, dicts, and tuples. + * Adds `FORCE_MULTILINE_DICT` knob to ensure dictionaries always split, + even when shorter than the max line length. + * New knob `SPACE_INSIDE_BRACKETS` to add spaces inside brackets, braces, and + parentheses. + * New knob `SPACES_AROUND_SUBSCRIPT_COLON` to add spaces around the subscript / + slice operator. + * Renamed "chromium" style to "yapf". Chromium will now use PEP-8 directly. + * `CONTINUATION_ALIGN_STYLE` with `FIXED` or `VALIGN-RIGHT` now works with + space indentation. + * Don't over-indent a parameter list when not needed. But make sure it is + properly indented so that it doesn't collide with the lines afterwards. + * Don't split between two-word comparison operators: "is not", "not in", etc. +- Replace nose with pytest + * not WLOG, some tests get skipped because of capturing stdin + ------------------------------------------------------------------- Tue Feb 4 15:55:15 UTC 2020 - Marketa Calabkova diff --git a/python-yapf.spec b/python-yapf.spec index 135208b..22a1f62 100644 --- a/python-yapf.spec +++ b/python-yapf.spec @@ -18,14 +18,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-yapf -Version: 0.29.0 +Version: 0.30.0 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 nose} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -61,7 +61,7 @@ be reformatted. %python_expand rm -r %{buildroot}%{$python_sitelib}/yapftests %check -%python_expand nosetests-%{$python_bin_suffix} -v +%pytest --capture=no %post %python_install_alternative yapf diff --git a/yapf-0.29.0.tar.gz b/yapf-0.29.0.tar.gz deleted file mode 100644 index 583563f..0000000 --- a/yapf-0.29.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:712e23c468506bf12cadd10169f852572ecc61b266258422d45aaf4ad7ef43de -size 181836 diff --git a/yapf-0.30.0.tar.gz b/yapf-0.30.0.tar.gz new file mode 100644 index 0000000..003b681 --- /dev/null +++ b/yapf-0.30.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3000abee4c28daebad55da6c85f3cd07b8062ce48e2e9943c8da1b9667d48427 +size 187854