From 6c4930b3482b48d2ad18b5cc23e008ed7cb5472cc9a9577b4a47954d4313558b Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 21 Mar 2021 19:44:10 +0000 Subject: [PATCH] Accepting request 880409 from home:bnavigator:branches:devel:languages:python - Update to version 5.8.0 * Fixed #1631: as import comments can in some cases be duplicated. * Fixed #1667: extra newline added with float-to-top, after skip, in some cases. * Fixed #1594: incorrect placement of noqa comments with multiple from imports. * Fixed #1566: in some cases different length limits for dos based line endings. * Implemented #1648: Export MyPY type hints. * Implemented #1641: Identified import statements now return runnable code. * Implemented #1661: Added "wemake" profile. * Implemented #1669: Parallel (-j) now defaults to number of CPU cores if no value is provided. * Implemented #1668: Added a safeguard against accidental usage against /. * Implemented #1638 / #1644: Provide a flag --overwrite-in-place to ensure same file handle is used after sorting. * Implemented #1684: Added support for extending skips with --extend-skip and --extend-skip-glob. * Implemented #1688: Auto identification and skipping of some invalid import statements. * Implemented #1645: Ability to reverse the import sorting order. * Implemented #1504: Added ability to push star imports to the top to avoid overriding explicitly defined imports. * Documented #1685: Skip doesn't support plain directory names, but skip_glob does. OBS-URL: https://build.opensuse.org/request/show/880409 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=77 --- isort-5.7.0-gh.tar.gz | 3 --- isort-5.8.0-gh.tar.gz | 3 +++ python-isort.changes | 32 ++++++++++++++++++++++++++++++++ python-isort.spec | 8 ++++---- 4 files changed, 39 insertions(+), 7 deletions(-) delete mode 100644 isort-5.7.0-gh.tar.gz create mode 100644 isort-5.8.0-gh.tar.gz diff --git a/isort-5.7.0-gh.tar.gz b/isort-5.7.0-gh.tar.gz deleted file mode 100644 index b64a8eb..0000000 --- a/isort-5.7.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0075f620c552f6d52e26bc4ec53f44c716b2aaf0e4c8067dfffadef60413a740 -size 705652 diff --git a/isort-5.8.0-gh.tar.gz b/isort-5.8.0-gh.tar.gz new file mode 100644 index 0000000..e9f3062 --- /dev/null +++ b/isort-5.8.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aae32aa863c57735bba9665f2a1fa79416a4c528c45d021f0da5e62de504b3f8 +size 717068 diff --git a/python-isort.changes b/python-isort.changes index 8e82b56..6f78c7a 100644 --- a/python-isort.changes +++ b/python-isort.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Sun Mar 21 18:33:47 UTC 2021 - Ben Greiner + +- Update to version 5.8.0 + * Fixed #1631: as import comments can in some cases be + duplicated. + * Fixed #1667: extra newline added with float-to-top, after + skip, in some cases. + * Fixed #1594: incorrect placement of noqa comments with + multiple from imports. + * Fixed #1566: in some cases different length limits for dos + based line endings. + * Implemented #1648: Export MyPY type hints. + * Implemented #1641: Identified import statements now return + runnable code. + * Implemented #1661: Added "wemake" profile. + * Implemented #1669: Parallel (-j) now defaults to number of CPU + cores if no value is provided. + * Implemented #1668: Added a safeguard against accidental usage + against /. + * Implemented #1638 / #1644: Provide a flag --overwrite-in-place + to ensure same file handle is used after sorting. + * Implemented #1684: Added support for extending skips with + --extend-skip and --extend-skip-glob. + * Implemented #1688: Auto identification and skipping of some + invalid import statements. + * Implemented #1645: Ability to reverse the import sorting order. + * Implemented #1504: Added ability to push star imports to the + top to avoid overriding explicitly defined imports. + * Documented #1685: Skip doesn't support plain directory names, + but skip_glob does. + ------------------------------------------------------------------- Fri Jan 29 19:59:54 UTC 2021 - Benjamin Greiner diff --git a/python-isort.spec b/python-isort.spec index c6c1883..55a9c73 100644 --- a/python-isort.spec +++ b/python-isort.spec @@ -1,5 +1,5 @@ # -# spec file for package python-isort +# spec file for package python-isort-test # # Copyright (c) 2021 SUSE LLC # @@ -27,7 +27,7 @@ %endif %define skip_python2 1 Name: python-isort%{psuffix} -Version: 5.7.0 +Version: 5.8.0 Release: 0 Summary: A Python utility / library to sort Python imports License: MIT @@ -40,7 +40,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210127.3a18043 Requires: python-setuptools Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Recommends: python-colorama >= 0.4.3 Recommends: python-pip-api Recommends: python-pipreqs @@ -57,8 +57,8 @@ BuildRequires: %{python_module pip-api} BuildRequires: %{python_module pipreqs} BuildRequires: %{python_module poetry} BuildRequires: %{python_module pylama} +BuildRequires: %{python_module pytest > 6.0} BuildRequires: %{python_module pytest-mock} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module requirementslib >= 1.5} BuildRequires: git %endif