Sync from SUSE:SLFO:Main python-pycodestyle revision 087a4c5c22ef621b3db88bb282517d0a

This commit is contained in:
Adrian Schröter 2024-12-13 12:01:26 +01:00
parent 63c848bcff
commit bea42101c9
4 changed files with 41 additions and 17 deletions

BIN
pycodestyle-2.11.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pycodestyle-2.12.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Sun Aug 18 16:49:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.12.1:
* Properly preserve escaped `{` and `}` in fstrings in logical
lines in 3.12+.
-------------------------------------------------------------------
Mon Jun 17 06:30:52 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- update to 2.11.1:
* E275: fix false positive with fstrings containing keyword
parts in python 3.12
-------------------------------------------------------------------
Tue Aug 8 15:10:24 UTC 2023 - ecsos <ecsos@opensuse.org>
@ -24,7 +46,7 @@ Thu Aug 3 14:59:59 UTC 2023 - Martin Schreiner <martin.schreiner@suse.com>
Tue Jul 18 11:27:38 UTC 2023 - Ana Guerrero <ana.guerrero@suse.com>
- Add patch to fix testsuite with python 3.11.4 and 3.12
testsuite_fixes.patch
testsuite_fixes.patch
-------------------------------------------------------------------
Tue May 9 05:08:31 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
@ -86,13 +108,13 @@ 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.
* E301: fix regression disallowing decorated one-liners.
PR gh#PyCQA/pycodestyle#927.
* E714: fix false positive with chained ``is not``.
* 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``.
* 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.
@ -119,7 +141,7 @@ Thu May 14 10:03:10 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
* 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.
PR gh#PyCQA/pycodestyle#919.
- install executable as alternative
-------------------------------------------------------------------
@ -387,7 +409,7 @@ Tue May 28 07:32:40 UTC 2013 - speilicke@suse.com
Sat May 18 19:52:53 UTC 2013 - dmueller@suse.com
- udpate to 1.4.5:
* When no path is specified, do not try to read from stdin.
* When no path is specified, do not try to read from stdin.
* Do not require ``setuptools`` in setup.py. It works around an issue
with ``pip`` and Python 3. (Issue #172)
* Add ``__pycache__`` to the ignore list.
@ -403,7 +425,7 @@ Sat May 18 19:52:53 UTC 2013 - dmueller@suse.com
Sun Feb 24 21:41:18 UTC 2013 - p.drouand@gmail.com
- Update to version 1.4.4:
* Report E227 or E228 instead of E225 for whitespace around bitwise,
* Report E227 or E228 instead of E225 for whitespace around bitwise,
shift or modulo operators. (Issue #166)
* Change the message for E226 to make clear that it is about arithmetic operators.
* Fix a false positive E128 for continuation line indentation with tabs.
@ -517,7 +539,7 @@ Fri Apr 13 15:50:43 UTC 2012 - toganm@opensuse.org
- Update to release 1.0.1 For more details regarding changes since
release 0.6.1 please consult CHANGES.txt
* Fix inconsistent version numbers.
-------------------------------------------------------------------
Thu Sep 22 09:11:41 UTC 2011 - saschpe@suse.de

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.0
Version: 2.12.1
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