From df1e382ff51dbca9c91f156af20f807e41c33fad1267d16bdf948773c72c3dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sat, 7 Oct 2023 20:09:15 +0000 Subject: [PATCH] Accepting request 1116234 from home:mschreiner:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/1116234 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autopep8?expand=0&rev=62 --- autopep8-2.0.2.tar.gz | 3 --- autopep8-2.0.4.tar.gz | 3 +++ pycodestyle211.patch | 30 ------------------------------ python-autopep8.changes | 13 +++++++++++++ python-autopep8.spec | 4 +--- 5 files changed, 17 insertions(+), 36 deletions(-) delete mode 100644 autopep8-2.0.2.tar.gz create mode 100644 autopep8-2.0.4.tar.gz delete mode 100644 pycodestyle211.patch diff --git a/autopep8-2.0.2.tar.gz b/autopep8-2.0.2.tar.gz deleted file mode 100644 index 2807f8c..0000000 --- a/autopep8-2.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f9849cdd62108cb739dbcdbfb7fdcc9a30d1b63c4cc3e1c1f893b5360941b61c -size 116154 diff --git a/autopep8-2.0.4.tar.gz b/autopep8-2.0.4.tar.gz new file mode 100644 index 0000000..fd843ca --- /dev/null +++ b/autopep8-2.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2913064abd97b3419d1cc83ea71f042cb821f87e45b9c88cad5ad3c4ea87fe0c +size 116472 diff --git a/pycodestyle211.patch b/pycodestyle211.patch deleted file mode 100644 index e4336e5..0000000 --- a/pycodestyle211.patch +++ /dev/null @@ -1,30 +0,0 @@ -From f961833919a6cc9198f05a7f1b2ac7eec1584724 Mon Sep 17 00:00:00 2001 -From: paugier -Date: Sun, 13 Aug 2023 23:06:33 +0200 -Subject: [PATCH] Try to fix an AttributeError related to pycodestyle 2.11.0 - ---- - autopep8.py | 10 ++++++++-- - 1 file changed, 8 insertions(+), 2 deletions(-) - -diff --git a/autopep8.py b/autopep8.py -index 5e2a9fda..84e3e1bf 100755 ---- a/autopep8.py -+++ b/autopep8.py -@@ -757,8 +757,14 @@ def fix_e225(self, result): - 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 diff --git a/python-autopep8.changes b/python-autopep8.changes index 6425747..b7a1455 100644 --- a/python-autopep8.changes +++ b/python-autopep8.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Oct 7 17:32:16 UTC 2023 - Martin Schreiner + +- 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. + ------------------------------------------------------------------- Fri Aug 25 11:29:01 UTC 2023 - Markéta Machová diff --git a/python-autopep8.spec b/python-autopep8.spec index 6243975..891f7d5 100644 --- a/python-autopep8.spec +++ b/python-autopep8.spec @@ -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}