Accepting request 879887 from devel:languages:python

- Update to 3.4.0:
  - Remove rules C407 (Unnecessary <dict/list> comprehension
    - <builtin> can take a generator) and C412 (Unnecessary
    <dict/list/set> 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/request/show/879887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8-comprehensions?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2021-03-18 21:55:19 +00:00 committed by Git OBS Bridge
commit 867a5cbd01
4 changed files with 29 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2624af35ebc593a5547123ab36489f934e26466deac029eaa60da18cac35d582
size 21257

3
3.4.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f8aacfa1753dd1a7e752c5ae7e899f67b186985984a39cbf994a583acdc165b
size 13524

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Thu Mar 18 12:59:11 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Update to 3.4.0:
- Remove rules C407 (Unnecessary <dict/list> comprehension
- <builtin> can take a generator) and C412 (Unnecessary
<dict/list/set> 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 <arun@gmx.de> Sat Jul 11 18:38:19 UTC 2020 - Arun Persaud <arun@gmx.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-flake8-comprehensions # 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 # 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
@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-flake8-comprehensions Name: python-flake8-comprehensions
Version: 3.2.3 Version: 3.4.0
Release: 0 Release: 0
Summary: A flake8 plugin to help you write better list/set/dict comprehensions Summary: A flake8 plugin to help you write better list/set/dict comprehensions
License: ISC License: ISC
@ -52,7 +52,8 @@ A flake8 plugin that helps you write better list/set/dict comprehensions.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest # gh#adamchainz/flake8-comprehensions#313
%pytest -k 'not test_C416_fail_1_list'
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE