Accepting request 859773 from devel:languages:python

- Update to Version 5.7.0
  * Fixed #1612: In rare circumstances an extra comma is added
    after import and before comment.
  * Fixed #1593: isort encounters bug in Python 3.6.0.
  * Implemented #1596: Provide ways for extension formatting and
    file paths to be specified when using streaming input from CLI.
  * Implemented #1583: Ability to output and diff within a single
    API call to isort.file.
  * Implemented #1562, #1592 & #1593: Better more useful fatal
    error messages.
  * Implemented #1575: Support for automatically fixing mixed
    indentation of import sections.
  * Implemented #1582: Added a CLI option for skipping symlinks.
  * Implemented #1603: Support for disabling float_to_top from the
    command line.
  * Implemented #1604: Allow toggling section comments on and off
    for indented import sections.

OBS-URL: https://build.opensuse.org/request/show/859773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=22
This commit is contained in:
Dominique Leuenberger 2021-01-04 18:06:23 +00:00 committed by Git OBS Bridge
commit f448569b11
4 changed files with 33 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4018898c19c5e28797f64289c6286682ddc29eb49b4075866f6c63d8500eb7ab
size 636779

3
isort-5.7.0-gh.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0075f620c552f6d52e26bc4ec53f44c716b2aaf0e4c8067dfffadef60413a740
size 705652

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Fri Jan 1 23:43:14 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Update to Version 5.7.0
* Fixed #1612: In rare circumstances an extra comma is added
after import and before comment.
* Fixed #1593: isort encounters bug in Python 3.6.0.
* Implemented #1596: Provide ways for extension formatting and
file paths to be specified when using streaming input from CLI.
* Implemented #1583: Ability to output and diff within a single
API call to isort.file.
* Implemented #1562, #1592 & #1593: Better more useful fatal
error messages.
* Implemented #1575: Support for automatically fixing mixed
indentation of import sections.
* Implemented #1582: Added a CLI option for skipping symlinks.
* Implemented #1603: Support for disabling float_to_top from the
command line.
* Implemented #1604: Allow toggling section comments on and off
for indented import sections.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 11 23:19:12 UTC 2020 - Benjamin Greiner <code@bnavigator.de> Fri Dec 11 23:19:12 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-isort # spec file for package python-isort
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -27,7 +27,7 @@
%endif %endif
%define skip_python2 1 %define skip_python2 1
Name: python-isort%{psuffix} Name: python-isort%{psuffix}
Version: 5.6.4 Version: 5.7.0
Release: 0 Release: 0
Summary: A Python utility / library to sort Python imports Summary: A Python utility / library to sort Python imports
License: MIT License: MIT
@ -68,10 +68,10 @@ BuildRequires: git
%description %description
isort your python imports for you so you dont have to. isort your python imports for you so you dont have to.
isort is a Python utility / library to sort imports alphabetically, and isort is a Python utility / library to sort imports alphabetically, and
automatically separated into sections and by type. It provides a command line automatically separated into sections and by type. It provides a command line
utility, Python library and plugins for various editors to quickly sort all your utility, Python library and plugins for various editors to quickly sort all your
imports. It requires Python 3.6+ to run but supports formatting Python 2 code imports. It requires Python 3.6+ to run but supports formatting Python 2 code
too. too.
%prep %prep
@ -85,6 +85,7 @@ chmod -x LICENSE
%install %install
%pyproject_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/isort %python_clone -a %{buildroot}%{_bindir}/isort
%python_clone -a %{buildroot}%{_bindir}/isort-identify-imports
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@ -125,7 +126,7 @@ pytest-%{$python_bin_suffix} -v \
%if !%{with test} %if !%{with test}
%post %post
%python_install_alternative isort %python_install_alternative isort isort-identify-imports
%postun %postun
%python_uninstall_alternative isort %python_uninstall_alternative isort
@ -134,6 +135,7 @@ pytest-%{$python_bin_suffix} -v \
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/isort %python_alternative %{_bindir}/isort
%python_alternative %{_bindir}/isort-identify-imports
%{python_sitelib}/isort %{python_sitelib}/isort
%{python_sitelib}/isort-%{version}.dist-info %{python_sitelib}/isort-%{version}.dist-info
%endif %endif