2013-04-23 14:59:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-flake8
|
|
|
|
#
|
2020-05-04 22:33:15 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-04-23 14:59:44 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-02 09:15:41 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-17 14:51:08 +02:00
|
|
|
#
|
2013-04-23 14:59:44 +02:00
|
|
|
|
|
|
|
|
2017-03-24 16:40:30 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-08-08 23:44:53 +02:00
|
|
|
%bcond_without python2
|
2013-04-23 14:59:44 +02:00
|
|
|
Name: python-flake8
|
Accepting request 805568 from home:bnavigator:branches:devel:languages:python
- Update to 3.8.1
* Fix --output-file (regression in 3.8.0) (See also GitLab!427,
GitLab#637)
- Update notes for 3.8.0
* Fix logical checks which report positions out of bounds (See also
GitLab!422, GitLab#635)
* Fix --exclude=.* accidentally matching . and .. (See also GitLab!424,
GitLab#632)
* Add deprecation message for vcs hooks (See also GitLab!420, GitLab#568)
- Update notes for 3.8.0a2
* Fix type="str" optparse options (See also GitLab!419)
- Update notes for 3.8.0a1
New Dependency Information
* Remove dependency on entrypoints and add dependency on importlib-metadata
(only for python<3.8) (See also GitLab!388, GitLab#569)
* Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also GitLab!417)
* pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also GitLab!418)
Features
* Add --extend-exclude option to add to --exclude without overwriting (See
also GitLab!315, GitLab#535)
* Move argument parsing from optparse to argparse (See also GitLab!341
* Group plugin options in --help (See also GitLab!342, GitLab#565)
* Remove parsing of verbose from configuration files as it was not
consistently applied (See also GitLab!360, GitLab#439)
* Remove parsing of output_file from configuration files as it was not
consistently applied (See also GitLab!361)
* Resolve configuration files relative to cwd instead of common prefix of
passed filenames. You may need to change flake8 subproject to cd subproject
&& flake8 . (See also GitLab!363)
* Officially support python3.8 (See also GitLab!377)
* --disable-noqa now also disables # flake8: noqa (See also GitLab!380,
GitLab#590)
* Ensure that a missing file produces a E902 error (See also GitLab!404,
GitLab#600)
* # noqa comments now apply to all of the lines in an explicit \ continuation
or in a line continued by a multi-line string (See also GitLab!413, GitLab#375)
Bugs Fixed
* Fix --exclude=./t.py to only match t.py at the top level (See also
GitLab!311, GitLab#382)
* Fix --show-source when a file is indented with tabs (See also GitLab!339,
GitLab#563)
* Fix crash when --max-line-length is given a non-integer (See also
GitLab!341, GitLab#541)
* Prevent flip-flopping of indent_char causing extra E101 errors (See also
GitLab!357, pycodestyle#886)
* Only enable multiprocessing when the method is fork fixing issues on macos
with python3.8+ (See also GitLab!366, GitLab#587) (note: this fix also
landed in 3.7.9)
* noqa is now only handled by flake8 fixing specific-noqa. Plugins requesting
this parameter will always receive False (See also GitLab!331, GitLab#552)
* Fix duplicate loading of plugins when invoked via python -m flake8 (See also
GitLab!388)
* Fix early exit when --exit-zero and --diff are provided and the diff is
empty (See also GitLab!391)
* Consistently split lines when \f is present when reading from stdin
(See also GitLab!406, GitLab#270)
Deprecations
* python setup.py flake8 (setuptools integration) is now deprecated and will
be removed in a future version (See also GitLab!330, GitLab#544)
* type='string' (optparse) types are deprecated, use type=callable (argparse)
instead. Support for type='string' will be removed in a future version (See
also GitLab!341)
* %default in plugin option help text is deprecated, use %(default)s instead.
Support for %default will be removed in a future version (See also
GitLab!341)
* optparse-style action='callback' setting for options is deprecated,
use argparse action classes instead. This will be removed in a future
version (See also GitLab!341)
- remove remove_mock_dependency.patch
- remove pyflakes-version.patch
OBS-URL: https://build.opensuse.org/request/show/805568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=60
2020-05-15 10:12:26 +02:00
|
|
|
Version: 3.8.1
|
2013-04-23 14:59:44 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Modular source code checker: pep8, pyflakes and co
|
2013-06-17 14:51:08 +02:00
|
|
|
License: MIT
|
2018-08-08 23:44:53 +02:00
|
|
|
URL: https://gitlab.com/pycqa/flake8
|
2017-03-24 16:40:30 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz
|
Accepting request 805568 from home:bnavigator:branches:devel:languages:python
- Update to 3.8.1
* Fix --output-file (regression in 3.8.0) (See also GitLab!427,
GitLab#637)
- Update notes for 3.8.0
* Fix logical checks which report positions out of bounds (See also
GitLab!422, GitLab#635)
* Fix --exclude=.* accidentally matching . and .. (See also GitLab!424,
GitLab#632)
* Add deprecation message for vcs hooks (See also GitLab!420, GitLab#568)
- Update notes for 3.8.0a2
* Fix type="str" optparse options (See also GitLab!419)
- Update notes for 3.8.0a1
New Dependency Information
* Remove dependency on entrypoints and add dependency on importlib-metadata
(only for python<3.8) (See also GitLab!388, GitLab#569)
* Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also GitLab!417)
* pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also GitLab!418)
Features
* Add --extend-exclude option to add to --exclude without overwriting (See
also GitLab!315, GitLab#535)
* Move argument parsing from optparse to argparse (See also GitLab!341
* Group plugin options in --help (See also GitLab!342, GitLab#565)
* Remove parsing of verbose from configuration files as it was not
consistently applied (See also GitLab!360, GitLab#439)
* Remove parsing of output_file from configuration files as it was not
consistently applied (See also GitLab!361)
* Resolve configuration files relative to cwd instead of common prefix of
passed filenames. You may need to change flake8 subproject to cd subproject
&& flake8 . (See also GitLab!363)
* Officially support python3.8 (See also GitLab!377)
* --disable-noqa now also disables # flake8: noqa (See also GitLab!380,
GitLab#590)
* Ensure that a missing file produces a E902 error (See also GitLab!404,
GitLab#600)
* # noqa comments now apply to all of the lines in an explicit \ continuation
or in a line continued by a multi-line string (See also GitLab!413, GitLab#375)
Bugs Fixed
* Fix --exclude=./t.py to only match t.py at the top level (See also
GitLab!311, GitLab#382)
* Fix --show-source when a file is indented with tabs (See also GitLab!339,
GitLab#563)
* Fix crash when --max-line-length is given a non-integer (See also
GitLab!341, GitLab#541)
* Prevent flip-flopping of indent_char causing extra E101 errors (See also
GitLab!357, pycodestyle#886)
* Only enable multiprocessing when the method is fork fixing issues on macos
with python3.8+ (See also GitLab!366, GitLab#587) (note: this fix also
landed in 3.7.9)
* noqa is now only handled by flake8 fixing specific-noqa. Plugins requesting
this parameter will always receive False (See also GitLab!331, GitLab#552)
* Fix duplicate loading of plugins when invoked via python -m flake8 (See also
GitLab!388)
* Fix early exit when --exit-zero and --diff are provided and the diff is
empty (See also GitLab!391)
* Consistently split lines when \f is present when reading from stdin
(See also GitLab!406, GitLab#270)
Deprecations
* python setup.py flake8 (setuptools integration) is now deprecated and will
be removed in a future version (See also GitLab!330, GitLab#544)
* type='string' (optparse) types are deprecated, use type=callable (argparse)
instead. Support for type='string' will be removed in a future version (See
also GitLab!341)
* %default in plugin option help text is deprecated, use %(default)s instead.
Support for %default will be removed in a future version (See also
GitLab!341)
* optparse-style action='callback' setting for options is deprecated,
use argparse action classes instead. This will be removed in a future
version (See also GitLab!341)
- remove remove_mock_dependency.patch
- remove pyflakes-version.patch
OBS-URL: https://build.opensuse.org/request/show/805568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=60
2020-05-15 10:12:26 +02:00
|
|
|
Patch0: fix-mock-patch-with-python3.4.patch
|
2017-03-24 16:40:30 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-15 10:12:58 +02:00
|
|
|
Requires: python-importlib-metadata
|
2018-08-08 23:44:53 +02:00
|
|
|
Requires: python-mccabe >= 0.6.0
|
Accepting request 805568 from home:bnavigator:branches:devel:languages:python
- Update to 3.8.1
* Fix --output-file (regression in 3.8.0) (See also GitLab!427,
GitLab#637)
- Update notes for 3.8.0
* Fix logical checks which report positions out of bounds (See also
GitLab!422, GitLab#635)
* Fix --exclude=.* accidentally matching . and .. (See also GitLab!424,
GitLab#632)
* Add deprecation message for vcs hooks (See also GitLab!420, GitLab#568)
- Update notes for 3.8.0a2
* Fix type="str" optparse options (See also GitLab!419)
- Update notes for 3.8.0a1
New Dependency Information
* Remove dependency on entrypoints and add dependency on importlib-metadata
(only for python<3.8) (See also GitLab!388, GitLab#569)
* Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also GitLab!417)
* pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also GitLab!418)
Features
* Add --extend-exclude option to add to --exclude without overwriting (See
also GitLab!315, GitLab#535)
* Move argument parsing from optparse to argparse (See also GitLab!341
* Group plugin options in --help (See also GitLab!342, GitLab#565)
* Remove parsing of verbose from configuration files as it was not
consistently applied (See also GitLab!360, GitLab#439)
* Remove parsing of output_file from configuration files as it was not
consistently applied (See also GitLab!361)
* Resolve configuration files relative to cwd instead of common prefix of
passed filenames. You may need to change flake8 subproject to cd subproject
&& flake8 . (See also GitLab!363)
* Officially support python3.8 (See also GitLab!377)
* --disable-noqa now also disables # flake8: noqa (See also GitLab!380,
GitLab#590)
* Ensure that a missing file produces a E902 error (See also GitLab!404,
GitLab#600)
* # noqa comments now apply to all of the lines in an explicit \ continuation
or in a line continued by a multi-line string (See also GitLab!413, GitLab#375)
Bugs Fixed
* Fix --exclude=./t.py to only match t.py at the top level (See also
GitLab!311, GitLab#382)
* Fix --show-source when a file is indented with tabs (See also GitLab!339,
GitLab#563)
* Fix crash when --max-line-length is given a non-integer (See also
GitLab!341, GitLab#541)
* Prevent flip-flopping of indent_char causing extra E101 errors (See also
GitLab!357, pycodestyle#886)
* Only enable multiprocessing when the method is fork fixing issues on macos
with python3.8+ (See also GitLab!366, GitLab#587) (note: this fix also
landed in 3.7.9)
* noqa is now only handled by flake8 fixing specific-noqa. Plugins requesting
this parameter will always receive False (See also GitLab!331, GitLab#552)
* Fix duplicate loading of plugins when invoked via python -m flake8 (See also
GitLab!388)
* Fix early exit when --exit-zero and --diff are provided and the diff is
empty (See also GitLab!391)
* Consistently split lines when \f is present when reading from stdin
(See also GitLab!406, GitLab#270)
Deprecations
* python setup.py flake8 (setuptools integration) is now deprecated and will
be removed in a future version (See also GitLab!330, GitLab#544)
* type='string' (optparse) types are deprecated, use type=callable (argparse)
instead. Support for type='string' will be removed in a future version (See
also GitLab!341)
* %default in plugin option help text is deprecated, use %(default)s instead.
Support for %default will be removed in a future version (See also
GitLab!341)
* optparse-style action='callback' setting for options is deprecated,
use argparse action classes instead. This will be removed in a future
version (See also GitLab!341)
- remove remove_mock_dependency.patch
- remove pyflakes-version.patch
OBS-URL: https://build.opensuse.org/request/show/805568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=60
2020-05-15 10:12:26 +02:00
|
|
|
Requires: python-pycodestyle >= 2.6.0~a1
|
Accepting request 671477 from home:alarrosa:branches:devel:languages:python
- Update to version 3.7.5:
* Bugs Fixed
+ Fix reporting of pyflakes "referenced before assignment" error
(See also GitLab!301, GitLab#503)
- Update to version 3.7.4:
* Bugs Fixed
+ Fix performance regression with lots of per-file-ignores and errors
(See also GitLab!299, GitLab#501)
- Update to version 3.7.3:
* Bugs Fixed
+ Fix imports of typing in python 3.5.0 / 3.5.1 (See also GitLab!294,
GitLab#498)
+ Fix flake8 --statistics (See also GitLab!295, GitLab#499)
+ Gracefully ignore flake8-per-file-ignores plugin if installed
(See also GitLab!297, GitLab#495)
+ Improve error message for malformed per-file-ignores
(See also GitLab!298, GitLab#489)
- Update to version 3.7.2:
* Bugs Fixed
+ Fix broken flake8 --diff (regressed in 3.7.0) (See also GitLab!292,
GitLab#490)
+ Fix typo in plugin exception reporting (See also GitLab!275, GitLab#491)
+ Fix AttributeError while attempting to use the legacy api
(regressed in 3.7.0) (See also GitLab!293, GitLab#497)
- Update to version 3.7.1:
* Bugs Fixed
+ Fix capitalized filenames in per-file-ignores setting (See also GitLab!290, GitLab#488)
- Update to version 3.7.0:
* New Dependency Information
+ Add dependency on entrypoints >= 0.3, < 0.4
OBS-URL: https://build.opensuse.org/request/show/671477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=44
2019-02-05 11:24:45 +01:00
|
|
|
Requires: python-pyflakes >= 2.1.0
|
2019-03-03 09:36:36 +01:00
|
|
|
Requires: python-typing
|
2018-08-08 23:44:53 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
BuildArch: noarch
|
2017-03-24 16:40:30 +01:00
|
|
|
# SECTION test requirements
|
Accepting request 805568 from home:bnavigator:branches:devel:languages:python
- Update to 3.8.1
* Fix --output-file (regression in 3.8.0) (See also GitLab!427,
GitLab#637)
- Update notes for 3.8.0
* Fix logical checks which report positions out of bounds (See also
GitLab!422, GitLab#635)
* Fix --exclude=.* accidentally matching . and .. (See also GitLab!424,
GitLab#632)
* Add deprecation message for vcs hooks (See also GitLab!420, GitLab#568)
- Update notes for 3.8.0a2
* Fix type="str" optparse options (See also GitLab!419)
- Update notes for 3.8.0a1
New Dependency Information
* Remove dependency on entrypoints and add dependency on importlib-metadata
(only for python<3.8) (See also GitLab!388, GitLab#569)
* Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also GitLab!417)
* pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also GitLab!418)
Features
* Add --extend-exclude option to add to --exclude without overwriting (See
also GitLab!315, GitLab#535)
* Move argument parsing from optparse to argparse (See also GitLab!341
* Group plugin options in --help (See also GitLab!342, GitLab#565)
* Remove parsing of verbose from configuration files as it was not
consistently applied (See also GitLab!360, GitLab#439)
* Remove parsing of output_file from configuration files as it was not
consistently applied (See also GitLab!361)
* Resolve configuration files relative to cwd instead of common prefix of
passed filenames. You may need to change flake8 subproject to cd subproject
&& flake8 . (See also GitLab!363)
* Officially support python3.8 (See also GitLab!377)
* --disable-noqa now also disables # flake8: noqa (See also GitLab!380,
GitLab#590)
* Ensure that a missing file produces a E902 error (See also GitLab!404,
GitLab#600)
* # noqa comments now apply to all of the lines in an explicit \ continuation
or in a line continued by a multi-line string (See also GitLab!413, GitLab#375)
Bugs Fixed
* Fix --exclude=./t.py to only match t.py at the top level (See also
GitLab!311, GitLab#382)
* Fix --show-source when a file is indented with tabs (See also GitLab!339,
GitLab#563)
* Fix crash when --max-line-length is given a non-integer (See also
GitLab!341, GitLab#541)
* Prevent flip-flopping of indent_char causing extra E101 errors (See also
GitLab!357, pycodestyle#886)
* Only enable multiprocessing when the method is fork fixing issues on macos
with python3.8+ (See also GitLab!366, GitLab#587) (note: this fix also
landed in 3.7.9)
* noqa is now only handled by flake8 fixing specific-noqa. Plugins requesting
this parameter will always receive False (See also GitLab!331, GitLab#552)
* Fix duplicate loading of plugins when invoked via python -m flake8 (See also
GitLab!388)
* Fix early exit when --exit-zero and --diff are provided and the diff is
empty (See also GitLab!391)
* Consistently split lines when \f is present when reading from stdin
(See also GitLab!406, GitLab#270)
Deprecations
* python setup.py flake8 (setuptools integration) is now deprecated and will
be removed in a future version (See also GitLab!330, GitLab#544)
* type='string' (optparse) types are deprecated, use type=callable (argparse)
instead. Support for type='string' will be removed in a future version (See
also GitLab!341)
* %default in plugin option help text is deprecated, use %(default)s instead.
Support for %default will be removed in a future version (See also
GitLab!341)
* optparse-style action='callback' setting for options is deprecated,
use argparse action classes instead. This will be removed in a future
version (See also GitLab!341)
- remove remove_mock_dependency.patch
- remove pyflakes-version.patch
OBS-URL: https://build.opensuse.org/request/show/805568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=60
2020-05-15 10:12:26 +02:00
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
Accepting request 671477 from home:alarrosa:branches:devel:languages:python
- Update to version 3.7.5:
* Bugs Fixed
+ Fix reporting of pyflakes "referenced before assignment" error
(See also GitLab!301, GitLab#503)
- Update to version 3.7.4:
* Bugs Fixed
+ Fix performance regression with lots of per-file-ignores and errors
(See also GitLab!299, GitLab#501)
- Update to version 3.7.3:
* Bugs Fixed
+ Fix imports of typing in python 3.5.0 / 3.5.1 (See also GitLab!294,
GitLab#498)
+ Fix flake8 --statistics (See also GitLab!295, GitLab#499)
+ Gracefully ignore flake8-per-file-ignores plugin if installed
(See also GitLab!297, GitLab#495)
+ Improve error message for malformed per-file-ignores
(See also GitLab!298, GitLab#489)
- Update to version 3.7.2:
* Bugs Fixed
+ Fix broken flake8 --diff (regressed in 3.7.0) (See also GitLab!292,
GitLab#490)
+ Fix typo in plugin exception reporting (See also GitLab!275, GitLab#491)
+ Fix AttributeError while attempting to use the legacy api
(regressed in 3.7.0) (See also GitLab!293, GitLab#497)
- Update to version 3.7.1:
* Bugs Fixed
+ Fix capitalized filenames in per-file-ignores setting (See also GitLab!290, GitLab#488)
- Update to version 3.7.0:
* New Dependency Information
+ Add dependency on entrypoints >= 0.3, < 0.4
OBS-URL: https://build.opensuse.org/request/show/671477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=44
2019-02-05 11:24:45 +01:00
|
|
|
BuildRequires: %{python_module mccabe >= 0.6.0}
|
Accepting request 805568 from home:bnavigator:branches:devel:languages:python
- Update to 3.8.1
* Fix --output-file (regression in 3.8.0) (See also GitLab!427,
GitLab#637)
- Update notes for 3.8.0
* Fix logical checks which report positions out of bounds (See also
GitLab!422, GitLab#635)
* Fix --exclude=.* accidentally matching . and .. (See also GitLab!424,
GitLab#632)
* Add deprecation message for vcs hooks (See also GitLab!420, GitLab#568)
- Update notes for 3.8.0a2
* Fix type="str" optparse options (See also GitLab!419)
- Update notes for 3.8.0a1
New Dependency Information
* Remove dependency on entrypoints and add dependency on importlib-metadata
(only for python<3.8) (See also GitLab!388, GitLab#569)
* Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also GitLab!417)
* pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also GitLab!418)
Features
* Add --extend-exclude option to add to --exclude without overwriting (See
also GitLab!315, GitLab#535)
* Move argument parsing from optparse to argparse (See also GitLab!341
* Group plugin options in --help (See also GitLab!342, GitLab#565)
* Remove parsing of verbose from configuration files as it was not
consistently applied (See also GitLab!360, GitLab#439)
* Remove parsing of output_file from configuration files as it was not
consistently applied (See also GitLab!361)
* Resolve configuration files relative to cwd instead of common prefix of
passed filenames. You may need to change flake8 subproject to cd subproject
&& flake8 . (See also GitLab!363)
* Officially support python3.8 (See also GitLab!377)
* --disable-noqa now also disables # flake8: noqa (See also GitLab!380,
GitLab#590)
* Ensure that a missing file produces a E902 error (See also GitLab!404,
GitLab#600)
* # noqa comments now apply to all of the lines in an explicit \ continuation
or in a line continued by a multi-line string (See also GitLab!413, GitLab#375)
Bugs Fixed
* Fix --exclude=./t.py to only match t.py at the top level (See also
GitLab!311, GitLab#382)
* Fix --show-source when a file is indented with tabs (See also GitLab!339,
GitLab#563)
* Fix crash when --max-line-length is given a non-integer (See also
GitLab!341, GitLab#541)
* Prevent flip-flopping of indent_char causing extra E101 errors (See also
GitLab!357, pycodestyle#886)
* Only enable multiprocessing when the method is fork fixing issues on macos
with python3.8+ (See also GitLab!366, GitLab#587) (note: this fix also
landed in 3.7.9)
* noqa is now only handled by flake8 fixing specific-noqa. Plugins requesting
this parameter will always receive False (See also GitLab!331, GitLab#552)
* Fix duplicate loading of plugins when invoked via python -m flake8 (See also
GitLab!388)
* Fix early exit when --exit-zero and --diff are provided and the diff is
empty (See also GitLab!391)
* Consistently split lines when \f is present when reading from stdin
(See also GitLab!406, GitLab#270)
Deprecations
* python setup.py flake8 (setuptools integration) is now deprecated and will
be removed in a future version (See also GitLab!330, GitLab#544)
* type='string' (optparse) types are deprecated, use type=callable (argparse)
instead. Support for type='string' will be removed in a future version (See
also GitLab!341)
* %default in plugin option help text is deprecated, use %(default)s instead.
Support for %default will be removed in a future version (See also
GitLab!341)
* optparse-style action='callback' setting for options is deprecated,
use argparse action classes instead. This will be removed in a future
version (See also GitLab!341)
- remove remove_mock_dependency.patch
- remove pyflakes-version.patch
OBS-URL: https://build.opensuse.org/request/show/805568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=60
2020-05-15 10:12:26 +02:00
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pycodestyle >= 2.6.0~a1}
|
|
|
|
BuildRequires: %{python_module pyflakes >= 2.2.0}
|
2017-03-24 16:40:30 +01:00
|
|
|
BuildRequires: %{python_module pytest-runner}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-03 09:36:36 +01:00
|
|
|
BuildRequires: %{python_module typing}
|
2018-01-11 13:13:07 +01:00
|
|
|
%if %{with python2}
|
2019-02-06 22:25:51 +01:00
|
|
|
BuildRequires: python2-configparser >= 3.7.0
|
2017-03-24 16:40:30 +01:00
|
|
|
BuildRequires: python2-enum34
|
Accepting request 671477 from home:alarrosa:branches:devel:languages:python
- Update to version 3.7.5:
* Bugs Fixed
+ Fix reporting of pyflakes "referenced before assignment" error
(See also GitLab!301, GitLab#503)
- Update to version 3.7.4:
* Bugs Fixed
+ Fix performance regression with lots of per-file-ignores and errors
(See also GitLab!299, GitLab#501)
- Update to version 3.7.3:
* Bugs Fixed
+ Fix imports of typing in python 3.5.0 / 3.5.1 (See also GitLab!294,
GitLab#498)
+ Fix flake8 --statistics (See also GitLab!295, GitLab#499)
+ Gracefully ignore flake8-per-file-ignores plugin if installed
(See also GitLab!297, GitLab#495)
+ Improve error message for malformed per-file-ignores
(See also GitLab!298, GitLab#489)
- Update to version 3.7.2:
* Bugs Fixed
+ Fix broken flake8 --diff (regressed in 3.7.0) (See also GitLab!292,
GitLab#490)
+ Fix typo in plugin exception reporting (See also GitLab!275, GitLab#491)
+ Fix AttributeError while attempting to use the legacy api
(regressed in 3.7.0) (See also GitLab!293, GitLab#497)
- Update to version 3.7.1:
* Bugs Fixed
+ Fix capitalized filenames in per-file-ignores setting (See also GitLab!290, GitLab#488)
- Update to version 3.7.0:
* New Dependency Information
+ Add dependency on entrypoints >= 0.3, < 0.4
OBS-URL: https://build.opensuse.org/request/show/671477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=44
2019-02-05 11:24:45 +01:00
|
|
|
BuildRequires: python2-functools32
|
2018-09-06 00:21:58 +02:00
|
|
|
BuildRequires: python2-mock
|
2018-01-11 13:13:07 +01:00
|
|
|
%endif
|
2017-03-24 16:40:30 +01:00
|
|
|
# /SECTION
|
|
|
|
%ifpython2
|
2019-02-06 22:25:51 +01:00
|
|
|
Requires: python-configparser >= 3.7.0
|
2017-03-24 16:40:30 +01:00
|
|
|
Requires: python-enum34
|
Accepting request 671477 from home:alarrosa:branches:devel:languages:python
- Update to version 3.7.5:
* Bugs Fixed
+ Fix reporting of pyflakes "referenced before assignment" error
(See also GitLab!301, GitLab#503)
- Update to version 3.7.4:
* Bugs Fixed
+ Fix performance regression with lots of per-file-ignores and errors
(See also GitLab!299, GitLab#501)
- Update to version 3.7.3:
* Bugs Fixed
+ Fix imports of typing in python 3.5.0 / 3.5.1 (See also GitLab!294,
GitLab#498)
+ Fix flake8 --statistics (See also GitLab!295, GitLab#499)
+ Gracefully ignore flake8-per-file-ignores plugin if installed
(See also GitLab!297, GitLab#495)
+ Improve error message for malformed per-file-ignores
(See also GitLab!298, GitLab#489)
- Update to version 3.7.2:
* Bugs Fixed
+ Fix broken flake8 --diff (regressed in 3.7.0) (See also GitLab!292,
GitLab#490)
+ Fix typo in plugin exception reporting (See also GitLab!275, GitLab#491)
+ Fix AttributeError while attempting to use the legacy api
(regressed in 3.7.0) (See also GitLab!293, GitLab#497)
- Update to version 3.7.1:
* Bugs Fixed
+ Fix capitalized filenames in per-file-ignores setting (See also GitLab!290, GitLab#488)
- Update to version 3.7.0:
* New Dependency Information
+ Add dependency on entrypoints >= 0.3, < 0.4
OBS-URL: https://build.opensuse.org/request/show/671477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=44
2019-02-05 11:24:45 +01:00
|
|
|
Requires: python-functools32
|
2019-02-06 22:25:51 +01:00
|
|
|
%endif
|
2017-03-24 16:40:30 +01:00
|
|
|
%python_subpackages
|
2013-04-23 14:59:44 +02:00
|
|
|
|
|
|
|
%description
|
2019-03-03 09:36:36 +01:00
|
|
|
Flake8 is a modular extensible source code checker including wrappers
|
|
|
|
around these tools:
|
2013-04-23 14:59:44 +02:00
|
|
|
|
|
|
|
- PyFlakes
|
|
|
|
- pep8
|
|
|
|
- Ned Batchelder's McCabe script
|
|
|
|
|
|
|
|
Flake8 runs all the tools by launching the single ``flake8`` script.
|
|
|
|
|
2019-03-03 09:36:36 +01:00
|
|
|
%package -n %{name}-doc
|
2019-07-19 14:21:54 +02:00
|
|
|
Summary: Documentation files for %{name}
|
2019-03-03 09:36:36 +01:00
|
|
|
Recommends: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n %{name}-doc
|
|
|
|
Flake8 is a modular extensible source code checker.
|
|
|
|
|
|
|
|
This package provides documentation for %{name}.
|
|
|
|
|
2013-04-23 14:59:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n flake8-%{version}
|
2018-08-08 23:44:53 +02:00
|
|
|
%autopatch -p1
|
2013-04-23 14:59:44 +02:00
|
|
|
|
|
|
|
%build
|
2017-03-24 16:40:30 +01:00
|
|
|
%python_build
|
2013-04-23 14:59:44 +02:00
|
|
|
|
|
|
|
%install
|
2017-03-24 16:40:30 +01:00
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/flake8
|
2018-08-08 23:44:53 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-01-13 10:39:35 +01:00
|
|
|
|
|
|
|
%post
|
2017-03-24 16:40:30 +01:00
|
|
|
%python_install_alternative flake8
|
2016-01-13 10:39:35 +01:00
|
|
|
|
2017-03-24 16:40:30 +01:00
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative flake8
|
2016-01-13 10:39:35 +01:00
|
|
|
|
2013-04-24 11:04:57 +02:00
|
|
|
%check
|
Accepting request 805568 from home:bnavigator:branches:devel:languages:python
- Update to 3.8.1
* Fix --output-file (regression in 3.8.0) (See also GitLab!427,
GitLab#637)
- Update notes for 3.8.0
* Fix logical checks which report positions out of bounds (See also
GitLab!422, GitLab#635)
* Fix --exclude=.* accidentally matching . and .. (See also GitLab!424,
GitLab#632)
* Add deprecation message for vcs hooks (See also GitLab!420, GitLab#568)
- Update notes for 3.8.0a2
* Fix type="str" optparse options (See also GitLab!419)
- Update notes for 3.8.0a1
New Dependency Information
* Remove dependency on entrypoints and add dependency on importlib-metadata
(only for python<3.8) (See also GitLab!388, GitLab#569)
* Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also GitLab!417)
* pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also GitLab!418)
Features
* Add --extend-exclude option to add to --exclude without overwriting (See
also GitLab!315, GitLab#535)
* Move argument parsing from optparse to argparse (See also GitLab!341
* Group plugin options in --help (See also GitLab!342, GitLab#565)
* Remove parsing of verbose from configuration files as it was not
consistently applied (See also GitLab!360, GitLab#439)
* Remove parsing of output_file from configuration files as it was not
consistently applied (See also GitLab!361)
* Resolve configuration files relative to cwd instead of common prefix of
passed filenames. You may need to change flake8 subproject to cd subproject
&& flake8 . (See also GitLab!363)
* Officially support python3.8 (See also GitLab!377)
* --disable-noqa now also disables # flake8: noqa (See also GitLab!380,
GitLab#590)
* Ensure that a missing file produces a E902 error (See also GitLab!404,
GitLab#600)
* # noqa comments now apply to all of the lines in an explicit \ continuation
or in a line continued by a multi-line string (See also GitLab!413, GitLab#375)
Bugs Fixed
* Fix --exclude=./t.py to only match t.py at the top level (See also
GitLab!311, GitLab#382)
* Fix --show-source when a file is indented with tabs (See also GitLab!339,
GitLab#563)
* Fix crash when --max-line-length is given a non-integer (See also
GitLab!341, GitLab#541)
* Prevent flip-flopping of indent_char causing extra E101 errors (See also
GitLab!357, pycodestyle#886)
* Only enable multiprocessing when the method is fork fixing issues on macos
with python3.8+ (See also GitLab!366, GitLab#587) (note: this fix also
landed in 3.7.9)
* noqa is now only handled by flake8 fixing specific-noqa. Plugins requesting
this parameter will always receive False (See also GitLab!331, GitLab#552)
* Fix duplicate loading of plugins when invoked via python -m flake8 (See also
GitLab!388)
* Fix early exit when --exit-zero and --diff are provided and the diff is
empty (See also GitLab!391)
* Consistently split lines when \f is present when reading from stdin
(See also GitLab!406, GitLab#270)
Deprecations
* python setup.py flake8 (setuptools integration) is now deprecated and will
be removed in a future version (See also GitLab!330, GitLab#544)
* type='string' (optparse) types are deprecated, use type=callable (argparse)
instead. Support for type='string' will be removed in a future version (See
also GitLab!341)
* %default in plugin option help text is deprecated, use %(default)s instead.
Support for %default will be removed in a future version (See also
GitLab!341)
* optparse-style action='callback' setting for options is deprecated,
use argparse action classes instead. This will be removed in a future
version (See also GitLab!341)
- remove remove_mock_dependency.patch
- remove pyflakes-version.patch
OBS-URL: https://build.opensuse.org/request/show/805568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=60
2020-05-15 10:12:26 +02:00
|
|
|
%pytest tests
|
2013-04-24 11:04:57 +02:00
|
|
|
|
2017-03-24 16:40:30 +01:00
|
|
|
%files %{python_files}
|
2018-04-15 15:59:22 +02:00
|
|
|
%license LICENSE
|
2019-03-03 09:36:36 +01:00
|
|
|
%doc docs/source/manpage.rst
|
2017-03-24 16:40:30 +01:00
|
|
|
%python_alternative %{_bindir}/flake8
|
2018-11-02 09:15:41 +01:00
|
|
|
%dir %{python_sitelib}/flake8
|
|
|
|
%{python_sitelib}/flake8/*
|
|
|
|
%{python_sitelib}/flake8-%{version}-py*.egg-info
|
2013-04-23 14:59:44 +02:00
|
|
|
|
2019-03-03 09:36:36 +01:00
|
|
|
%files -n %{name}-doc
|
|
|
|
%doc README.rst
|
|
|
|
%doc docs/source/index.rst docs/source/faq.rst docs/source/glossary.rst
|
|
|
|
%doc docs/source/internal/ docs/source/user docs/source/plugin-development
|
|
|
|
%license LICENSE
|
|
|
|
|
2013-04-23 14:59:44 +02:00
|
|
|
%changelog
|