From e08d3fa7b4727a5cae514fb2f9c1ea1031d71921dfeb0ce20620d3c6856b9600 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 17 Jun 2024 06:31:24 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=202.12.0:=20=20=EF=BF=BC*=20E72?= =?UTF-8?q?1:=20Fix=20false=20positive=20of=20the=20form=20`x.type(...)=20?= =?UTF-8?q?=3D=3D`.=20=EF=BF=BC=20*=20E502:=20Fix=20false-negative=20with?= =?UTF-8?q?=20a=20backslash=20escape=20in=20a=20comment.=20=EF=BF=BC=20*?= =?UTF-8?q?=20E204:=20New=20lint=20forbidding=20whitespace=20after=20decor?= =?UTF-8?q?ator=20`@`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycodestyle?expand=0&rev=39 --- pycodestyle-2.11.1.tar.gz | 3 --- pycodestyle-2.12.0.tar.gz | 3 +++ python-pycodestyle.changes | 8 ++++++++ python-pycodestyle.spec | 14 ++++++++------ 4 files changed, 19 insertions(+), 9 deletions(-) delete mode 100644 pycodestyle-2.11.1.tar.gz create mode 100644 pycodestyle-2.12.0.tar.gz diff --git a/pycodestyle-2.11.1.tar.gz b/pycodestyle-2.11.1.tar.gz deleted file mode 100644 index 3a821b9..0000000 --- a/pycodestyle-2.11.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a01fdd890c6472eebc32e8baf21e29173c35776e765c64cc83ccd09b99dc5399 -size 79865 diff --git a/pycodestyle-2.12.0.tar.gz b/pycodestyle-2.12.0.tar.gz new file mode 100644 index 0000000..0be0d19 --- /dev/null +++ b/pycodestyle-2.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c72dccf2bf7ceb603b5bd8b737a511d5241e675e90d4f75bc8a12fe81f24c094 +size 80226 diff --git a/python-pycodestyle.changes b/python-pycodestyle.changes index b162c7f..8dac31a 100644 --- a/python-pycodestyle.changes +++ b/python-pycodestyle.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jun 17 06:30:52 UTC 2024 - Dirk Müller + +- 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 `@`. + ------------------------------------------------------------------- Mon Nov 27 15:56:39 UTC 2023 - Dirk Müller diff --git a/python-pycodestyle.spec b/python-pycodestyle.spec index db2427f..03b9bad 100644 --- a/python-pycodestyle.spec +++ b/python-pycodestyle.spec @@ -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