Accepting request 805552 from home:bnavigator:branches:devel:languages:python

- Update to version 2.6.0
  * E306: fix detection inside ``async def``.
    PR gh#PyCQA/pycodestyle#929.
  * E301: fix regression disallowing decorated one-liners.  
    PR gh#PyCQA/pycodestyle#927.
  * E714: fix false positive with chained ``is not``.  
    PR gh#PyCQA/pycodestyle#931.
- Update to version 2.6.0a1
  New checks:
  * E225: require whitespace around ``and`` ``in`` ``is`` and ``or``. 
    PR gh#PyCQA/pycodestyle#847.
  Changes:
  * E117: fix indentation using tabs by treating as 8-space indents.
    PR gh#PyCQA/pycodestyle#837.
  * E721: fix false positive with names containg ``istype``.
    PR gh#PyCQA/pycodestyle#850.
  * E741: allow ``l`` as a named argument in a function call.
    PR gh#PyCQA/pycodestyle#853.
  * E302: fix false-negative with decorated functions.
    PR gh#PyCQA/pycodestyle#859.
  * W504: ellipsis (``...``) is no longer treated as a binary operator.
    PR gh#PyCQA/pycodestyle#875.
  * E402: allow ``with``, ``if``, ``elif``, ``else`` to guard imports.
    PR gh#PyCQA/pycodestyle#834.
  * Add support for assignment expressions ``:=`` (PEP 572).
    PR gh#PyCQA/pycodestyle#879.
  * Add support for positional-only arguments ``/`` (PEP 570).
    PR gh#PyCQA/pycodestyle#872, gh#PyCQA/pycodestyle#918.
  * Add support for python 3.8.
  * Add support for matrix multiplication operator ``@`` (PEP 465).
    PR gh#PyCQA/pycodestyle#897.
  * Support visual indent for continuation lines for ``with`` / ``assert`` /
    ``raise``.  PR gh#PyCQA/pycodestyle#912.
  * E302: allow two blank lines after a block of one-liners.
    PR gh#PyCQA/pycodestyle#913.
  * E302: allow two-and-fewer newlines at the top of the file.
    PR gh#PyCQA/pycodestyle#919. 
- install executable as alternative

OBS-URL: https://build.opensuse.org/request/show/805552
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycodestyle?expand=0&rev=14
This commit is contained in:
Tomáš Chvátal 2020-05-14 12:56:25 +00:00 committed by Git OBS Bridge
parent 086fb9c49a
commit 227673db14
4 changed files with 64 additions and 9 deletions

View File

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

3
pycodestyle-2.6.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,45 @@
-------------------------------------------------------------------
Thu May 14 10:03:10 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to version 2.6.0
* E306: fix detection inside ``async def``.
PR gh#PyCQA/pycodestyle#929.
* E301: fix regression disallowing decorated one-liners.
PR gh#PyCQA/pycodestyle#927.
* E714: fix false positive with chained ``is not``.
PR gh#PyCQA/pycodestyle#931.
- Update to version 2.6.0a1
New checks:
* E225: require whitespace around ``and`` ``in`` ``is`` and ``or``.
PR gh#PyCQA/pycodestyle#847.
Changes:
* E117: fix indentation using tabs by treating as 8-space indents.
PR gh#PyCQA/pycodestyle#837.
* E721: fix false positive with names containg ``istype``.
PR gh#PyCQA/pycodestyle#850.
* E741: allow ``l`` as a named argument in a function call.
PR gh#PyCQA/pycodestyle#853.
* E302: fix false-negative with decorated functions.
PR gh#PyCQA/pycodestyle#859.
* W504: ellipsis (``...``) is no longer treated as a binary operator.
PR gh#PyCQA/pycodestyle#875.
* E402: allow ``with``, ``if``, ``elif``, ``else`` to guard imports.
PR gh#PyCQA/pycodestyle#834.
* Add support for assignment expressions ``:=`` (PEP 572).
PR gh#PyCQA/pycodestyle#879.
* Add support for positional-only arguments ``/`` (PEP 570).
PR gh#PyCQA/pycodestyle#872, gh#PyCQA/pycodestyle#918.
* Add support for python 3.8.
* Add support for matrix multiplication operator ``@`` (PEP 465).
PR gh#PyCQA/pycodestyle#897.
* Support visual indent for continuation lines for ``with`` / ``assert`` /
``raise``. PR gh#PyCQA/pycodestyle#912.
* E302: allow two blank lines after a block of one-liners.
PR gh#PyCQA/pycodestyle#913.
* E302: allow two-and-fewer newlines at the top of the file.
PR gh#PyCQA/pycodestyle#919.
- install executable as alternative
-------------------------------------------------------------------
Thu Jan 31 22:08:31 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pycodestyle
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,14 +19,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-pycodestyle
Version: 2.5.0
Version: 2.6.0
Release: 0
Summary: Python style guide checker
License: MIT
Group: Development/Languages/Python
Url: https://pycodestyle.readthedocs.io/
URL: https://pycodestyle.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/p/pycodestyle/pycodestyle-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%ifpython2
@ -35,6 +37,8 @@ Obsoletes: %{oldpython}-pep8 < %{version}
%endif
Provides: python-pep8 = %{version}
Obsoletes: python-pep8 < %{version}
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@ -56,15 +60,24 @@ sed -ri '1s/^#!.*//' pycodestyle.py
%python_install
%python_clone %{buildroot}%{_bindir}/pycodestyle
ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%post
%python_install_alternative pycodestyle
%postun
%python_uninstall_alternative pycodestyle
%check
%python_exec setup.py test
%pytest
%files %{python_files}
%license LICENSE
%doc README.rst
%python3_only %{_bindir}/pycodestyle
%python_alternative %{_bindir}/pycodestyle
%{_bindir}/pycodestyle-%{python_bin_suffix}
%{python_sitelib}/*
%{python_sitelib}/pycodestyle.py*
%pycache_only %{python_sitelib}/__pycache__/pycodestyle.*.py*
%{python_sitelib}/pycodestyle-%{version}-*.egg-info
%changelog