From 61a7fa1fee92c8f8a63c2a9b5851c1b3b93813c6 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Fri, 21 Nov 2025 10:45:51 +0000 Subject: [PATCH 1/6] Begin 0.3.33dev --- mitogen/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/__init__.py b/mitogen/__init__.py index f4ca00a2..66b0092a 100644 --- a/mitogen/__init__.py +++ b/mitogen/__init__.py @@ -35,7 +35,7 @@ be expected. On the slave, it is built dynamically during startup. #: Library version as a tuple. -__version__ = (0, 3, 32) +__version__ = (0, 3, 33, 'dev') #: This is :data:`False` in slave contexts. Previously it was used to prevent From 734047e1cc3c9063b78406d75e9a9d82aed4e3cc Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Fri, 21 Nov 2025 11:06:18 +0000 Subject: [PATCH 2/6] CI: Remove Ansible 11 (ansible-core 2.18) strategy=linear jobs I believe I kep them as a reference during Ansible 12 fixups. No longer needed and they slow down CI runs. --- .github/workflows/tests.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c79de05a..434309dc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -109,8 +109,6 @@ jobs: - tox_env: py314-m_ans-ans12 python_version: '3.14.0-rc.3' - - tox_env: py314-m_ans-ans11-s_lin - python_version: '3.14.0-rc.3' - tox_env: py314-m_ans-ans12-s_lin python_version: '3.14.0-rc.3' @@ -161,12 +159,6 @@ jobs: fail-fast: false matrix: include: - - tox_env: py314-m_lcl-ans11 - python_version: '3.14.0-rc.3' - sshpass_version: "1.10" - - tox_env: py314-m_lcl-ans11-s_lin - python_version: '3.14.0-rc.3' - sshpass_version: "1.10" - tox_env: py314-m_lcl-ans12 python_version: '3.14.0-rc.3' - tox_env: py314-m_lcl-ans12-s_lin From 5da56f577c7b719f5b48bb9df5fc95af8194ef84 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Fri, 21 Nov 2025 11:09:37 +0000 Subject: [PATCH 3/6] CI: Use non-rc Python 3.14 releases Left over from Python 3.14 support work. --- .github/workflows/tests.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 434309dc..a47c36ad 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -101,19 +101,19 @@ jobs: - tox_env: py313-m_ans-ans8 python_version: '3.13' - tox_env: py314-m_ans-ans9 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_ans-ans10 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_ans-ans11 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_ans-ans12 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_ans-ans12-s_lin - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_mtg - python_version: '3.14.0-rc.3' + python_version: '3.14' steps: - uses: actions/checkout@v4 @@ -160,12 +160,12 @@ jobs: matrix: include: - tox_env: py314-m_lcl-ans12 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_lcl-ans12-s_lin - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_mtg - python_version: '3.14.0-rc.3' + python_version: '3.14' steps: - uses: actions/checkout@v4 From 7c9c38325d9c38a06481d0f31a81c3f60392b4e4 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Fri, 21 Nov 2025 11:11:41 +0000 Subject: [PATCH 4/6] ansible_mitogen: Ansible 13 (ansible-core 2.20) support --- .github/workflows/tests.yml | 8 +++++--- docs/changelog.rst | 3 +++ tox.ini | 8 ++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a47c36ad..ebfad8fd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -108,8 +108,10 @@ jobs: python_version: '3.14' - tox_env: py314-m_ans-ans12 python_version: '3.14' + - tox_env: py314-m_ans-ans13 + python_version: '3.14' - - tox_env: py314-m_ans-ans12-s_lin + - tox_env: py314-m_ans-ans13-s_lin python_version: '3.14' - tox_env: py314-m_mtg @@ -159,9 +161,9 @@ jobs: fail-fast: false matrix: include: - - tox_env: py314-m_lcl-ans12 + - tox_env: py314-m_lcl-ans13 python_version: '3.14' - - tox_env: py314-m_lcl-ans12-s_lin + - tox_env: py314-m_lcl-ans13-s_lin python_version: '3.14' - tox_env: py314-m_mtg diff --git a/docs/changelog.rst b/docs/changelog.rst index 0d838c5c..67d4dfb5 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -21,6 +21,9 @@ To avail of fixes in an unreleased version, please download a ZIP file In progress (unreleased) ------------------------ +* :gh:issue:`1354` :mod:`ansible_mitogen`: ansible_mitogen: Ansible 13 + (ansible-core 2.20) support + v0.3.32 (2025-11-21) -------------------- diff --git a/tox.ini b/tox.ini index aac84fa8..fba4ccf3 100644 --- a/tox.ini +++ b/tox.ini @@ -13,10 +13,10 @@ # 3.5 <= 2.11 <= 2.15 <= 5.5 <= 2.2.28 <= 2.11.3 <= 20 <= 5.9.5 <= 6.1.0 <= 3.28 <= 20.15² # 3.6 <= 2.11 <= 2.16 <= 6.2 <= 3.2.20 <= 3.0.3 <= 21 <= 7.0.1 <= 3.28 <= 20.17² # 3.7 <= 2.12 <= 2.17 <= 7.2.7 <= 3.2.20 <= 7.4.4 <= 4.8.0 <= 20.26.6² -# 3.8 <= 2.12 +# 3.8 <= 2.12 <= 2.19 # 3.9 <= 2.15 # 3.10 <= 2.17 -# 3.11 +# 3.11 <= 2.19 # 3.12 >= 2.13¹ # # Notes @@ -50,6 +50,7 @@ # ansible == 10.x ansible-core ~= 2.17.0 # ansible == 11.x ansible-core ~= 2.18.0 # ansible == 12.x ansible-core ~= 2.19.0 +# ansible == 13.x ansible-core ~= 2.20.0 # See also # - https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix @@ -93,6 +94,7 @@ deps = ans10: ansible~=10.0 ans11: ansible~=11.0 ans12: ansible~=12.0 + ans13: ansible~=13.0 install_command = python -m pip --no-python-version-warning --disable-pip-version-check install {opts} {packages} commands_pre = @@ -127,6 +129,8 @@ setenv = # Ansible 11 (ansible-core 2.18) requires Python >= 3.8 on targets ans11: MITOGEN_TEST_DISTRO_SPECS=debian11-py3 ubuntu2004-py3 ans12: MITOGEN_TEST_DISTRO_SPECS=debian11-py3 ubuntu2004-py3 + # Ansible 13 (ansible-core 2.20) requires Python >= 3.9 on targets + ans13: MITOGEN_TEST_DISTRO_SPECS=debian11-py3 distros_centos: MITOGEN_TEST_DISTRO_SPECS=centos6 centos7 centos8 distros_centos5: MITOGEN_TEST_DISTRO_SPECS=centos5 distros_centos6: MITOGEN_TEST_DISTRO_SPECS=centos6 From f966b3e5c6874fcb56d550945efc2f0465355c1c Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Fri, 21 Nov 2025 12:03:03 +0000 Subject: [PATCH 5/6] CI: Remove lingering stdout_callback=yaml in macOS jobs Support removed in Ansible 13 (ansible-core 2.20). refs #1285, #1291 --- tests/image_prep/ansible.cfg | 3 ++- tox.ini | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/image_prep/ansible.cfg b/tests/image_prep/ansible.cfg index da778786..f698ed89 100644 --- a/tests/image_prep/ansible.cfg +++ b/tests/image_prep/ansible.cfg @@ -1,12 +1,13 @@ [defaults] +# Ansible >= 6 (ansible-core >= 2.13) +callback_result_format = yaml deprecation_warnings = false strategy_plugins = ../../ansible_mitogen/plugins/strategy retry_files_enabled = false display_args_to_stdout = True no_target_syslog = True host_key_checking = False -stdout_callback = yaml [inventory] unparsed_is_fatal = true diff --git a/tox.ini b/tox.ini index fba4ccf3..08b2eb98 100644 --- a/tox.ini +++ b/tox.ini @@ -117,6 +117,7 @@ setenv = PIP_CONSTRAINT={toxinidir}/tests/constraints.txt # Superceded in Ansible >= 6 (ansible-core >= 2.13) by result_format=yaml # Deprecated in Ansible 12 (ansible-core 2.19) + # Removed in Ansible 13 (ansible-core 2.20) ans{2.10,3,4,5}: ANSIBLE_STDOUT_CALLBACK=yaml # Print warning on the first occurence at each module:linenno in Mitogen. Available Python 2.7, 3.2+. PYTHONWARNINGS=default:::ansible_mitogen,default:::mitogen From 4a442f503e49cf31e0585cf73eb5b8749140434c Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sat, 22 Nov 2025 08:48:37 +0000 Subject: [PATCH 6/6] Prepare v0.3.33 --- docs/changelog.rst | 4 ++++ mitogen/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 67d4dfb5..ad11c08f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -21,6 +21,10 @@ To avail of fixes in an unreleased version, please download a ZIP file In progress (unreleased) ------------------------ + +v0.3.33 (2025-11-22) +-------------------- + * :gh:issue:`1354` :mod:`ansible_mitogen`: ansible_mitogen: Ansible 13 (ansible-core 2.20) support diff --git a/mitogen/__init__.py b/mitogen/__init__.py index 66b0092a..2d0af387 100644 --- a/mitogen/__init__.py +++ b/mitogen/__init__.py @@ -35,7 +35,7 @@ be expected. On the slave, it is built dynamically during startup. #: Library version as a tuple. -__version__ = (0, 3, 33, 'dev') +__version__ = (0, 3, 33) #: This is :data:`False` in slave contexts. Previously it was used to prevent