diff --git a/autopep8-2.0.4.tar.gz b/autopep8-2.0.4.tar.gz deleted file mode 100644 index fd843ca..0000000 --- a/autopep8-2.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2913064abd97b3419d1cc83ea71f042cb821f87e45b9c88cad5ad3c4ea87fe0c -size 116472 diff --git a/autopep8-2.3.1.tar.gz b/autopep8-2.3.1.tar.gz new file mode 100644 index 0000000..9551078 --- /dev/null +++ b/autopep8-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d6c87eba648fdcfc83e29b788910b8643171c395d9c4bcf115ece035b9c9dda +size 92064 diff --git a/python-autopep8.changes b/python-autopep8.changes index 4df6878..b0d4ab2 100644 --- a/python-autopep8.changes +++ b/python-autopep8.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Tue Nov 19 10:43:28 UTC 2024 - Dirk Müller + +- 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 diff --git a/python-autopep8.spec b/python-autopep8.spec index 35b01e8..1e5ac54 100644 --- a/python-autopep8.spec +++ b/python-autopep8.spec @@ -19,23 +19,22 @@ %{?sle15_python_module_pythons} Name: python-autopep8 -Version: 2.0.4 +Version: 2.3.1 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: python-rpm-macros -Requires: python-pycodestyle >= 2.10.0 +Requires: python-pycodestyle >= 2.12.0 %if %{python_version_nodots} < 311 Requires: python-tomli %endif diff --git a/python312-skip-tests.patch b/python312-skip-tests.patch deleted file mode 100644 index c54048d..0000000 --- a/python312-skip-tests.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 6ebcb3cfadd9b8764405e1cab24f4412f05b36bb Mon Sep 17 00:00:00 2001 -From: Hideo Hattori -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):