diff --git a/autopep8-2.0.1.tar.gz b/autopep8-2.0.1.tar.gz deleted file mode 100644 index 83c510d..0000000 --- a/autopep8-2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d27a8929d8dcd21c0f4b3859d2d07c6c25273727b98afc984c039df0f0d86566 -size 115905 diff --git a/autopep8-2.0.2.tar.gz b/autopep8-2.0.2.tar.gz new file mode 100644 index 0000000..2807f8c --- /dev/null +++ b/autopep8-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9849cdd62108cb739dbcdbfb7fdcc9a30d1b63c4cc3e1c1f893b5360941b61c +size 116154 diff --git a/ignore-deprecation.patch b/ignore-deprecation.patch deleted file mode 100644 index e765bd2..0000000 --- a/ignore-deprecation.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/test/test_autopep8.py b/test/test_autopep8.py -index 5f4dbed8..c6319cfa 100755 ---- a/test/test_autopep8.py -+++ b/test/test_autopep8.py -@@ -40,13 +40,14 @@ - ) - - if 'AUTOPEP8_COVERAGE' in os.environ and int(os.environ['AUTOPEP8_COVERAGE']): -- AUTOPEP8_CMD_TUPLE = ('coverage', 'run', '--branch', '--parallel', -+ AUTOPEP8_CMD_TUPLE = (sys.executable, '-Wignore::DeprecationWarning', -+ '-m', 'coverage', 'run', '--branch', '--parallel', - '--omit=*/site-packages/*', - os.path.join(ROOT_DIR, 'autopep8.py'),) - else: - # We need to specify the executable to make sure the correct Python - # interpreter gets used. -- AUTOPEP8_CMD_TUPLE = (sys.executable, -+ AUTOPEP8_CMD_TUPLE = (sys.executable, '-Wignore::DeprecationWarning', - os.path.join(ROOT_DIR, - 'autopep8.py'),) # pragma: no cover - diff --git a/python-autopep8.changes b/python-autopep8.changes index 0a4d1ef..59aeb44 100644 --- a/python-autopep8.changes +++ b/python-autopep8.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Mar 13 08:44:47 UTC 2023 - Dirk Müller + +- update to 2.0.2: + * Ignore DeprecationWarnings to fix tests on py3.11 + * fix: infinite loop in autopep8.fix_code without w50 ignore + option +- drop ignore-deprecation.patch (upstream) + ------------------------------------------------------------------- Wed Jan 25 12:46:02 UTC 2023 - Daniel Garcia diff --git a/python-autopep8.spec b/python-autopep8.spec index 430e3a6..4e10e50 100644 --- a/python-autopep8.spec +++ b/python-autopep8.spec @@ -17,15 +17,13 @@ Name: python-autopep8 -Version: 2.0.1 +Version: 2.0.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 -# PATCH-FIX-UPSTREAM ignore-deprecation.patch gh#hhatto/autopep8#665/files -Patch: ignore-deprecation.patch BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module pip} BuildRequires: %{python_module pycodestyle >= 2.8}