diff --git a/black-22.8.0.tar.gz b/black-22.8.0.tar.gz deleted file mode 100644 index b0c8bd4..0000000 --- a/black-22.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:792f7eb540ba9a17e8656538701d3eb1afcb134e3b45b71f20b25c77a8db7e6e -size 577317 diff --git a/black-23.3.0.tar.gz b/black-23.3.0.tar.gz new file mode 100644 index 0000000..16f711e --- /dev/null +++ b/black-23.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c7b8d606e728a41ea1ccbd7264677e494e87cf630e399262ced92d4a8dac940 +size 582156 diff --git a/python-black.changes b/python-black.changes index 416af9f..42a3e9c 100644 --- a/python-black.changes +++ b/python-black.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Mon Apr 3 18:49:11 UTC 2023 - Dirk Müller + +- update to 23.3.0: + * Import lines with `# fmt: skip` and `# fmt: off` no longer + have an extra blank line added when they are right after + another import line (#3610) + * Added support for formatting files with invalid type comments + * Document that only the most recent release is supported for + security issues; + * Introduce the 2023 stable style, which incorporates most + aspects of last year's preview style (#3418). + * Enforce empty lines before classes and functions with sticky + leading comments + * Reformat empty and whitespace-only files as either an empty + file (if no newline is present) or as a single newline character + (if a newline is present) (#3348) + * Correctly handle trailing commas that are inside a line's + leading non-nested parens + * `--skip-string-normalization` / `-S` now prevents docstring + prefixes from being + * Details see https://github.com/psf/black/releases/tag/23.3.0 + ------------------------------------------------------------------- Fri Sep 9 14:42:55 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-black.spec b/python-black.spec index 25b75e6..2b65468 100644 --- a/python-black.spec +++ b/python-black.spec @@ -1,7 +1,7 @@ # # spec file for package python-black # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,8 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-black -Version: 22.8.0 +Version: 23.3.0 Release: 0 Summary: A code formatter written in, and written for Python License: MIT @@ -28,18 +26,21 @@ Source: https://files.pythonhosted.org/packages/source/b/black/black-%{v BuildRequires: %{python_module aiohttp >= 3.3.2} BuildRequires: %{python_module aiohttp_cors} BuildRequires: %{python_module attrs >= 18.1.0} -BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module click >= 8.0.0} BuildRequires: %{python_module dataclasses if %python-base < 3.7} +BuildRequires: %{python_module hatch-fancy-pypi-readme} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling >= 1.8.0} BuildRequires: %{python_module mypy_extensions >= 0.4.3} BuildRequires: %{python_module pathspec >= 0.9.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module platformdirs >= 2} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tomli >= 1.1.0} BuildRequires: %{python_module typed-ast >= 1.4.2 if %python-base < 3.8} BuildRequires: %{python_module typing_extensions >= 3.10.0.0 if %python-base < 3.10} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-aiohttp >= 3.3.2 @@ -79,10 +80,10 @@ also recognizes YAPF's block comments to the same effect. %autosetup -p1 -n black-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/black %python_clone -a %{buildroot}%{_bindir}/blackd %{python_expand %fdupes %{buildroot}%{$python_sitelib}}