Debian Patches

Status for python-astor/0.8.1-5

Patch Description Author Forwarded Bugs Origin Last update
0001-Reduce-huge-int-in-test-Closes-212.patch Reduce huge int in test (Closes: #212)
Int was above limits:

https://docs.python.org/3/library/stdtypes.html#int-max-str-digits
Jochen Sprickerhof <jspricke@debian.org> no 2022-12-30
py314.patch Fix compatibility with Python 3.14 (mostly)
Fix the code and the test suite to work with Python 3.14, where
deprecated constant-like AST nodes were removed. Notably:

1. Skip tests for deprecated nodes in Python 3.14.

2. Use `ast.Constant` over `ast.Num` for non-deprecated code
in Python 3.6+.

3. Check for `ast.Str` only in Python < 3.14, and handle `ast.Constant`
being used to represent a string instead.

With these changes, all tests except for:

tests/test_rtrip.py::RtripTestCase::test_convert_stdlib

pass. However, this particular test also hanged for me with older Python
versions.

Related to #217
Michał Górny <mgorny@gentoo.org> yes debian upstream other, https://github.com/berkerpeksag/astor/pull/233 2026-01-08

All known versions for source package 'python-astor'

Links