We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb9efb2 + 64a581b commit e0de4d3Copy full SHA for e0de4d3
ansible_mitogen/target.py
@@ -40,7 +40,6 @@
40
import grp
41
import json
42
import logging
43
-import operator
44
import os
45
import pty
46
import pwd
@@ -66,8 +65,6 @@
66
65
67
import ansible.module_utils.json_utils
68
69
-from ansible.module_utils.six.moves import reduce
70
-
71
import ansible_mitogen.runner
72
73
@@ -718,7 +715,9 @@ def apply_mode_spec(spec, mode):
718
715
mask = CHMOD_MASKS[ch]
719
716
bits = CHMOD_BITS[ch]
720
717
cur_perm_bits = mode & mask
721
- new_perm_bits = reduce(operator.or_, (bits[p] for p in perms), 0)
+ new_perm_bits = 0
+ for perm in perms:
+ new_perm_bits |= bits[perm]
722
mode &= ~mask
723
if op == '=':
724
mode |= new_perm_bits
docs/ansible_detailed.rst
@@ -145,6 +145,8 @@ Noteworthy Differences
145
+-----------------+ 3.11 - 3.14 |
146
| 12 | |
147
+-----------------+-----------------+
148
+ | 13 | 3.12 - 3.14 |
149
+ +-----------------+-----------------+
150
151
Verify your installation is running one of these versions by checking
152
``ansible --version`` output.
docs/changelog.rst
@@ -21,6 +21,11 @@ To avail of fixes in an unreleased version, please download a ZIP file
21
In progress (unreleased)
22
------------------------
23
24
+* :gh:issue:`1237` :mod:`mitogen`: Re-declare Python 2.4 compatibility
25
+* :gh:issue:`1385` :mod:`ansible_mitogen`: Remove a use of
26
+ ``ansible.module_utils.six``
27
+* :gh:issue:`1354` docs: Document Ansible 13 (ansible-core 2.20) support
28
+
29
30
v0.3.35 (2025-12-01)
31
--------------------
docs/index.rst
@@ -332,12 +332,16 @@ a large fleet of machines, or to alert the parent of unexpected state changes.
332
Compatibility
333
#############
334
335
-Mitogen is compatible with **Python 2.4** released November 2004, making it
+``mitogen.*`` is compatible with Python 2.4 - 2.7 and 3.6 onward; making it
336
suitable for managing a fleet of potentially ancient corporate hardware, such
337
as Red Hat Enterprise Linux 5, released in 2007.
338
339
-Every combination of Python 3.x/2.x parent and child should be possible,
340
-however at present only Python 2.4, 2.6, 2.7 and 3.6 are tested automatically.
+Every combination of Python 3.x/2.x parent and child should be possible.
+Automated testing cannot cover every combination, automated testing tries to
341
+cover the extemities (e.g. Python 3.14 parent -> Python 2.4 child).
342
343
+``ansible_mitogen.*`` is compatible with Python 2.7 and 3.6 onward; making it
344
+suitable for Ansible 2.10 onward.
345
346
347
Zero Dependencies
setup.py
@@ -82,7 +82,7 @@ def long_description():
82
license = 'BSD-3-Clause',
83
url = 'https://github.com/mitogen-hq/mitogen/',
84
packages = find_packages(exclude=['tests', 'examples']),
85
- python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*',
+ python_requires='>=2.4, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*',
86
zip_safe = False,
87
classifiers = [
88
'Environment :: Console',
@@ -91,6 +91,9 @@ def long_description():
91
'Operating System :: MacOS :: MacOS X',
92
'Operating System :: POSIX',
93
'Programming Language :: Python',
94
+ 'Programming Language :: Python :: 2.4',
95
+ 'Programming Language :: Python :: 2.5',
96
+ 'Programming Language :: Python :: 2.6',
97
'Programming Language :: Python :: 2.7',
98
'Programming Language :: Python :: 3',
99
'Programming Language :: Python :: 3.6',
tests/image_prep/hosts.ini
@@ -43,6 +43,7 @@ centos7
centos8
debian9
debian10
+ubuntu1604
47
ubuntu1804
48
49
[ansible_11]
tox.ini
@@ -63,7 +63,7 @@ envlist =
63
py{27,36}-m_ans-ans{2.10,3,4}
64
py{311}-m_ans-ans{2.10,3-5}
py{313}-m_ans-ans{6-9}
- py{314}-m_ans-ans{10-12}
+ py{314}-m_ans-ans{10-13}
py{27,36,314}-m_mtg
report,
0 commit comments