forked from pool/python-black
Accepting request 967998 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/967998 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-black?expand=0&rev=14
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a7c0192d35635f6fc1174be575cb7915e92e5dd629ee79fdaf0dcfa41a80afb5
|
||||
size 559521
|
||||
3
black-22.3.0.tar.gz
Normal file
3
black-22.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:35020b8886c022ced9282b51b5a875b6d1ab0c387b31a065b84db7c33085ca79
|
||||
size 554277
|
||||
@@ -1,3 +1,42 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 9 02:02:54 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
- specfile:
|
||||
* removed black-primer
|
||||
|
||||
- update to version 22.3.0:
|
||||
* Preview style
|
||||
+ Code cell separators #%% are now standardised to # %% (#2919)
|
||||
+ Remove unnecessary parentheses from except statements (#2939)
|
||||
+ Remove unnecessary parentheses from tuple unpacking in for loops
|
||||
(#2945)
|
||||
+ Avoid magic-trailing-comma in single-element subscripts (#2942)
|
||||
* Configuration
|
||||
+ Do not format __pypackages__ directories by default (#2836)
|
||||
+ Add support for specifying stable version with
|
||||
--required-version (#2832).
|
||||
+ Avoid crashing when the user has no homedir (#2814)
|
||||
+ Avoid crashing when md5 is not available (#2905)
|
||||
+ Fix handling of directory junctions on Windows (#2904)
|
||||
* Documentation
|
||||
+ Update pylint config documentation (#2931)
|
||||
* Integrations
|
||||
+ Move test to disable plugin in Vim/Neovim, which speeds up
|
||||
loading (#2896)
|
||||
* Output
|
||||
+ In verbose, mode, log when Black is using user-level config
|
||||
(#2861)
|
||||
* Packaging
|
||||
+ Fix Black to work with Click 8.1.0 (#2966)
|
||||
+ On Python 3.11 and newer, use the standard library's tomllib
|
||||
instead of tomli (#2903)
|
||||
+ black-primer, the deprecated internal devtool, has been removed
|
||||
and copied to a separate repository (#2924)
|
||||
* Parser
|
||||
+ Black can now parse starred expressions in the target of for and
|
||||
async for statements, e.g for item in *items_1, *items_2: pass
|
||||
(#2879).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 27 19:34:20 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-black
|
||||
Version: 22.1.0
|
||||
Version: 22.3.0
|
||||
Release: 0
|
||||
Summary: A code formatter written in, and written for Python
|
||||
License: MIT
|
||||
@@ -50,6 +50,9 @@ Requires: python-mypy_extensions >= 0.4.3
|
||||
Requires: python-pathspec >= 0.9.0
|
||||
Requires: python-platformdirs >= 2
|
||||
Requires: python-tomli >= 1.1.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%if 0%{?python_version_nodots} < 37
|
||||
Requires: python-dataclasses
|
||||
%endif
|
||||
@@ -59,9 +62,6 @@ Requires: python-typed-ast >= 1.4.2
|
||||
%if 0%{?python_version_nodots} < 310
|
||||
Requires: python-typing_extensions >= 3.10.0.0
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -77,7 +77,6 @@ also recognizes YAPF's block comments to the same effect.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n black-%{version}
|
||||
sed -i '1{/#!/d}' src/black_primer/cli.py src/black_primer/lib.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -86,10 +85,7 @@ sed -i '1{/#!/d}' src/black_primer/cli.py src/black_primer/lib.py
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/black
|
||||
%python_clone -a %{buildroot}%{_bindir}/blackd
|
||||
%python_clone -a %{buildroot}%{_bindir}/black-primer
|
||||
%{python_expand cp src/black_primer/primer.json %{buildroot}%{$python_sitelib}/black_primer/
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
||||
|
||||
%check
|
||||
# Copy one of the executable scripts into the PATH
|
||||
@@ -103,7 +99,7 @@ skiptests="test_expression_diff or test_bpo_2142_workaround"
|
||||
%pytest -k "not ($skiptests)"
|
||||
|
||||
%post
|
||||
%python_install_alternative black blackd black-primer
|
||||
%python_install_alternative black blackd
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative black
|
||||
@@ -113,9 +109,7 @@ skiptests="test_expression_diff or test_bpo_2142_workaround"
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/black
|
||||
%python_alternative %{_bindir}/blackd
|
||||
%python_alternative %{_bindir}/black-primer
|
||||
%{python_sitelib}/_black_version.py*
|
||||
%{python_sitelib}/black_primer/
|
||||
%{python_sitelib}/black/
|
||||
%{python_sitelib}/blackd/
|
||||
%{python_sitelib}/blib2to3/
|
||||
|
||||
Reference in New Issue
Block a user