14
0

Accepting request 670469 from home:jayvdb:branches:devel:languages:python

- update to version 2.5.0
  * New checks:
    + E117: Over-indented code blocks
    + W505: Maximum doc-string length only when configured with --max-doc-length
  * Changes:
    + Remove support for EOL Python 2.6 and 3.3. PR #720.
    + Add E117 error for over-indented code blocks.
    + Allow W605 to be silenced by `# noqa` and fix the position reported by W605
    + Allow users to omit blank lines around one-liner definitions of classes and
      functions
    + Include the function return annotation (``->``) as requiring surrounding
      whitespace only on Python 3
    + Verify that only names can follow ``await``. Previously we allowed numbers
      and strings.
    + Add support for Python 3.7
    + Fix detection of annotated argument defaults for E252
    + Correct the position reported by W504
- Removed comp_w_changes_tokenize.patch as it was merged into version 2.5.0

OBS-URL: https://build.opensuse.org/request/show/670469
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycodestyle?expand=0&rev=12
This commit is contained in:
Tomáš Chvátal
2019-02-01 10:49:05 +00:00
committed by Git OBS Bridge
parent bb4ba55772
commit 086fb9c49a
5 changed files with 28 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pycodestyle
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-pycodestyle
Version: 2.4.0
Version: 2.5.0
Release: 0
Summary: Python style guide checker
License: MIT
Group: Development/Languages/Python
Url: https://pycodestyle.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/p/pycodestyle/pycodestyle-%{version}.tar.gz
Patch0: comp_w_changes_tokenize.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildArch: noarch