Debian Patches

Status for xonsh/0.18.3+dfsg-2

Patch Description Author Forwarded Bugs Origin Last update
unvendor-ply.patch upstream includes vendored ply, which is removed when repacking
but still listed in setup
Gordon Ball <gordon@chronitis.net> no 2019-06-19
documentation-fixes.patch Fix documentation issues
Removes the imgmath extension, (there appear to be no `.. math`
fields in the docs), removes the overwrite template which rewrites all
links to point to http://xon.sh/, and disables the (unpackaged) runthis
extension.
Gordon Ball <gordon@chronitis.net> no 2019-06-19
Skip-tests-marked-flaky-upstream.patch Skip tests marked flaky upstream Gordon Ball <gordon@chronitis.net> no 2021-11-22
0004-Make-cli_utils.ArgParser-compatible-with-new-argpars.patch Make cli_utils.ArgParser compatible with new argparse.ArgumentParser
tl;dr
Xonsh's code in cli_utils overrides 'private' methods of argparser.ArgumentParser. Three weeks ago these 'private' methods were changed in the core library by the CPython team. Those changes were rolled out in Python 3.12.7

I think I've figured it out. This commit in CPython 3 weeks ago changed the signature of the internal method ArgParser._parse_known_args (adding a boolean arg, intermixed). Other methods of the core library's ArgumentParser (in particular _parse_known_args2) call self._parse_known_args with this new signature. In Xonsh, cli_utils.ArgParser, a sub class of ap.ArgumentParser, had previously overridden _parse_known_args.

The old signature of cli_utils.ArgParser._parse_known_args (without intermixed) is incompatible with calls to the new signature of argparser.ArgumentParser._parse_known_args (intermixed doesn't have a default on the 'private' methods, but is set in the 'public' API methods parse_known_intermixed_args and parse_known_args).

Hopefully the signature of cli_utils.ArgParser._parse_known_args just needs to have intermixed, or *args, **kwargs added to it. The latter would actually be the same fix as @frostming 's commit 3266 for pdm (quoted above).

I still haven't the faintest idea why it only affects gcc builds on Debian Trixie though.

Copied from here: https://github.com/xonsh/xonsh/issues/5724#issuecomment-2466716810
JamesParrott <80779630+JamesParrott@users.noreply.github.com> no 2024-11-10
0005-fix-ArgparseCompleter-adjust-parsing-for-upstream-pr.patch fix(ArgparseCompleter): adjust parsing for upstream private changes
The upstream private API for `_parse_optional` changed, needed to update this.
Gil Forsyth <gil@forsyth.dev> no 2024-11-04

All known versions for source package 'xonsh'

Links