diff --git a/ast_decompiler-0.7.0.tar.gz b/ast_decompiler-0.7.0.tar.gz deleted file mode 100644 index cd58136..0000000 --- a/ast_decompiler-0.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:efc3a507e5f8963ec7b4b2ce2ea693e3755c2f52b741c231bc344a4526738337 -size 18413 diff --git a/ast_decompiler-0.8.0.tar.gz b/ast_decompiler-0.8.0.tar.gz new file mode 100644 index 0000000..50a11f7 --- /dev/null +++ b/ast_decompiler-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:daef5ca5c2bcb9ba7cf72a9308c7cd596c092d7201c0bbaf28947c721ce26441 +size 18526 diff --git a/no-relative-imports.patch b/no-relative-imports.patch index f579471..225f94b 100644 --- a/no-relative-imports.patch +++ b/no-relative-imports.patch @@ -1,68 +1,74 @@ ---- - tests/test_basic.py | 2 +- - tests/test_indentation.py | 2 +- - tests/test_line_length.py | 2 +- - tests/test_literal.py | 2 +- - tests/test_patma.py | 2 +- - tests/test_precedence.py | 2 +- - tests/test_py3_syntax.py | 2 +- - 7 files changed, 7 insertions(+), 7 deletions(-) - ---- a/tests/test_basic.py -+++ b/tests/test_basic.py +diff -Nru ast_decompiler-0.8.0.orig/tests/test_basic.py ast_decompiler-0.8.0/tests/test_basic.py +--- ast_decompiler-0.8.0.orig/tests/test_basic.py 2024-05-17 11:24:40.473753700 +0000 ++++ ast_decompiler-0.8.0/tests/test_basic.py 2024-11-08 10:13:46.230356472 +0000 @@ -1,6 +1,6 @@ import ast from ast_decompiler import decompile --from .tests import assert_decompiles, check, only_on_version -+from tests import assert_decompiles, check, only_on_version +-from .tests import assert_decompiles, check ++from tests import assert_decompiles, check def test_non_module() -> None: ---- a/tests/test_indentation.py -+++ b/tests/test_indentation.py +diff -Nru ast_decompiler-0.8.0.orig/tests/test_indentation.py ast_decompiler-0.8.0/tests/test_indentation.py +--- ast_decompiler-0.8.0.orig/tests/test_indentation.py 2024-05-17 11:24:40.473753700 +0000 ++++ ast_decompiler-0.8.0/tests/test_indentation.py 2024-11-08 10:13:46.230356472 +0000 @@ -1,4 +1,4 @@ -from .tests import assert_decompiles +from tests import assert_decompiles def test_indentation() -> None: ---- a/tests/test_line_length.py -+++ b/tests/test_line_length.py +diff -Nru ast_decompiler-0.8.0.orig/tests/test_line_length.py ast_decompiler-0.8.0/tests/test_line_length.py +--- ast_decompiler-0.8.0.orig/tests/test_line_length.py 2024-05-17 11:24:40.473753700 +0000 ++++ ast_decompiler-0.8.0/tests/test_line_length.py 2024-11-08 10:13:46.234356491 +0000 @@ -1,4 +1,4 @@ -from .tests import assert_decompiles +from tests import assert_decompiles def check_split(original: str, multiline: str, length_reduction: int = 2) -> None: ---- a/tests/test_literal.py -+++ b/tests/test_literal.py +diff -Nru ast_decompiler-0.8.0.orig/tests/test_literal.py ast_decompiler-0.8.0/tests/test_literal.py +--- ast_decompiler-0.8.0.orig/tests/test_literal.py 2024-05-17 11:24:40.473753700 +0000 ++++ ast_decompiler-0.8.0/tests/test_literal.py 2024-11-08 10:13:46.234356491 +0000 @@ -1,4 +1,4 @@ --from .tests import assert_decompiles, only_on_version -+from tests import assert_decompiles, only_on_version +-from .tests import assert_decompiles ++from tests import assert_decompiles def test_With() -> None: ---- a/tests/test_patma.py -+++ b/tests/test_patma.py +diff -Nru ast_decompiler-0.8.0.orig/tests/test_patma.py ast_decompiler-0.8.0/tests/test_patma.py +--- ast_decompiler-0.8.0.orig/tests/test_patma.py 2024-05-17 11:24:40.473753700 +0000 ++++ ast_decompiler-0.8.0/tests/test_patma.py 2024-11-08 10:13:46.234356491 +0000 @@ -1,4 +1,4 @@ -from .tests import check, skip_before +from tests import check, skip_before @skip_before((3, 10)) ---- a/tests/test_precedence.py -+++ b/tests/test_precedence.py +diff -Nru ast_decompiler-0.8.0.orig/tests/test_pep695.py ast_decompiler-0.8.0/tests/test_pep695.py +--- ast_decompiler-0.8.0.orig/tests/test_pep695.py 2024-05-17 11:24:40.477753600 +0000 ++++ ast_decompiler-0.8.0/tests/test_pep695.py 2024-11-08 10:13:46.234356491 +0000 @@ -1,4 +1,4 @@ --from .tests import check, only_on_version -+from tests import check, only_on_version +-from .tests import check, skip_before ++from tests import check, skip_before + + + @skip_before((3, 12)) +diff -Nru ast_decompiler-0.8.0.orig/tests/test_precedence.py ast_decompiler-0.8.0/tests/test_precedence.py +--- ast_decompiler-0.8.0.orig/tests/test_precedence.py 2024-05-17 11:24:40.477753600 +0000 ++++ ast_decompiler-0.8.0/tests/test_precedence.py 2024-11-08 10:13:46.238356510 +0000 +@@ -1,4 +1,4 @@ +-from .tests import check ++from tests import check def test_Yield() -> None: ---- a/tests/test_py3_syntax.py -+++ b/tests/test_py3_syntax.py +diff -Nru ast_decompiler-0.8.0.orig/tests/test_py3_syntax.py ast_decompiler-0.8.0/tests/test_py3_syntax.py +--- ast_decompiler-0.8.0.orig/tests/test_py3_syntax.py 2024-05-17 11:24:40.477753600 +0000 ++++ ast_decompiler-0.8.0/tests/test_py3_syntax.py 2024-11-08 10:13:46.238356510 +0000 @@ -1,4 +1,4 @@ --from .tests import check, skip_before, skip_after -+from tests import check, skip_before, skip_after +-from .tests import check ++from tests import check - @skip_before((3, 5)) + def test_MatMult() -> None: diff --git a/python-ast-decompiler.changes b/python-ast-decompiler.changes index 8cdb9b4..8f3c47b 100644 --- a/python-ast-decompiler.changes +++ b/python-ast-decompiler.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Nov 8 10:14:29 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 0.8.0 + * Support Python 3.12 and 3.13; stop testing Python 3.6 and 3.7 + * Fix all DeprecationWarnings in the codebase +- Refresh no-relative-imports.patch + ------------------------------------------------------------------- Tue Oct 18 12:44:05 UTC 2022 - Matej Cepl diff --git a/python-ast-decompiler.spec b/python-ast-decompiler.spec index 0938c9e..f98aba8 100644 --- a/python-ast-decompiler.spec +++ b/python-ast-decompiler.spec @@ -17,7 +17,7 @@ Name: python-ast-decompiler -Version: 0.7.0 +Version: 0.8.0 Release: 0 Summary: Python module to decompile AST to Python code License: Apache-2.0