14
0

- update to 2.12.0:

* E721: Fix false positive of the form `x.type(...) ==`.
 * E502: Fix false-negative with a backslash escape in a comment.
 * E204: New lint forbidding whitespace after decorator `@`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycodestyle?expand=0&rev=39
This commit is contained in:
2024-06-17 06:31:24 +00:00
committed by Git OBS Bridge
parent 1e5acdb11c
commit e08d3fa7b4
4 changed files with 19 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pycodestyle
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,21 @@
%{?sle15_python_module_pythons}
Name: python-pycodestyle
Version: 2.11.1
Version: 2.12.0
Release: 0
Summary: Python style guide checker
License: MIT
Group: Development/Languages/Python
URL: https://pycodestyle.readthedocs.io/
Source: https://github.com/PyCQA/pycodestyle/archive/refs/tags/%{version}.tar.gz#/pycodestyle-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
Provides: python-pep8 = %{version}
Obsoletes: python-pep8 < %{version}
BuildArch: noarch
@@ -49,10 +51,10 @@ to reduce confusion.
sed -ri '1s/^#!.*//' pycodestyle.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pycodestyle
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
@@ -71,6 +73,6 @@ sed -ri '1s/^#!.*//' pycodestyle.py
%python_alternative %{_bindir}/pycodestyle
%{python_sitelib}/pycodestyle.py*
%pycache_only %{python_sitelib}/__pycache__/pycodestyle.*.py*
%{python_sitelib}/pycodestyle-%{version}*-info
%{python_sitelib}/pycodestyle-%{version}.dist-info
%changelog