Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-autopep8 for openSUSE:Factory
checked in at 2023-10-08 12:20:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autopep8 (Old)
and /work/SRC/openSUSE:Factory/.python-autopep8.new.28202 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-autopep8"
Sun Oct 8 12:20:21 2023 rev:29 rq:1116242 version:2.0.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autopep8/python-autopep8.changes
2023-08-28 17:14:02.234112702 +0200
+++
/work/SRC/openSUSE:Factory/.python-autopep8.new.28202/python-autopep8.changes
2023-10-08 12:24:16.807020530 +0200
@@ -1,0 +2,13 @@
+Sat Oct 7 17:32:16 UTC 2023 - Martin Schreiner <[email protected]>
+
+- Update to 2.0.4:
+ * Changes from 2.0.4:
+ Paugier fix pycodestyle missing whitespace.
+ Try to fix an AttributeError related to pycodestyle 2.11.0.
+ * Changes from 2.0.3:
+ Add pre-commit configurations.
+ Version dependent operator whitespace function.
+ Update MANIFEST.in.
+- Remove pycodestyle211.patch, as it was merged upstream.
+
+-------------------------------------------------------------------
Old:
----
autopep8-2.0.2.tar.gz
pycodestyle211.patch
New:
----
autopep8-2.0.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-autopep8.spec ++++++
--- /var/tmp/diff_new_pack.qsYUZC/_old 2023-10-08 12:24:17.819056936 +0200
+++ /var/tmp/diff_new_pack.qsYUZC/_new 2023-10-08 12:24:17.823057080 +0200
@@ -17,15 +17,13 @@
Name: python-autopep8
-Version: 2.0.2
+Version: 2.0.4
Release: 0
Summary: Automatic generated to pep8 checked code
License: MIT
Group: Development/Languages/Python
URL: https://github.com/hhatto/autopep8
Source:
https://files.pythonhosted.org/packages/source/a/autopep8/autopep8-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM https://github.com/hhatto/autopep8/pull/699 Try to fix an
AttributeError related to pycodestyle 2.11.0
-Patch0: pycodestyle211.patch
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pycodestyle >= 2.8}
++++++ autopep8-2.0.2.tar.gz -> autopep8-2.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autopep8-2.0.2/.pre-commit-hooks.yaml
new/autopep8-2.0.4/.pre-commit-hooks.yaml
--- old/autopep8-2.0.2/.pre-commit-hooks.yaml 1970-01-01 01:00:00.000000000
+0100
+++ new/autopep8-2.0.4/.pre-commit-hooks.yaml 2023-08-25 14:40:09.000000000
+0200
@@ -0,0 +1,7 @@
+- id: autopep8
+ name: autopep8
+ description: A tool that automatically formats Python code to conform to
the PEP 8 style guide.
+ entry: autopep8
+ language: python
+ types: [python]
+ args: [-i]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autopep8-2.0.2/MANIFEST.in
new/autopep8-2.0.4/MANIFEST.in
--- old/autopep8-2.0.2/MANIFEST.in 2022-11-05 10:56:08.000000000 +0100
+++ new/autopep8-2.0.4/MANIFEST.in 2023-08-25 14:59:45.000000000 +0200
@@ -13,6 +13,7 @@
include test/fake_configuration/.pep8
include test/fake_pycodestyle_configuration/tox.ini
include tox.ini
+include .pre-commit-hooks.yaml
recursive-exclude test/suite *.py
recursive-exclude test/suite/out *.py
exclude .travis.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autopep8-2.0.2/PKG-INFO new/autopep8-2.0.4/PKG-INFO
--- old/autopep8-2.0.2/PKG-INFO 2023-03-03 10:21:30.055078500 +0100
+++ new/autopep8-2.0.4/PKG-INFO 2023-08-26 15:49:46.169547000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: autopep8
-Version: 2.0.2
+Version: 2.0.4
Summary: A tool that automatically formats Python code to conform to the PEP 8
style guide
Home-page: https://github.com/hhatto/autopep8
Author: Hideo Hattori
@@ -411,6 +411,23 @@
recursive = true
aggressive = 3
+Usage with pre-commit
+=====================
+
+autopep8 can be used as a hook for pre-commit_.
+
+To add autopep8 as a plugin, add this repo definition to your configuration:
+
+.. code-block:: yaml
+
+ repos:
+ - repo: https://github.com/hhatto/autopep8
+ rev: ... # select the tag or revision you want, or run `pre-commit
autoupdate`
+ hooks:
+ - id: autopep8
+
+.. _`pre-commit`: https://pre-commit.com
+
Testing
=======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autopep8-2.0.2/README.rst
new/autopep8-2.0.4/README.rst
--- old/autopep8-2.0.2/README.rst 2023-03-03 01:27:39.000000000 +0100
+++ new/autopep8-2.0.4/README.rst 2023-08-25 14:40:09.000000000 +0200
@@ -384,6 +384,23 @@
recursive = true
aggressive = 3
+Usage with pre-commit
+=====================
+
+autopep8 can be used as a hook for pre-commit_.
+
+To add autopep8 as a plugin, add this repo definition to your configuration:
+
+.. code-block:: yaml
+
+ repos:
+ - repo: https://github.com/hhatto/autopep8
+ rev: ... # select the tag or revision you want, or run `pre-commit
autoupdate`
+ hooks:
+ - id: autopep8
+
+.. _`pre-commit`: https://pre-commit.com
+
Testing
=======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autopep8-2.0.2/autopep8.egg-info/PKG-INFO
new/autopep8-2.0.4/autopep8.egg-info/PKG-INFO
--- old/autopep8-2.0.2/autopep8.egg-info/PKG-INFO 2023-03-03
10:21:30.000000000 +0100
+++ new/autopep8-2.0.4/autopep8.egg-info/PKG-INFO 2023-08-26
15:49:46.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: autopep8
-Version: 2.0.2
+Version: 2.0.4
Summary: A tool that automatically formats Python code to conform to the PEP 8
style guide
Home-page: https://github.com/hhatto/autopep8
Author: Hideo Hattori
@@ -411,6 +411,23 @@
recursive = true
aggressive = 3
+Usage with pre-commit
+=====================
+
+autopep8 can be used as a hook for pre-commit_.
+
+To add autopep8 as a plugin, add this repo definition to your configuration:
+
+.. code-block:: yaml
+
+ repos:
+ - repo: https://github.com/hhatto/autopep8
+ rev: ... # select the tag or revision you want, or run `pre-commit
autoupdate`
+ hooks:
+ - id: autopep8
+
+.. _`pre-commit`: https://pre-commit.com
+
Testing
=======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autopep8-2.0.2/autopep8.egg-info/SOURCES.txt
new/autopep8-2.0.4/autopep8.egg-info/SOURCES.txt
--- old/autopep8-2.0.2/autopep8.egg-info/SOURCES.txt 2023-03-03
10:21:30.000000000 +0100
+++ new/autopep8-2.0.4/autopep8.egg-info/SOURCES.txt 2023-08-26
15:49:46.000000000 +0200
@@ -1,3 +1,4 @@
+.pre-commit-hooks.yaml
AUTHORS.rst
LICENSE
MANIFEST.in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autopep8-2.0.2/autopep8.py
new/autopep8-2.0.4/autopep8.py
--- old/autopep8-2.0.2/autopep8.py 2023-03-03 10:19:35.000000000 +0100
+++ new/autopep8-2.0.4/autopep8.py 2023-08-26 15:44:22.000000000 +0200
@@ -89,7 +89,7 @@
from pycodestyle import STARTSWITH_INDENT_STATEMENT_REGEX
-__version__ = '2.0.2'
+__version__ = '2.0.4'
CR = '\r'
@@ -757,8 +757,14 @@
return
if not check_syntax(fixed.lstrip()):
return
- errors = list(
- pycodestyle.missing_whitespace_around_operator(fixed, ts))
+ try:
+ _missing_whitespace = (
+ pycodestyle.missing_whitespace_around_operator
+ )
+ except AttributeError:
+ # pycodestyle >= 2.11.0
+ _missing_whitespace = pycodestyle.missing_whitespace
+ errors = list(_missing_whitespace(fixed, ts))
for e in reversed(errors):
if error_code != e[1].split()[0]:
continue
@@ -3658,15 +3664,17 @@
codes = []
if any(code_match(code, select=options.select, ignore=options.ignore)
for code in ['E101', 'E111']):
- source = reindent(source,
- indent_size=options.indent_size,
- leave_tabs=not (
- code_match(
- 'W191',
- select=options.select,
- ignore=options.ignore)
- )
- )
+ source = reindent(
+ source,
+ indent_size=options.indent_size,
+ leave_tabs=not (
+ code_match(
+ 'W191',
+ select=options.select,
+ ignore=options.ignore
+ )
+ )
+ )
for (code, function) in global_fixes():
if code_match(code, select=options.select, ignore=options.ignore):