17
0

Compare commits

7 Commits

Author SHA256 Message Date
a03906055f Accepting request 1286878 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286878
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autopep8?expand=0&rev=34
2025-06-20 14:49:26 +00:00
447929ca05 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autopep8?expand=0&rev=73 2025-06-19 09:40:29 +00:00
51cb56ff71 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autopep8?expand=0&rev=72
2025-06-16 14:28:15 +00:00
78d7bfff58 Accepting request 1239863 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1239863
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autopep8?expand=0&rev=33
2025-01-23 17:05:50 +00:00
a384e9539b Accepting request 1239800 from home:glaubitz:branches:devel:languages:python
- Update to 2.3.2
  * Update README.rst: Typo fix
  * Bump codecov/codecov-action from 4 to 5
  * support Python 3.13 and drop 3.8
  * Fix E721 type comparison pattern handling

OBS-URL: https://build.opensuse.org/request/show/1239800
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autopep8?expand=0&rev=70
2025-01-23 12:55:37 +00:00
5f5a2c3210 Accepting request 1225057 from devel:languages:python
- update to 2.3.1:
  * skip e501 fixed method for f-string line without aggressive
    option
  * Fix argument parser errors are printed without a trailing
    newline
- update to 2.3.0:
  * add handling for E204 whitespace after decorator
  * require to pycodestyle v2.12.0+
- update to 2.2.0:
  * experimental option is deprecated
  * fix specific case of e271 and w504
  * skip e501 fixed method for f-string line(s)
- update to 2.1.2:
  * Fix e501 experimental fstring case in Python3.12+
- update to 2.1.1:
  * force reload pycodestyle module
- update to 2.1.0:
  * migrate to pyproject.toml
  * run with pypy3.10
  * ISSUE_TEMPLATE: use "console" instead of non-existing "shell"
    syntax
  * add 3.12, drop 3.7
  * tox: add python3.12 to test environments
  * async def function formatting
  * pyproject: support py3.12 via new version of pycodestyle
  * add: unit test for e501 with async def
  * Update python versions
- drop python312-skip-tests.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1225057
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autopep8?expand=0&rev=32
2024-11-19 21:23:18 +00:00
1d1f63f22b - update to 2.3.1:
* skip e501 fixed method for f-string line without aggressive
    option
  * Fix argument parser errors are printed without a trailing
    newline
- update to 2.3.0:
  * add handling for E204 whitespace after decorator
  * require to pycodestyle v2.12.0+
- update to 2.2.0:
  * experimental option is deprecated
  * fix specific case of e271 and w504
  * skip e501 fixed method for f-string line(s)
- update to 2.1.2:
  * Fix e501 experimental fstring case in Python3.12+
- update to 2.1.1:
  * force reload pycodestyle module
- update to 2.1.0:
  * migrate to pyproject.toml
  * run with pypy3.10
  * ISSUE_TEMPLATE: use "console" instead of non-existing "shell"
    syntax
  * add 3.12, drop 3.7
  * tox: add python3.12 to test environments
  * async def function formatting
  * pyproject: support py3.12 via new version of pycodestyle
  * add: unit test for e501 with async def
  * Update python versions
- drop python312-skip-tests.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autopep8?expand=0&rev=68
2024-11-19 10:44:37 +00:00
5 changed files with 59 additions and 63 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2913064abd97b3419d1cc83ea71f042cb821f87e45b9c88cad5ad3c4ea87fe0c
size 116472

3
autopep8-2.3.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89440a4f969197b69a995e4ce0661b031f455a9f776d2c5ba3dbd83466931758
size 92210

View File

@@ -1,3 +1,49 @@
-------------------------------------------------------------------
Mon Jun 16 14:27:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Thu Jan 23 10:39:57 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.3.2
* Update README.rst: Typo fix
* Bump codecov/codecov-action from 4 to 5
* support Python 3.13 and drop 3.8
* Fix E721 type comparison pattern handling
-------------------------------------------------------------------
Tue Nov 19 10:43:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.3.1:
* skip e501 fixed method for f-string line without aggressive
option
* Fix argument parser errors are printed without a trailing
newline
- update to 2.3.0:
* add handling for E204 whitespace after decorator
* require to pycodestyle v2.12.0+
- update to 2.2.0:
* experimental option is deprecated
* fix specific case of e271 and w504
* skip e501 fixed method for f-string line(s)
- update to 2.1.2:
* Fix e501 experimental fstring case in Python3.12+
- update to 2.1.1:
* force reload pycodestyle module
- update to 2.1.0:
* migrate to pyproject.toml
* run with pypy3.10
* ISSUE_TEMPLATE: use "console" instead of non-existing "shell"
syntax
* add 3.12, drop 3.7
* tox: add python3.12 to test environments
* async def function formatting
* pyproject: support py3.12 via new version of pycodestyle
* add: unit test for e501 with async def
* Update python versions
- drop python312-skip-tests.patch (upstream)
-------------------------------------------------------------------
Sun Feb 4 09:42:01 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-autopep8
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,32 +16,31 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-autopep8
Version: 2.0.4
Version: 2.3.2
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
Patch1: https://github.com/hhatto/autopep8/commit/6ebcb3cfadd9b8764405e1cab24f4412f05b36bb.patch#/python312-skip-tests.patch
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pycodestyle >= 2.8}
BuildRequires: %{python_module pycodestyle >= 2.12}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli if %python-base < 3.11}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: python-rpm-macros
Requires: python-pycodestyle >= 2.10.0
Requires: alts
Requires: python-pycodestyle >= 2.12.0
BuildArch: noarch
%if %{python_version_nodots} < 311
Requires: python-tomli
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
@@ -67,12 +66,8 @@ export LANG="en_US.UTF-8"
# Since /usr/bin/autopep8 became ghosted to be used with update-alternatives, we have to get rid
# of the old binary resulting from the non-update-alternativies-ified package:
[ -h %{_bindir}/autopep8 ] || rm -f %{_bindir}/autopep8
%post
%python_install_alternative autopep8
%postun
%python_uninstall_alternative autopep8
# now, let's convert the old update-alternatives link to libalternatives
%python_libalternatives_reset_alternative autopep8
%files %{python_files}
%license LICENSE

View File

@@ -1,45 +0,0 @@
From 6ebcb3cfadd9b8764405e1cab24f4412f05b36bb Mon Sep 17 00:00:00 2001
From: Hideo Hattori <hhatto.jp@gmail.com>
Date: Mon, 9 Oct 2023 22:12:07 +0900
Subject: [PATCH] skip tests for python3.12+
---
test/test_autopep8.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/test_autopep8.py b/test/test_autopep8.py
index c64143d7..4c314e52 100755
--- a/test/test_autopep8.py
+++ b/test/test_autopep8.py
@@ -4418,6 +4418,7 @@ def test_e731_with_default_arguments(self):
with autopep8_context(line, options=['--select=E731']) as result:
self.assertEqual(fixed, result)
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_e901_should_cause_indentation_screw_up(self):
line = """\
def tmp(g):
@@ -5466,6 +5467,7 @@ def test_help(self):
stdout=PIPE)
self.assertIn('usage:', p.communicate()[0].decode('utf-8').lower())
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_verbose(self):
line = 'bad_syntax)'
with temporary_file_context(line) as filename:
@@ -7206,6 +7208,7 @@ def f(self):
with autopep8_context(line, options=['--experimental']) as result:
self.assertEqual(fixed, result)
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_e501_experimental_parsing_dict_with_comments(self):
line = """\
self.display['xxxxxxxxxxxx'] = [{'title': _('Library'), #. This is the first comment.
@@ -7229,6 +7232,7 @@ def test_e501_experimental_parsing_dict_with_comments(self):
with autopep8_context(line, options=['--experimental']) as result:
self.assertEqual(fixed, result)
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_e501_experimental_if_line_over_limit(self):
line = """\
if not xxxxxxxxxxxx(aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbb, cccccccccccccc, dddddddddddddddddddddd):