Package: python-mitogen / 0.3.3-9+deb12u1

Metadata

Package Version Patches format
python-mitogen 0.3.3-9+deb12u1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
unbundle simplejson | (download)

ansible_mitogen/process.py | 37 0 + 37 - 0 !
ansible_mitogen/target.py | 5 0 + 5 - 0 !
2 files changed, 42 deletions(-)

 we removed the bundled simplejson

The simplejson compatibility module isn't importable in 3.x, breaking
our byte-compilation toolchain. As it's only needed for Python 2.4
targets, we simply choose to drop it. If necessary, simplejson can be
manually installed on targets.

python3 | (download)

tests/ansible/tests/connection_test.py | 2 1 + 1 - 0 !
tests/data/broker_shutdown_test_python.py | 2 1 + 1 - 0 !
tests/data/python_never_responds.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-buildah.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-doas.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-docker.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-jexec.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-kubectl.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-lxc-attach.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-lxc-info.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-lxc.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-podman.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-python.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-ssh.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-su.py | 2 1 + 1 - 0 !
tests/data/stubs/stub-sudo.py | 2 1 + 1 - 0 !
tests/lxd_test.py | 1 1 + 0 - 0 !
tests/ssh_test.py | 2 2 + 0 - 0 !
18 files changed, 19 insertions(+), 16 deletions(-)

 tests: use the "python3" interpreter

The "python" binary isn't available in Debian buster. Except via the
python-is-* packages, which are only for end-user use.

skip ppc64el test_broken_linux_fallback | (download)

tests/parent_test.py | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 tests: skip test_broken_linux_fallback on ppc64el, where it fails.

Bug-Upstream: https://github.com/mitogen-hq/mitogen/issues/831

skip failing tests | (download)

tests/responder_test.py | 1 1 + 0 - 0 !
tests/router_test.py | 5 5 + 0 - 0 !
2 files changed, 6 insertions(+)

 skip tests that fail for unknown reasons


skip django tests | (download)

tests/module_finder_test.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 skip django tests

They require Django, and tend to fail for us.

skip python2.7 test | (download)

tests/two_three_compat_test.py | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 skip two_three_compat_test, requires python2.7

Debian is removing python2.7 from the archive, skip tests that require
it.

Bug-Debian: https://bugs.debian.org/1016681
ansible 6 | (download)

.ci/azure-pipelines.yml | 60 3 + 57 - 0 !
ansible_mitogen/loaders.py | 2 1 + 1 - 0 !
docs/ansible_detailed.rst | 2 1 + 1 - 0 !
mitogen/master.py | 2 1 + 1 - 0 !
tox.ini | 18 8 + 10 - 0 !
5 files changed, 14 insertions(+), 70 deletions(-)

 ansible 6 support

fixes #929

Bug-Upstream: https://github.com/mitogen-hq/mitogen/issues/929
Bug-Debian: https://bugs.debian.org/1019501
hack remove cleanup | (download)

ansible_mitogen/connection.py | 9 0 + 9 - 0 !
1 file changed, 9 deletions(-)

 remove connection cleanup in destructor

It has been identified as a source of broken connections, when using
synchronize within loops. Hopefully this won't result in piled-up stale
connections...

Bug-Upstream: https://github.com/mitogen-hq/mitogen/issues/925
Bug-Debian: https://bugs.debian.org/1020622
poll poller | (download)

ansible_mitogen/process.py | 6 4 + 2 - 0 !
1 file changed, 4 insertions(+), 2 deletions(-)

 fix: filedescriptor out of range in select()

Bug-Debian: https://bugs.debian.org/1036018
Bug-Upstream: https://github.com/mitogen-hq/mitogen/issues/957
python3.12 targets | (download)

ansible_mitogen/module_finder.py | 122 120 + 2 - 0 !
ansible_mitogen/runner.py | 91 87 + 4 - 0 !
docs/internals.rst | 2 1 + 1 - 0 !
mitogen/core.py | 153 144 + 9 - 0 !
mitogen/master.py | 122 115 + 7 - 0 !
tests/ansible/integration/connection_delegation/delegate_to_template.yml | 4 2 + 2 - 0 !
tests/ansible/integration/interpreter_discovery/ansible_2_8_tests.yml | 7 0 + 7 - 0 !
tests/ansible/lib/modules/module_finder_test.py | 12 12 + 0 - 0 !
tests/ansible/tests/module_finder_test.py | 80 80 + 0 - 0 !
tests/importer_test.py | 126 118 + 8 - 0 !
tests/module_finder_test.py | 14 11 + 3 - 0 !
tests/testlib.py | 9 7 + 2 - 0 !
12 files changed, 697 insertions(+), 45 deletions(-)

 mitogen: support pep 451 modulespec api, required for python 3.12

importlib.machinery.ModuleSpec and find_spec() were introduced in Python 3.4
under PEP 451. They replace the find_module() API of PEP 302, which was
deprecated from Python 3.4. They were removed in Python 3.12 along with the
imp module.

This change adds support for the PEP 451 APIs. Mitogen should no longer import
imp on Python versions that support ModuleSpec. Tests have been added to cover
the new APIs.

CI jobs have been added to cover Python 3.x on macOS.

Refs #1033
Co-authored-by: Witold Baryluk <witold.baryluk@gmail.com>
Bug-Debain: https://bugs.debian.org/1111363