From 5ddf72836a385a218425b8916dd693f2c021399ec09b797249c932d0dd829131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 9 Dec 2019 09:18:40 +0000 Subject: [PATCH] Accepting request 754979 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/754979 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=6 --- 2.2.0.tar.gz | 3 -- 3.1.4.tar.gz | 3 ++ python-flake8-comprehensions.changes | 55 ++++++++++++++++++++++++++++ python-flake8-comprehensions.spec | 8 ++-- 4 files changed, 63 insertions(+), 6 deletions(-) delete mode 100644 2.2.0.tar.gz create mode 100644 3.1.4.tar.gz diff --git a/2.2.0.tar.gz b/2.2.0.tar.gz deleted file mode 100644 index c90c682..0000000 --- a/2.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19f3fd0386d61a89d897218d129ef852ad60ccedc1fbfe5167b7cc678a052755 -size 12000 diff --git a/3.1.4.tar.gz b/3.1.4.tar.gz new file mode 100644 index 0000000..1656ef0 --- /dev/null +++ b/3.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:322de54ae0ca454a2734a3db79da08b7a8a0821ec6044b8fd697d2bb7f74f717 +size 16926 diff --git a/python-flake8-comprehensions.changes b/python-flake8-comprehensions.changes index a895c1c..7435a45 100644 --- a/python-flake8-comprehensions.changes +++ b/python-flake8-comprehensions.changes @@ -1,3 +1,58 @@ +------------------------------------------------------------------- +Sat Dec 7 17:47:28 UTC 2019 - Arun Persaud + +- specfile: + * be more specific in %files section + +- update to version 3.1.4: + * Remove the tuple/unpacking check from C416 to prevent false + positives where the type of the iterable is changed from some + iterable to a tuple. + +- changes from version 3.1.3: + * Ensure the fix for false positives in C416 rule for asynchronous + comprehensions runs on Python 3.6 too. + +- changes from version 3.1.2: + * Fix false positives in C416 rule for list comprehensions returning + tuples. + +- changes from version 3.1.1: + * Fix false positives in C416 rule for asynchronous comprehensions. + +- changes from version 3.1.0: + * Update Python support to 3.5-3.8. + * Fix false positives for C404 for list comprehensions not directly + creating tuples. + * Add C413 rule that checks for unnecessary use of list() or + reversed() around sorted(). + * Add C414 rule that checks for unnecessary use of the following: + + list(), reversed(), sorted(), or tuple() within set or sorted() + + list() or tuple() within list() or tuple() + + set() within set + * Add C415 rule that checks for unnecessary reversal of an iterable + via subscript within reversed(), set(), or sorted(). + * Add C416 rule that checks for unnecessary list or set + comprehensions that can be rewritten using list() or set(). + +- changes from version 3.0.1: + * Fix version display on flake8 --version (removing dependency on + cached-property). Thanks to Jon Dufresne. + +- changes from version 3.0.0: + * Update Flake8 support to 3.0+ only. 3.0.0 was released in 2016 and + the plugin hasn't been tested with it since. + +- changes from version 2.3.0: + * Converted setuptools metadata to configuration file. This meant + removing the __version__ attribute from the package. If you want + to inspect the installed version, use + importlib.metadata.version("flake8-comprehensions") (docs / + backport). + * Add dependencies on cached-property and importlib-metadata. + * Fix false negatives in C407 for cases when enumerate and sum() are + passed more than one argument. + ------------------------------------------------------------------- Fri Sep 13 07:29:08 UTC 2019 - Tomáš Chvátal diff --git a/python-flake8-comprehensions.spec b/python-flake8-comprehensions.spec index 2e083fd..f0c89e1 100644 --- a/python-flake8-comprehensions.spec +++ b/python-flake8-comprehensions.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8-comprehensions # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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: 2.2.0 +Version: 3.1.4 Release: 0 Summary: A flake8 plugin to help you write better list/set/dict comprehensions License: ISC @@ -57,6 +57,8 @@ A flake8 plugin that helps you write better list/set/dict comprehensions. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/flake8_comprehensions.py +%{python_sitelib}/flake8_comprehensions-%{version}-py*.egg-info +%pycache_only %{python_sitelib}/__pycache__ %changelog