forked from pool/python-black
- 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-black?expand=0&rev=36
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:792f7eb540ba9a17e8656538701d3eb1afcb134e3b45b71f20b25c77a8db7e6e
|
||||
size 577317
|
||||
BIN
black-23.3.0.tar.gz
LFS
Normal file
BIN
black-23.3.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 3 18:49:11 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <yarunachalam@suse.com>
|
||||
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user