From c4ed9289aad330acc8a6d6b949cbac45ad76d2a78588f029977ab70a189e4702 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 18 Mar 2021 13:05:37 +0000 Subject: [PATCH] - Update to 3.4.0: - Remove rules C407 (Unnecessary comprehension - can take a generator) and C412 (Unnecessary comprehension - 'in' can take a generator). Both rules recommended increasing laziness, which is not always desirable and can lead to subtle bugs. Also, a fully exhausted generator is slower than an equivalent comprehension, so the advice did not always improve performance. - Drop Python 3.5 support. - Support Python 3.9. - Move license from ISC to MIT License. - Partially reverted the change to C408 to make it apply again to when dict is called with keyword arguments, e.g. dict(a=1, b=2) will be flagged to be rewritten in the literal form {"a": 1, "b": 2} - Skip test test_C416_fail_1_list (gh#adamchainz/flake8-comprehensions#313). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=12 --- 3.2.3.tar.gz | 3 --- 3.4.0.tar.gz | 3 +++ python-flake8-comprehensions.changes | 22 ++++++++++++++++++++++ python-flake8-comprehensions.spec | 7 ++++--- 4 files changed, 29 insertions(+), 6 deletions(-) delete mode 100644 3.2.3.tar.gz create mode 100644 3.4.0.tar.gz diff --git a/3.2.3.tar.gz b/3.2.3.tar.gz deleted file mode 100644 index 480f1a8..0000000 --- a/3.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2624af35ebc593a5547123ab36489f934e26466deac029eaa60da18cac35d582 -size 21257 diff --git a/3.4.0.tar.gz b/3.4.0.tar.gz new file mode 100644 index 0000000..6c0b9ba --- /dev/null +++ b/3.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f8aacfa1753dd1a7e752c5ae7e899f67b186985984a39cbf994a583acdc165b +size 13524 diff --git a/python-flake8-comprehensions.changes b/python-flake8-comprehensions.changes index 009bae2..6f47e0c 100644 --- a/python-flake8-comprehensions.changes +++ b/python-flake8-comprehensions.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Thu Mar 18 12:59:11 UTC 2021 - Matej Cepl + +- Update to 3.4.0: + - Remove rules C407 (Unnecessary comprehension + - can take a generator) and C412 (Unnecessary + comprehension - 'in' can take a generator). + Both rules recommended increasing laziness, which is not + always desirable and can lead to subtle bugs. Also, a fully + exhausted generator is slower than an equivalent + comprehension, so the advice did not always improve + performance. + - Drop Python 3.5 support. + - Support Python 3.9. + - Move license from ISC to MIT License. + - Partially reverted the change to C408 to make it apply again + to when dict is called with keyword arguments, e.g. dict(a=1, + b=2) will be flagged to be rewritten in the literal form + {"a": 1, "b": 2} +- Skip test test_C416_fail_1_list + (gh#adamchainz/flake8-comprehensions#313). + ------------------------------------------------------------------- Sat Jul 11 18:38:19 UTC 2020 - Arun Persaud diff --git a/python-flake8-comprehensions.spec b/python-flake8-comprehensions.spec index 382fba5..456ba12 100644 --- a/python-flake8-comprehensions.spec +++ b/python-flake8-comprehensions.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8-comprehensions # -# 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-flake8-comprehensions -Version: 3.2.3 +Version: 3.4.0 Release: 0 Summary: A flake8 plugin to help you write better list/set/dict comprehensions License: ISC @@ -52,7 +52,8 @@ A flake8 plugin that helps you write better list/set/dict comprehensions. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# gh#adamchainz/flake8-comprehensions#313 +%pytest -k 'not test_C416_fail_1_list' %files %{python_files} %license LICENSE