From 6dcda2c6edbd8f854517b5c8a03dfb7e6f300ad4db9760f4086af394c9c25439 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 2 Jan 2021 00:22:56 +0000 Subject: [PATCH] Accepting request 859770 from home:bnavigator:branches: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/859770 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=71 --- isort-5.6.4-gh.tar.gz | 3 --- isort-5.7.0-gh.tar.gz | 3 +++ python-isort.changes | 21 +++++++++++++++++++++ python-isort.spec | 16 +++++++++------- 4 files changed, 33 insertions(+), 10 deletions(-) delete mode 100644 isort-5.6.4-gh.tar.gz create mode 100644 isort-5.7.0-gh.tar.gz diff --git a/isort-5.6.4-gh.tar.gz b/isort-5.6.4-gh.tar.gz deleted file mode 100644 index a797105..0000000 --- a/isort-5.6.4-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4018898c19c5e28797f64289c6286682ddc29eb49b4075866f6c63d8500eb7ab -size 636779 diff --git a/isort-5.7.0-gh.tar.gz b/isort-5.7.0-gh.tar.gz new file mode 100644 index 0000000..b64a8eb --- /dev/null +++ b/isort-5.7.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0075f620c552f6d52e26bc4ec53f44c716b2aaf0e4c8067dfffadef60413a740 +size 705652 diff --git a/python-isort.changes b/python-isort.changes index 29327ab..560abfb 100644 --- a/python-isort.changes +++ b/python-isort.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Fri Jan 1 23:43:14 UTC 2021 - Benjamin Greiner + +- 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 diff --git a/python-isort.spec b/python-isort.spec index a4362fa..f299d2b 100644 --- a/python-isort.spec +++ b/python-isort.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,7 @@ %endif %define skip_python2 1 Name: python-isort%{psuffix} -Version: 5.6.4 +Version: 5.7.0 Release: 0 Summary: A Python utility / library to sort Python imports License: MIT @@ -68,10 +68,10 @@ BuildRequires: git %description isort your python imports for you so you don’t have to. -isort is a Python utility / library to sort imports alphabetically, and -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 -imports. It requires Python 3.6+ to run but supports formatting Python 2 code +isort is a Python utility / library to sort imports alphabetically, and +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 +imports. It requires Python 3.6+ to run but supports formatting Python 2 code too. %prep @@ -85,6 +85,7 @@ chmod -x LICENSE %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/isort +%python_clone -a %{buildroot}%{_bindir}/isort-identify-imports %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -125,7 +126,7 @@ pytest-%{$python_bin_suffix} -v \ %if !%{with test} %post -%python_install_alternative isort +%python_install_alternative isort isort-identify-imports %postun %python_uninstall_alternative isort @@ -134,6 +135,7 @@ pytest-%{$python_bin_suffix} -v \ %doc README.md %license LICENSE %python_alternative %{_bindir}/isort +%python_alternative %{_bindir}/isort-identify-imports %{python_sitelib}/isort %{python_sitelib}/isort-%{version}.dist-info %endif